Skip to content

Commit a0b3a1c

Browse files
committed
AMDGPU: Switch a test with only function label checks to generated
I suspect the first function at least is not usefully testing the original failure.
1 parent a9ed4e3 commit a0b3a1c

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

llvm/test/CodeGen/AMDGPU/subreg-coalescer-crash.ll

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
; RUN: llc -mtriple=amdgcn -mcpu=tahiti -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s
2-
; RUN: llc -mtriple=amdgcn -mcpu=tonga -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2+
; RUN: llc -mtriple=amdgcn -mcpu=tahiti -o - %s | FileCheck -check-prefixes=GCN,GFX6 %s
3+
; RUN: llc -mtriple=amdgcn -mcpu=tonga -o - %s | FileCheck -check-prefixes=GCN,GFX8 %s
34

4-
; GCN-LABEL:{{^}}row_filter_C1_D0:
55
define amdgpu_kernel void @row_filter_C1_D0() #0 {
6+
; GCN-LABEL: row_filter_C1_D0:
7+
; GCN: ; %bb.0: ; %entry
8+
; GCN-NEXT: s_cbranch_scc1 .LBB0_2
9+
; GCN-NEXT: ; %bb.1: ; %do.body.preheader
10+
; GCN-NEXT: .LBB0_2: ; %for.inc.1
611
entry:
712
br i1 undef, label %for.inc.1, label %do.body.preheader
813

@@ -40,9 +45,28 @@ for.inc.1: ; preds = %do.body.1562.prehea
4045
unreachable
4146
}
4247

43-
; GCN-LABEL: {{^}}foo:
44-
; GCN: s_endpgm
4548
define amdgpu_ps void @foo() #0 {
49+
; GCN-LABEL: foo:
50+
; GCN: ; %bb.0: ; %bb
51+
; GCN-NEXT: s_mov_b64 s[0:1], -1
52+
; GCN-NEXT: s_cbranch_scc0 .LBB1_2
53+
; GCN-NEXT: ; %bb.1: ; %bb24
54+
; GCN-NEXT: s_mov_b64 s[0:1], 0
55+
; GCN-NEXT: .LBB1_2: ; %Flow1
56+
; GCN-NEXT: s_and_b64 vcc, exec, s[0:1]
57+
; GCN-NEXT: s_cbranch_vccz .LBB1_4
58+
; GCN-NEXT: ; %bb.3: ; %bb9
59+
; GCN-NEXT: image_sample v[0:1], v0, s[0:7], s[0:3] dmask:0xa
60+
; GCN-NEXT: s_branch .LBB1_5
61+
; GCN-NEXT: .LBB1_4:
62+
; GCN-NEXT: v_mov_b32_e32 v1, 0
63+
; GCN-NEXT: v_mov_b32_e32 v0, v1
64+
; GCN-NEXT: .LBB1_5: ; %bb14
65+
; GCN-NEXT: s_waitcnt vmcnt(0)
66+
; GCN-NEXT: v_mul_f32_e32 v0, 0x41280000, v0
67+
; GCN-NEXT: v_mul_f32_e32 v1, 0x41380000, v1
68+
; GCN-NEXT: exp mrt0 v1, v0, v0, v0 done vm
69+
; GCN-NEXT: s_endpgm
4670
bb:
4771
br i1 undef, label %bb2, label %bb1
4872

@@ -101,3 +125,6 @@ declare <4 x float> @llvm.amdgcn.image.sample.1d.v4f32.f32(i32, float, <8 x i32>
101125

102126
attributes #0 = { nounwind }
103127
attributes #1 = { nounwind readonly }
128+
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
129+
; GFX6: {{.*}}
130+
; GFX8: {{.*}}

0 commit comments

Comments
 (0)