Skip to content

Commit 134407d

Browse files
authored
AMDGPU: Add gfx1250 to sram-ecc elf header flags test (#162107)
1 parent ebfb16a commit 134407d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

llvm/test/CodeGen/AMDGPU/elf-header-flags-sramecc.ll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
; RUN: llc -filetype=obj -mtriple=amdgcn -mcpu=gfx950 < %s | llvm-readobj --file-header - | FileCheck --check-prefix=SRAM-ECC-GFX950 %s
1616
; RUN: llc -filetype=obj -mtriple=amdgcn -mcpu=gfx950 -mattr=+sramecc < %s | llvm-readobj --file-header - | FileCheck --check-prefix=SRAM-ECC-GFX950 %s
1717

18+
; RUN: llc -filetype=obj -mtriple=amdgcn -mcpu=gfx1250 < %s | llvm-readobj --file-header - | FileCheck --check-prefix=SRAM-ECC-GFX1250 %s
19+
; RUN: llc -filetype=obj -mtriple=amdgcn -mcpu=gfx1250 -mattr=+sramecc < %s | llvm-readobj --file-header - | FileCheck --check-prefix=SRAM-ECC-GFX1250 %s
20+
1821
; NO-SRAM-ECC-GFX906: Flags [
1922
; NO-SRAM-ECC-GFX906-NEXT: EF_AMDGPU_FEATURE_XNACK_V3 (0x100)
2023
; NO-SRAM-ECC-GFX906-NEXT: EF_AMDGPU_MACH_AMDGCN_GFX906 (0x2F)
@@ -52,6 +55,11 @@
5255
; SRAM-ECC-GFX950: EF_AMDGPU_MACH_AMDGCN_GFX950 (0x4F)
5356
; SRAM-ECC-GFX950: ]
5457

58+
; SRAM-ECC-GFX1250: Flags [
59+
; SRAM-ECC-GFX1250: EF_AMDGPU_FEATURE_SRAMECC_V3 (0x200)
60+
; SRAM-ECC-GFX1250: EF_AMDGPU_MACH_AMDGCN_GFX1250 (0x49)
61+
; SRAM-ECC-GFX1250: ]
62+
5563
define amdgpu_kernel void @elf_header() {
5664
ret void
5765
}

0 commit comments

Comments
 (0)