Dan Gohman | 788db59 | 2008-04-16 02:32:24 +0000 | [diff] [blame] | 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 | } |