annotate llvm/test/CodeGen/AMDGPU/r600-infinite-loop-bug-while-reorganizing-vector.ll @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 ; RUN: llc -march=r600 -mcpu=cayman < %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 define amdgpu_ps void @main(<4 x float> inreg %arg, <4 x float> inreg %arg1) {
anatofuz
parents:
diff changeset
4 main_body:
anatofuz
parents:
diff changeset
5 %tmp = extractelement <4 x float> %arg, i32 0
anatofuz
parents:
diff changeset
6 %tmp2 = extractelement <4 x float> %arg, i32 1
anatofuz
parents:
diff changeset
7 %tmp3 = extractelement <4 x float> %arg, i32 2
anatofuz
parents:
diff changeset
8 %tmp4 = extractelement <4 x float> %arg, i32 3
anatofuz
parents:
diff changeset
9 %tmp5 = insertelement <4 x float> undef, float %tmp, i32 0
anatofuz
parents:
diff changeset
10 %tmp6 = insertelement <4 x float> %tmp5, float %tmp2, i32 1
anatofuz
parents:
diff changeset
11 %tmp7 = insertelement <4 x float> %tmp6, float %tmp3, i32 2
anatofuz
parents:
diff changeset
12 %tmp8 = insertelement <4 x float> %tmp7, float %tmp4, i32 3
anatofuz
parents:
diff changeset
13 %tmp9 = call <4 x float> @llvm.r600.cube(<4 x float> %tmp8)
anatofuz
parents:
diff changeset
14 %tmp10 = extractelement <4 x float> %tmp9, i32 0
anatofuz
parents:
diff changeset
15 %tmp11 = extractelement <4 x float> %tmp9, i32 1
anatofuz
parents:
diff changeset
16 %tmp12 = extractelement <4 x float> %tmp9, i32 2
anatofuz
parents:
diff changeset
17 %tmp13 = extractelement <4 x float> %tmp9, i32 3
anatofuz
parents:
diff changeset
18 %tmp14 = call float @fabs(float %tmp12)
anatofuz
parents:
diff changeset
19 %tmp15 = fdiv float 1.000000e+00, %tmp14
anatofuz
parents:
diff changeset
20 %tmp16 = fmul float %tmp10, %tmp15
anatofuz
parents:
diff changeset
21 %tmp17 = fadd float %tmp16, 1.500000e+00
anatofuz
parents:
diff changeset
22 %tmp18 = fmul float %tmp11, %tmp15
anatofuz
parents:
diff changeset
23 %tmp19 = fadd float %tmp18, 1.500000e+00
anatofuz
parents:
diff changeset
24 %tmp20 = insertelement <4 x float> undef, float %tmp19, i32 0
anatofuz
parents:
diff changeset
25 %tmp21 = insertelement <4 x float> %tmp20, float %tmp17, i32 1
anatofuz
parents:
diff changeset
26 %tmp22 = insertelement <4 x float> %tmp21, float %tmp13, i32 2
anatofuz
parents:
diff changeset
27 %tmp23 = insertelement <4 x float> %tmp22, float %tmp4, i32 3
anatofuz
parents:
diff changeset
28 %tmp24 = extractelement <4 x float> %tmp23, i32 0
anatofuz
parents:
diff changeset
29 %tmp25 = extractelement <4 x float> %tmp23, i32 1
anatofuz
parents:
diff changeset
30 %tmp26 = extractelement <4 x float> %tmp23, i32 2
anatofuz
parents:
diff changeset
31 %tmp27 = extractelement <4 x float> %tmp23, i32 3
anatofuz
parents:
diff changeset
32 %tmp28 = insertelement <4 x float> undef, float %tmp24, i32 0
anatofuz
parents:
diff changeset
33 %tmp29 = insertelement <4 x float> %tmp28, float %tmp25, i32 1
anatofuz
parents:
diff changeset
34 %tmp30 = insertelement <4 x float> %tmp29, float %tmp26, i32 2
anatofuz
parents:
diff changeset
35 %tmp31 = insertelement <4 x float> %tmp30, float %tmp27, i32 3
anatofuz
parents:
diff changeset
36 %tmp32 = shufflevector <4 x float> %tmp31, <4 x float> %tmp31, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
anatofuz
parents:
diff changeset
37 %tmp33 = call <4 x float> @llvm.r600.texc(<4 x float> %tmp32, i32 0, i32 0, i32 0, i32 16, i32 0, i32 1, i32 1, i32 1, i32 1)
anatofuz
parents:
diff changeset
38 %tmp34 = extractelement <4 x float> %tmp33, i32 0
anatofuz
parents:
diff changeset
39 %tmp35 = insertelement <4 x float> undef, float %tmp34, i32 0
anatofuz
parents:
diff changeset
40 %tmp36 = insertelement <4 x float> %tmp35, float %tmp34, i32 1
anatofuz
parents:
diff changeset
41 %tmp37 = insertelement <4 x float> %tmp36, float %tmp34, i32 2
anatofuz
parents:
diff changeset
42 %tmp38 = insertelement <4 x float> %tmp37, float 1.000000e+00, i32 3
anatofuz
parents:
diff changeset
43 call void @llvm.r600.store.swizzle(<4 x float> %tmp38, i32 0, i32 0)
anatofuz
parents:
diff changeset
44 ret void
anatofuz
parents:
diff changeset
45 }
anatofuz
parents:
diff changeset
46
anatofuz
parents:
diff changeset
47 ; Function Attrs: readnone
anatofuz
parents:
diff changeset
48 declare <4 x float> @llvm.r600.cube(<4 x float>) #0
anatofuz
parents:
diff changeset
49
anatofuz
parents:
diff changeset
50 ; Function Attrs: readnone
anatofuz
parents:
diff changeset
51 declare float @fabs(float) #0
anatofuz
parents:
diff changeset
52
anatofuz
parents:
diff changeset
53 declare void @llvm.r600.store.swizzle(<4 x float>, i32, i32)
anatofuz
parents:
diff changeset
54
anatofuz
parents:
diff changeset
55 ; Function Attrs: readnone
anatofuz
parents:
diff changeset
56 declare <4 x float> @llvm.r600.texc(<4 x float>, i32, i32, i32, i32, i32, i32, i32, i32, i32) #0
anatofuz
parents:
diff changeset
57
anatofuz
parents:
diff changeset
58 attributes #0 = { nounwind readnone }