[PowerPC] Recommit r314244 with refactoring and off by default
[llvm-core.git] / test / CodeGen / AMDGPU / movreld-bug.ll
blob0cc8a5271bd7383be5c7f15666f11b58365dc102
1 ; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
2 ; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
4 ; GCN-LABEL: {{^}}main:
5 ; GCN: v_movreld_b32_e32 v0,
6 ; GCN: v_mov_b32_e32 v0, v1
7 ; GCN: ; return
8 define amdgpu_ps float @main(i32 inreg %arg) #0 {
9 main_body:
10   %tmp24 = insertelement <2 x float> undef, float 0.000000e+00, i32 %arg
11   %tmp25 = extractelement <2 x float> %tmp24, i32 1
12   ret float %tmp25
15 attributes #0 = { "InitialPSInputAddr"="36983" }