From 38b2095b3e79651a1399bfa7804341d5163a384a Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 29 Jun 2016 14:05:33 +0000 Subject: [PATCH] [X86][SSE2] Added _mm_loadu_si64 test to match llvm\tools\clang\test\CodeGen\sse2-builtins.c 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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/CodeGen/X86/sse2-intrinsics-fast-isel-x86_64.ll b/test/CodeGen/X86/sse2-intrinsics-fast-isel-x86_64.ll index 5583df4f01e..f5ecfa444d8 100644 --- a/test/CodeGen/X86/sse2-intrinsics-fast-isel-x86_64.ll +++ b/test/CodeGen/X86/sse2-intrinsics-fast-isel-x86_64.ll @@ -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: