mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-25 13:35:10 +00:00
45bcbf491c
Judging from the checking comments this is intentional, so add the flag (makes them pass on non-x86 host). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48157 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
585 B
LLVM
25 lines
585 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep movaps
|
|
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep esp | count 2
|
|
|
|
; These should both generate something like this:
|
|
;_test3:
|
|
; movl $1234567, %eax
|
|
; andl 4(%esp), %eax
|
|
; movd %eax, %xmm0
|
|
; ret
|
|
|
|
define <2 x i64> @test3(i64 %arg) {
|
|
entry:
|
|
%A = and i64 %arg, 1234567
|
|
%B = insertelement <2 x i64> zeroinitializer, i64 %A, i32 0
|
|
ret <2 x i64> %B
|
|
}
|
|
|
|
define <2 x i64> @test2(i64 %arg) {
|
|
entry:
|
|
%A = and i64 %arg, 1234567
|
|
%B = insertelement <2 x i64> undef, i64 %A, i32 0
|
|
ret <2 x i64> %B
|
|
}
|
|
|