Revert 239644.
[oota-llvm.git] / test / CodeGen / R600 / complex-folding.ll
1 ;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
2
3 ; CHECK: {{^}}main:
4 ; CHECK-NOT: MOV
5 define void @main(<4 x float> inreg %reg0) #0 {
6 entry:
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)
13   ret void
14 }
15
16 declare float @fabs(float ) readnone
17 declare void @llvm.R600.store.swizzle(<4 x float>, i32, i32)
18
19 attributes #0 = { "ShaderType"="0" }