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