Skip to content

Commit 1360aef

Browse files
committed
[AMDGPU] gfx1250 sram-ecc feature codegen tests. NFC.
sram-ecc is always on.
1 parent 3cbbc07 commit 1360aef

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

llvm/test/CodeGen/AMDGPU/sram-ecc-default.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
; RUN: llc -mtriple=amdgcn -mcpu=gfx904 -mattr=+sramecc < %s | FileCheck -check-prefixes=GCN,NO-ECC %s
66
; RUN: llc -mtriple=amdgcn -mcpu=gfx906 -mattr=+sramecc < %s | FileCheck -check-prefixes=GCN,ECC %s
77
; RUN: llc -mtriple=amdgcn -mcpu=gfx906 -mattr=-sramecc < %s | FileCheck -check-prefixes=GCN,NO-ECC %s
8+
; RUN: llc -mtriple=amdgcn -mcpu=gfx1250 < %s | FileCheck -check-prefixes=GCN,ECC %s
89

910
; Make sure the correct set of targets are marked with
1011
; FeatureDoesNotSupportSRAMECC, and +sramecc is ignored if it's never
1112
; supported.
1213

1314
; GCN-LABEL: {{^}}load_global_hi_v2i16_reglo_vreg:
1415
; NO-ECC: global_load_short_d16_hi
15-
; ECC: global_load_ushort
16+
; ECC: global_load_{{ushort|u16}}
1617
define void @load_global_hi_v2i16_reglo_vreg(ptr addrspace(1) %in, i16 %reg) {
1718
entry:
1819
%gep = getelementptr inbounds i16, ptr addrspace(1) %in, i64 -2047

llvm/test/CodeGen/AMDGPU/sramecc-subtarget-feature-any.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
; RUN: llc -mtriple=amdgcn -mcpu=gfx700 -debug-only=gcn-subtarget -o - %s 2>&1 | FileCheck --check-prefix=NOT-SUPPORTED %s
22
; RUN: llc -mtriple=amdgcn -mcpu=gfx906 -debug-only=gcn-subtarget -o - %s 2>&1 | FileCheck --check-prefix=ANY %s
33
; RUN: llc -mtriple=amdgcn -mcpu=gfx908 -debug-only=gcn-subtarget -o - %s 2>&1 | FileCheck --check-prefix=ANY %s
4+
; RUN: llc -mtriple=amdgcn -mcpu=gfx1250 -debug-only=gcn-subtarget -o - %s 2>&1 | FileCheck --check-prefix=ANY %s
45

56
; REQUIRES: asserts
67

llvm/test/CodeGen/AMDGPU/sramecc-subtarget-feature-enabled.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
; RUN: llc -mtriple=amdgcn -mcpu=gfx700 -debug-only=gcn-subtarget -o - %s 2>&1 | FileCheck --check-prefix=WARN %s
22
; RUN: llc -mtriple=amdgcn -mcpu=gfx906 -debug-only=gcn-subtarget -o - %s 2>&1 | FileCheck --check-prefix=ON %s
33
; RUN: llc -mtriple=amdgcn -mcpu=gfx908 -debug-only=gcn-subtarget -o - %s 2>&1 | FileCheck --check-prefix=ON %s
4+
; RUN: llc -mtriple=amdgcn -mcpu=gfx1250 -debug-only=gcn-subtarget -o - %s 2>&1 | FileCheck --check-prefix=ON %s
45

56
; REQUIRES: asserts
67

0 commit comments

Comments
 (0)