brintos

brintos / llvm-project-archived public Read only

0
0
Text · 788 B · 5bb9f2b Raw
24 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=verde < %s | FileCheck -check-prefixes=GCN,MOVREL %s2; RUN: llc -mtriple=amdgcn -mcpu=tonga < %s | FileCheck -check-prefixes=GCN,MOVREL %s3; RUN: llc -mtriple=amdgcn -mcpu=gfx900 < %s | FileCheck -check-prefixes=GCN,GPRIDX %s4 5; GCN-LABEL: {{^}}main:6 7; MOVREL: s_mov_b32 m0, s08; MOVREL-NEXT: v_movreld_b32_e32 v0,9 10; GPRIDX: s_set_gpr_idx_on s0, gpr_idx(DST)11; GPRIDX-NEXT: v_mov_b32_e32 v0, 1.012; GPRIDX-NEXT: s_set_gpr_idx_off13 14; GCN-NEXT: v_mov_b32_e32 v0, v115; GCN-NEXT: ; return16define amdgpu_ps float @main(i32 inreg %arg) #0 {17main_body:18  %tmp24 = insertelement <16 x float> zeroinitializer, float 1.000000e+00, i32 %arg19  %tmp25 = extractelement <16 x float> %tmp24, i32 120  ret float %tmp2521}22 23attributes #0 = { "InitialPSInputAddr"="36983" }24