aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/sret-implicit.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/sret-implicit.ll')
-rw-r--r--test/CodeGen/X86/sret-implicit.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/sret-implicit.ll b/test/CodeGen/X86/sret-implicit.ll
new file mode 100644
index 0000000..3fade1d
--- /dev/null
+++ b/test/CodeGen/X86/sret-implicit.ll
@@ -0,0 +1,10 @@
+; RUN: llc -mtriple=x86_64-apple-darwin8 < %s | FileCheck %s
+; RUN: llc -mtriple=x86_64-pc-linux < %s | FileCheck %s
+
+; CHECK-LABEL: return32
+; CHECK-DAG: movq $0, (%rdi)
+; CHECK-DAG: movq %rdi, %rax
+; CHECK: retq
+define i256 @return32() {
+ ret i256 0
+}