1 ;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
5 define amdgpu_ps void @main(<4 x float> inreg %reg0) {
7 %0 = extractelement <4 x float> %reg0, i32 0
8 %1 = call float @fabs(float %0)
9 %2 = fptoui float %1 to i32
10 %3 = bitcast i32 %2 to float
11 %4 = insertelement <4 x float> undef, float %3, i32 0
12 call void @llvm.r600.store.swizzle(<4 x float> %4, i32 0, i32 0)
16 declare float @fabs(float ) readnone
17 declare void @llvm.r600.store.swizzle(<4 x float>, i32, i32)