summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fast-isel-x86-64.ll
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2012-10-02 22:45:06 +0000
committerNick Lewycky <nicholas@mxc.ca>2012-10-02 22:45:06 +0000
commitb09649b3356ab793e304ddd444206bf91000d7ee (patch)
treea25c4ac0836f73d2f6f511863aadd3f824157169 /test/CodeGen/X86/fast-isel-x86-64.ll
parent6c0c6d613ac3223fdf515c1616331bdeb2a4f1a4 (diff)
downloadllvm-b09649b3356ab793e304ddd444206bf91000d7ee.tar.gz
llvm-b09649b3356ab793e304ddd444206bf91000d7ee.tar.bz2
llvm-b09649b3356ab793e304ddd444206bf91000d7ee.tar.xz
Make sure to put our sret argument into %rax on x86-64. Fixes PR13563!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fast-isel-x86-64.ll')
-rw-r--r--test/CodeGen/X86/fast-isel-x86-64.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fast-isel-x86-64.ll b/test/CodeGen/X86/fast-isel-x86-64.ll
index 85a70aad75..cdfaf7f4c1 100644
--- a/test/CodeGen/X86/fast-isel-x86-64.ll
+++ b/test/CodeGen/X86/fast-isel-x86-64.ll
@@ -291,3 +291,16 @@ entry:
}
declare void @foo22(i32)
+
+; PR13563
+define void @test23(i8* noalias sret %result) {
+ %a = alloca i8
+ %b = call i8* @foo23()
+ ret void
+; CHECK: test23:
+; CHECK: call
+; CHECK: movq %rdi, %rax
+; CHECK: ret
+}
+
+declare i8* @foo23()