annotate llvm/test/CodeGen/AMDGPU/reg-coalescer-sched-crash.ll @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: llc -march=amdgcn -verify-machineinstrs -o /dev/null < %s
anatofuz
parents:
diff changeset
2 ; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs -o /dev/null < %s
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 ; The register coalescer introduces a verifier error which later
anatofuz
parents:
diff changeset
5 ; results in a crash during scheduling.
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 declare i32 @llvm.amdgcn.workitem.id.x() #0
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 define amdgpu_kernel void @reg_coalescer_breaks_dead(<2 x i32> addrspace(1)* nocapture readonly %arg, i32 %arg1, i32 %arg2, i32 %arg3) #1 {
anatofuz
parents:
diff changeset
10 bb:
anatofuz
parents:
diff changeset
11 %id.x = call i32 @llvm.amdgcn.workitem.id.x()
anatofuz
parents:
diff changeset
12 %cmp0 = icmp eq i32 %id.x, 0
anatofuz
parents:
diff changeset
13 br i1 %cmp0, label %bb3, label %bb4
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 bb3: ; preds = %bb
anatofuz
parents:
diff changeset
16 %tmp = ashr exact i32 undef, 8
anatofuz
parents:
diff changeset
17 br label %bb6
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 bb4: ; preds = %bb6, %bb
anatofuz
parents:
diff changeset
20 %tmp5 = phi <2 x i32> [ zeroinitializer, %bb ], [ %tmp13, %bb6 ]
anatofuz
parents:
diff changeset
21 br i1 undef, label %bb15, label %bb16
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 bb6: ; preds = %bb6, %bb3
anatofuz
parents:
diff changeset
24 %tmp7 = phi <2 x i32> [ zeroinitializer, %bb3 ], [ %tmp13, %bb6 ]
anatofuz
parents:
diff changeset
25 %tmp8 = add nsw i32 0, %arg1
anatofuz
parents:
diff changeset
26 %tmp9 = add nsw i32 %tmp8, 0
anatofuz
parents:
diff changeset
27 %tmp10 = sext i32 %tmp9 to i64
anatofuz
parents:
diff changeset
28 %tmp11 = getelementptr inbounds <2 x i32>, <2 x i32> addrspace(1)* %arg, i64 %tmp10
anatofuz
parents:
diff changeset
29 %tmp12 = load <2 x i32>, <2 x i32> addrspace(1)* %tmp11, align 8
anatofuz
parents:
diff changeset
30 %tmp13 = add <2 x i32> %tmp12, %tmp7
anatofuz
parents:
diff changeset
31 %tmp14 = icmp slt i32 undef, %arg2
anatofuz
parents:
diff changeset
32 br i1 %tmp14, label %bb6, label %bb4
anatofuz
parents:
diff changeset
33
anatofuz
parents:
diff changeset
34 bb15: ; preds = %bb4
anatofuz
parents:
diff changeset
35 store <2 x i32> %tmp5, <2 x i32> addrspace(3)* undef, align 8
anatofuz
parents:
diff changeset
36 br label %bb16
anatofuz
parents:
diff changeset
37
anatofuz
parents:
diff changeset
38 bb16: ; preds = %bb15, %bb4
anatofuz
parents:
diff changeset
39 unreachable
anatofuz
parents:
diff changeset
40 }
anatofuz
parents:
diff changeset
41
anatofuz
parents:
diff changeset
42 attributes #0 = { nounwind readnone }
anatofuz
parents:
diff changeset
43 attributes #1 = { nounwind }