summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/i128-ret.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/i128-ret.ll')
-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..277f428
--- /dev/null
+++ b/test/CodeGen/X86/i128-ret.ll
@@ -0,0 +1,8 @@
+; RUN: llc < %s -march=x86-64 | grep {movq 8(%rdi), %rdx}
+; RUN: llc < %s -march=x86-64 | grep {movq (%rdi), %rax}
+
+define i128 @test(i128 *%P) {
+ %A = load i128* %P
+ ret i128 %A
+}
+