mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
171c11ec93
puts its result in a 32-bit GPR. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49762 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
336 B
LLVM
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
|
|
}
|