summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitb980f6fb3d6ca420d8f9401371ec14379c54dc79 (patch)
tree51404e6300dcd4f7dd1a9c0516755e562c59b5ba /llvm/test/CodeGen/X86/combine-lds.ll
parente6942c31ea298a16f08c21772c1468d3c5accbad (diff)
downloadbcm5719-llvm-b980f6fb3d6ca420d8f9401371ec14379c54dc79.tar.gz
bcm5719-llvm-b980f6fb3d6ca420d8f9401371ec14379c54dc79.zip
Xform bitconvert(build_pair(load a, load b)) to a single load if the load locations are at the right offset from each other.
llvm-svn: 51008
Diffstat (limited to 'llvm/test/CodeGen/X86/combine-lds.ll')
-rw-r--r--llvm/test/CodeGen/X86/combine-lds.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/combine-lds.ll b/llvm/test/CodeGen/X86/combine-lds.ll
new file mode 100644
index 00000000000..5e0ad996678
--- /dev/null
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud