brintos

brintos / llvm-project-archived public Read only

0
0
Text · 536 B · 3d124e8 Raw
18 lines · plain
1;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s2 3; CHECK: {{^}}main:4; CHECK-NOT: MOV5define amdgpu_ps void @main(<4 x float> inreg %reg0) {6entry:7  %0 = extractelement <4 x float> %reg0, i32 08  %1 = call float @fabsf(float %0)9  %2 = fptoui float %1 to i3210  %3 = bitcast i32 %2 to float11  %4 = insertelement <4 x float> poison, float %3, i32 012  call void @llvm.r600.store.swizzle(<4 x float> %4, i32 0, i32 0)13  ret void14}15 16declare float @fabsf(float ) readnone17declare void @llvm.r600.store.swizzle(<4 x float>, i32, i32)18