aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-25 06:06:49 +0000
committerChris Lattner <sabre@nondot.org>2007-02-25 06:06:49 +0000
commit4283c118cf72b55696d398ae3a20ba1136f6ffc7 (patch)
tree267e8b601ff677007047d4773289bf12e37a242f /test/CodeGen
parent9f0bc659c8d2f1e401a9690e4900b0fd2a70bdfe (diff)
downloadexternal_llvm-4283c118cf72b55696d398ae3a20ba1136f6ffc7.zip
external_llvm-4283c118cf72b55696d398ae3a20ba1136f6ffc7.tar.gz
external_llvm-4283c118cf72b55696d398ae3a20ba1136f6ffc7.tar.bz2
verify i128 return on x86-64 continues to codegen optimally.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/i128-ret.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/i128-ret.ll b/test/CodeGen/X86/i128-ret.ll
new file mode 100644
index 0000000..50c4e0f
--- /dev/null
+++ b/test/CodeGen/X86/i128-ret.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=x86-64 | grep 'movq 8(%rdi), %rdx' &&
+; RUN: llvm-as < %s | llc -march=x86-64 | grep 'movq (%rdi), %rax'
+
+define i128 @test(i128 *%P) {
+ %A = load i128* %P
+ ret i128 %A
+}
+