summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/combine-lds.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-05-12 23:04:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-05-12 23:04:07 +0000
commit9bfa03c6fd8e02b738e0077fd1af7b18eeeeb4c1 (patch)
tree02ded03a6c36779787a2a0d20a980084bcde378b /test/CodeGen/X86/combine-lds.ll
parent38eb9f9ae6e113a92c60b964b9d2a7f0625665bd (diff)
downloadllvm-9bfa03c6fd8e02b738e0077fd1af7b18eeeeb4c1.tar.gz
llvm-9bfa03c6fd8e02b738e0077fd1af7b18eeeeb4c1.tar.bz2
llvm-9bfa03c6fd8e02b738e0077fd1af7b18eeeeb4c1.tar.xz
Xform bitconvert(build_pair(load a, load b)) to a single load if the load locations are at the right offset from each other.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/combine-lds.ll')
-rw-r--r--test/CodeGen/X86/combine-lds.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/combine-lds.ll b/test/CodeGen/X86/combine-lds.ll
new file mode 100644
index 0000000000..5e0ad99667
--- /dev/null
+++ b/test/CodeGen/X86/combine-lds.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movsd
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep mov | count 1
+
+define fastcc double @doload64(i64 %x) nounwind {
+ %tmp717 = bitcast i64 %x to double
+ ret double %tmp717
+}