diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-03-12 05:59:15 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-12 05:59:15 +0000 |
commit | 536e66764b93fd1368ce4d1f753cbe909c05b62d (patch) | |
tree | 5eb23f5f6b44671db2e35e80554adfdb80a6374c /test/CodeGen/X86/mmx-copy-gprs.ll | |
parent | 1285295e6152ce7f33c35c034519d3f9dff5b178 (diff) | |
download | llvm-536e66764b93fd1368ce4d1f753cbe909c05b62d.tar.gz llvm-536e66764b93fd1368ce4d1f753cbe909c05b62d.tar.bz2 llvm-536e66764b93fd1368ce4d1f753cbe909c05b62d.tar.xz |
On x86, if the only use of a i64 load is a i64 store, generate a pair of double load and store instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/mmx-copy-gprs.ll')
-rw-r--r-- | test/CodeGen/X86/mmx-copy-gprs.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/X86/mmx-copy-gprs.ll b/test/CodeGen/X86/mmx-copy-gprs.ll index da17a04a46..2047ce75e5 100644 --- a/test/CodeGen/X86/mmx-copy-gprs.ll +++ b/test/CodeGen/X86/mmx-copy-gprs.ll @@ -1,11 +1,11 @@ -; RUN: llvm-as < %s | llc -march=x86-64 | grep {movq.*(%rsi), %rax} -; RUN: llvm-as < %s | llc -march=x86 | grep {movl.*4(%eax),} +; RUN: llvm-as < %s | llc -march=x86-64 | grep {movq.*(%rsi), %rax} +; RUN: llvm-as < %s | llc -march=x86 -mattr=-sse2 | grep {movl.*4(%eax),} +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep {movsd.(%eax),} ; This test should use GPRs to copy the mmx value, not MMX regs. Using mmx regs, ; increases the places that need to use emms. ; rdar://5741668 -target triple = "x86_64-apple-darwin8" define void @foo(<1 x i64>* %x, <1 x i64>* %y) nounwind { entry: |