diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2015-04-20 23:31:53 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2015-04-20 23:31:53 +0000 |
| commit | 362f89cd46413d53d687dd0b95047de736f8d9d7 (patch) | |
| tree | e523f29a0b7137c4b165b6a45aa96aee606aebc2 /llvm | |
| parent | b3cae3068ded3bb43b6d425b1f7884c2a81e7d0d (diff) | |
| download | bcm5719-llvm-362f89cd46413d53d687dd0b95047de736f8d9d7.tar.gz bcm5719-llvm-362f89cd46413d53d687dd0b95047de736f8d9d7.zip | |
use update_llc_test_checks.py to tighten checking
Also, replace win and linux runs with a generic run because that
makes no difference in what this test is checking.
llvm-svn: 235361
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/CodeGen/X86/i64-mem-copy.ll | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/llvm/test/CodeGen/X86/i64-mem-copy.ll b/llvm/test/CodeGen/X86/i64-mem-copy.ll index 21f88779cf5..19454450dce 100644 --- a/llvm/test/CodeGen/X86/i64-mem-copy.ll +++ b/llvm/test/CodeGen/X86/i64-mem-copy.ll @@ -1,17 +1,26 @@ -; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s -check-prefix=X64 -; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s -check-prefix=X64 -; X64: movq ({{%rsi|%rdx}}), %r - -; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s -check-prefix=X32 -; X32: movsd ({{%ecx|%eax}}), %xmm - -; Uses movsd to load / store i64 values if sse2 is available. +; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=sse2 | FileCheck %s --check-prefix=X64 +; RUN: llc < %s -mtriple=i386-unknown-unknown -mattr=sse2 | FileCheck %s --check-prefix=X32 +; Use movq or movsd to load / store i64 values if sse2 is available. ; rdar://6659858 -define void @foo(i64* %x, i64* %y) nounwind { -entry: - %tmp1 = load i64, i64* %y, align 8 ; <i64> [#uses=1] - store i64 %tmp1, i64* %x, align 8 - ret void +define void @foo(i64* %x, i64* %y) { +; X64-LABEL: foo: +; X64: # BB#0: +; X64-NEXT: movq (%rsi), %rax +; X64-NEXT: movq %rax, (%rdi) +; X64-NEXT: retq +; +; X32-LABEL: foo: +; X32: # BB#0: +; X32-NEXT: movl {{[0-9]+}}(%esp), %eax +; X32-NEXT: movl {{[0-9]+}}(%esp), %ecx +; X32-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero +; X32-NEXT: movsd %xmm0, (%eax) +; X32-NEXT: retl + + %tmp1 = load i64, i64* %y, align 8 + store i64 %tmp1, i64* %x, align 8 + ret void } + |

