aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/SPARC
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-04-02 04:09:02 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-04-02 04:09:02 +0000
commitf37812e906a3abbdb8353e2eb9e8223ff9036b68 (patch)
tree0b640ee8992d67a900848f70b154939c041e48db /test/CodeGen/SPARC
parentfcb25e60f514e4dbceecef73ac229c61d6202ed2 (diff)
downloadexternal_llvm-f37812e906a3abbdb8353e2eb9e8223ff9036b68.zip
external_llvm-f37812e906a3abbdb8353e2eb9e8223ff9036b68.tar.gz
external_llvm-f37812e906a3abbdb8353e2eb9e8223ff9036b68.tar.bz2
Add support for 64-bit calling convention.
This is far from complete, but it is enough to make it possible to write test cases using i64 arguments. Missing features: - Floating point arguments. - Receiving arguments on the stack. - Calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SPARC')
-rw-r--r--test/CodeGen/SPARC/64bit.ll7
-rw-r--r--test/CodeGen/SPARC/ctpop.ll2
2 files changed, 8 insertions, 1 deletions
diff --git a/test/CodeGen/SPARC/64bit.ll b/test/CodeGen/SPARC/64bit.ll
new file mode 100644
index 0000000..1efbc15
--- /dev/null
+++ b/test/CodeGen/SPARC/64bit.ll
@@ -0,0 +1,7 @@
+; RUN: llc < %s -march=sparcv9 | FileCheck %s
+
+; CHECK: ret2:
+; CHECK: or %g0, %i1, %i0
+define i64 @ret2(i64 %a, i64 %b) {
+ ret i64 %b
+}
diff --git a/test/CodeGen/SPARC/ctpop.ll b/test/CodeGen/SPARC/ctpop.ll
index e56f494..916a414 100644
--- a/test/CodeGen/SPARC/ctpop.ll
+++ b/test/CodeGen/SPARC/ctpop.ll
@@ -1,5 +1,5 @@
; RUN: llc < %s -march=sparc -mattr=-v9 | not grep popc
-; RUN: llc < %s -march=sparcv9 -mattr=v9 | grep popc
+; RUN: llc < %s -march=sparc -mattr=+v9 | grep popc
declare i32 @llvm.ctpop.i32(i32)