1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/CodeGen/X86/sse41-extractps-bitcast-0.ll
Dan Gohman be8f2b452b Add support for the form of the SSE41 extractps instruction that
puts its result in a 32-bit GPR.

llvm-svn: 49762
2008-04-16 02:32:24 +00:00

13 lines
336 B
LLVM

; RUN: llvm-as < %s | llc -march=x86 -mattr=sse41 | grep extractps | count 2
define i32 @foo(<4 x float> %v) {
%s = extractelement <4 x float> %v, i32 3
%i = bitcast float %s to i32
ret i32 %i
}
define i32 @boo(<4 x float> %v) {
%t = bitcast <4 x float> %v to <4 x i32>
%s = extractelement <4 x i32> %t, i32 3
ret i32 %s
}