brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 346f38a Raw
35 lines · plain
1; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx900 < %s | FileCheck -check-prefix=GCN -check-prefix=GFX9 -enable-var-scope %s2 3; On gfx9 and later, a HS is a merged shader, in which s0-s7 are reserved by the4; hardware, so the PAL puts the GIT (global information table) in s8 rather5; than s0.6 7; GCN-LABEL: {{^}}_amdgpu_hs_main:8; GCN: s_getpc_b64 s[[[GITPTR:[0-9]+]]:9; PREGFX9: s_mov_b32 s[[GITPTR]], s010; GFX9: s_mov_b32 s[[GITPTR]], s811 12define amdgpu_hs void @_amdgpu_hs_main(i32 inreg %arg, i32 inreg %arg1, i32 inreg %arg2, i32 inreg %arg3, i32 inreg %arg4, i32 inreg %arg5, i32 inreg %arg6, i32 inreg %arg7, <6 x i32> inreg %arg8) {13.entry:14  %__llpc_global_proxy_7.i = alloca [3 x <4 x float>], align 16, addrspace(5)15  %tmp = icmp ult i32 %arg, 016  br i1 %tmp, label %.beginls, label %.endls17 18.beginls:                                         ; preds = %.entry19  %tmp15 = extractelement <6 x i32> %arg8, i32 320  %.0.vec.insert.i = insertelement <2 x i32> poison, i32 %tmp15, i32 021  %.4.vec.insert.i = shufflevector <2 x i32> %.0.vec.insert.i, <2 x i32> poison, <2 x i32> <i32 0, i32 3>22  %tmp16 = bitcast <2 x i32> %.4.vec.insert.i to i6423  br label %.endls24 25.endls:                                           ; preds = %.beginls, %.entry26  %.fca.2.gep120.i = getelementptr inbounds [3 x <4 x float>], ptr addrspace(5) %__llpc_global_proxy_7.i, i64 0, i64 227  store volatile <4 x float> <float 9.000000e+00, float 1.000000e+01, float 1.100000e+01, float 1.200000e+01>, ptr addrspace(5) %.fca.2.gep120.i, align 1628  br label %bb29 30bb:                                               ; preds = %bb, %.endls31  %lsr.iv182 = phi ptr addrspace(5) [ poison, %bb ], [ %__llpc_global_proxy_7.i, %.endls ]32  %scevgep183 = getelementptr [3 x <4 x float>], ptr addrspace(5) %lsr.iv182, i32 0, i32 133  br label %bb34}35