Move & restructure test per review.
[oota-llvm.git] / test / CodeGen / X86 / sse41-extractps-bitcast-0.ll
1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 | grep extractps | count 2
2
3 define i32 @foo(<4 x float> %v) {
4   %s = extractelement <4 x float> %v, i32 3
5   %i = bitcast float %s to i32
6   ret i32 %i
7 }
8 define i32 @boo(<4 x float> %v) {
9   %t = bitcast <4 x float> %v to <4 x i32>
10   %s = extractelement <4 x i32> %t, i32 3
11   ret i32 %s
12 }