blob: bcfaa7a0e5a2ff19a8e8550bc7fecc0db1a3fa92 [file] [log] [blame]
Dan Gohman788db592008-04-16 02:32:24 +00001; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 | grep extractps | count 2
2
3define 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}
8define 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}