summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-07-23 20:03:13 +0000
committerJuergen Ributzka <juergen@apple.com>2014-07-23 20:03:13 +0000
commit1b014504abb8d9f8d7b63b720e4bb581340d0ffb (patch)
tree18a130f7786f375c77d5dcea66241e8ae61749cc /llvm/test
parentdb615d565dc30f01c8fe6da8f09be1793fea50b0 (diff)
downloadbcm5719-llvm-1b014504abb8d9f8d7b63b720e4bb581340d0ffb.tar.gz
bcm5719-llvm-1b014504abb8d9f8d7b63b720e4bb581340d0ffb.zip
[FastISel][AArch64] Fix return type in FastLowerCall.
I used the wrong method to obtain the return type inside FinishCall. This fix simply uses the return type from FastLowerCall, which we already determined to be a valid type. Reduced test case from Chad. Thanks. llvm-svn: 213788
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/AArch64/fast-isel-call-return.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/fast-isel-call-return.ll b/llvm/test/CodeGen/AArch64/fast-isel-call-return.ll
new file mode 100644
index 00000000000..22cb35d99ab
--- /dev/null
+++ b/llvm/test/CodeGen/AArch64/fast-isel-call-return.ll
@@ -0,0 +1,12 @@
+; RUN: llc -fast-isel -fast-isel-abort < %s | FileCheck %s
+target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
+target triple = "aarch64-linux-gnu"
+
+define i8* @test_call_return_type(i64 %size) {
+entry:
+; CHECK: bl xmalloc
+ %0 = call noalias i8* @xmalloc(i64 undef)
+ ret i8* %0
+}
+
+declare noalias i8* @xmalloc(i64)
OpenPOWER on IntegriCloud