diff options
Diffstat (limited to 'test/CodeGen/X86/vec_set-B.ll')
-rw-r--r-- | test/CodeGen/X86/vec_set-B.ll | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/test/CodeGen/X86/vec_set-B.ll b/test/CodeGen/X86/vec_set-B.ll index 5578ecaf00077..0580a33766567 100644 --- a/test/CodeGen/X86/vec_set-B.ll +++ b/test/CodeGen/X86/vec_set-B.ll @@ -1,7 +1,5 @@ -; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s -; RUN: llc < %s -march=x86 -mattr=+sse2 | grep esp | count 2 - -; CHECK-NOT: movaps +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +; RUN: llc < %s -mtriple=i386-unknown -mattr=+sse2 | FileCheck %s ; These should both generate something like this: ;_test3: @@ -11,16 +9,26 @@ ; ret define <2 x i64> @test3(i64 %arg) nounwind { -entry: - %A = and i64 %arg, 1234567 - %B = insertelement <2 x i64> zeroinitializer, i64 %A, i32 0 - ret <2 x i64> %B +; CHECK-LABEL: test3: +; CHECK: # BB#0: +; CHECK-NEXT: movl $1234567, %eax # imm = 0x12D687 +; CHECK-NEXT: andl {{[0-9]+}}(%esp), %eax +; CHECK-NEXT: movd %eax, %xmm0 +; CHECK-NEXT: retl + %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) nounwind { -entry: - %A = and i64 %arg, 1234567 - %B = insertelement <2 x i64> undef, i64 %A, i32 0 - ret <2 x i64> %B +; CHECK-LABEL: test2: +; CHECK: # BB#0: +; CHECK-NEXT: movl $1234567, %eax # imm = 0x12D687 +; CHECK-NEXT: andl {{[0-9]+}}(%esp), %eax +; CHECK-NEXT: movd %eax, %xmm0 +; CHECK-NEXT: retl + %A = and i64 %arg, 1234567 + %B = insertelement <2 x i64> undef, i64 %A, i32 0 + ret <2 x i64> %B } |