brintos

brintos / llvm-project-archived public Read only

0
0
Text · 974 B · d9f28be Raw
27 lines · plain
1; RUN: llc -mtriple=amdgcn -mcpu=gfx600 < %s | FileCheck %s2; RUN: llc -mtriple=amdgcn -mcpu=gfx700 < %s | FileCheck %s3; RUN: llc -mtriple=amdgcn -mcpu=gfx1100 < %s | FileCheck %s4 5; On gfx6 and gfx7, this test shows a bug in SelectionDAG where scalarizing the6; extension of a vector of f16 generates an illegal node that errors later.7 8; CHECK-LABEL: {{^}}main:9; CHECK: v_cvt_f32_f1610 11define amdgpu_gs void @main(i32 inreg %arg) local_unnamed_addr #0 {12.entry:13  %tmp = load volatile float, ptr addrspace(1) poison14  %tmp1 = bitcast float %tmp to i3215  %im0.i = lshr i32 %tmp1, 1616  %tmp2 = insertelement <2 x i32> poison, i32 %im0.i, i32 117  %tmp3 = trunc <2 x i32> %tmp2 to <2 x i16>18  %tmp4 = bitcast <2 x i16> %tmp3 to <2 x half>19  %tmp5 = fpext <2 x half> %tmp4 to <2 x float>20  %bc = bitcast <2 x float> %tmp5 to <2 x i32>21  %tmp6 = extractelement <2 x i32> %bc, i32 122  store volatile i32 %tmp6, ptr addrspace(1) poison23  ret void24}25 26attributes #0 = { nounwind }27