]> granicus.if.org Git - llvm/commitdiff
[X86][SSE2] Added _mm_loadu_si64 test to match llvm\tools\clang\test\CodeGen\sse2...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 29 Jun 2016 14:05:33 +0000 (14:05 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 29 Jun 2016 14:05:33 +0000 (14:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274127 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/sse2-intrinsics-fast-isel-x86_64.ll

index 5583df4f01e6ba4e9b8bcf2a192549c16f98dfc2..f5ecfa444d862d2db5f279489b85e4431b5d67b6 100644 (file)
@@ -53,6 +53,17 @@ define i64 @test_mm_cvttsd_si64(<2 x double> %a0) nounwind {
   ret i64 %res
 }
 
+define <2 x i64> @test_mm_loadu_si64(i64* %a0) nounwind {
+; X64-LABEL: test_mm_loadu_si64:
+; X64:       # BB#0:
+; X64-NEXT:    movq {{.*#+}} xmm0 = mem[0],zero
+; X64-NEXT:    retq
+  %ld = load i64, i64* %a0, align 1
+  %res0 = insertelement <2 x i64> undef, i64 %ld, i32 0
+  %res1 = insertelement <2 x i64> %res0, i64 0, i32 1
+  ret <2 x i64> %res1
+}
+
 define void @test_mm_stream_si64(i64 *%a0, i64 %a1) {
 ; X64-LABEL: test_mm_stream_si64:
 ; X64:       # BB#0: