summaryrefslogtreecommitdiff
path: root/test/CodeGen/SPARC
diff options
context:
space:
mode:
authorVenkatraman Govindaraju <venkatra@cs.wisc.edu>2011-01-12 03:18:21 +0000
committerVenkatraman Govindaraju <venkatra@cs.wisc.edu>2011-01-12 03:18:21 +0000
commit7d29ffbe5b091fae03afd264d8c8b0090c7a45f4 (patch)
treed4e4f25b4f37226a2084330da98e01ab4977a64d /test/CodeGen/SPARC
parentd2e905027b3774bbc29562a5e3f64ad46bf6b0b8 (diff)
downloadllvm-7d29ffbe5b091fae03afd264d8c8b0090c7a45f4.tar.gz
llvm-7d29ffbe5b091fae03afd264d8c8b0090c7a45f4.tar.bz2
llvm-7d29ffbe5b091fae03afd264d8c8b0090c7a45f4.tar.xz
Fix SPARC backend call instruction so that arguments passed through registers
are correctly marked as used instead of passing all possible argument registers as used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SPARC')
-rw-r--r--test/CodeGen/SPARC/2011-01-11-Call.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/2011-01-11-Call.ll b/test/CodeGen/SPARC/2011-01-11-Call.ll
new file mode 100644
index 0000000000..7350e92324
--- /dev/null
+++ b/test/CodeGen/SPARC/2011-01-11-Call.ll
@@ -0,0 +1,13 @@
+; RUN: llc -march=sparc -O0 <%s
+
+define void @test() nounwind {
+entry:
+ %0 = tail call i32 (...)* @foo() nounwind
+ tail call void (...)* @bar() nounwind
+ ret void
+}
+
+declare i32 @foo(...)
+
+declare void @bar(...)
+