summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2006-06-01 22:01:25 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2006-06-01 22:01:25 +0000
commit5482ef37222e01d6b57104afc269cb9a7fccf53d (patch)
tree658ab674f2370fd51e2a6249dadf710dcf328f25 /test/CodeGen
parent29c312300ebfaa8987c744e3cc60dc8fdf6a6738 (diff)
downloadllvm-5482ef37222e01d6b57104afc269cb9a7fccf53d.tar.gz
llvm-5482ef37222e01d6b57104afc269cb9a7fccf53d.tar.bz2
llvm-5482ef37222e01d6b57104afc269cb9a7fccf53d.tar.xz
added some tests for argument passing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/ARM/ret_arg1.ll4
-rw-r--r--test/CodeGen/ARM/ret_arg2.ll4
-rw-r--r--test/CodeGen/ARM/ret_arg3.ll4
-rw-r--r--test/CodeGen/ARM/ret_arg4.ll4
-rw-r--r--test/CodeGen/ARM/ret_arg5.ll4
-rw-r--r--test/CodeGen/ARM/ret_void.ll4
6 files changed, 24 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/ret_arg1.ll b/test/CodeGen/ARM/ret_arg1.ll
new file mode 100644
index 0000000000..db7c7a04c3
--- /dev/null
+++ b/test/CodeGen/ARM/ret_arg1.ll
@@ -0,0 +1,4 @@
+; RUN: llvm-as < %s | llc -march=arm
+int %test(int %a1) {
+ ret int %a1
+}
diff --git a/test/CodeGen/ARM/ret_arg2.ll b/test/CodeGen/ARM/ret_arg2.ll
new file mode 100644
index 0000000000..365bcd60e7
--- /dev/null
+++ b/test/CodeGen/ARM/ret_arg2.ll
@@ -0,0 +1,4 @@
+; RUN: llvm-as < %s | llc -march=arm
+int %test(int %a1, int %a2) {
+ ret int %a2
+}
diff --git a/test/CodeGen/ARM/ret_arg3.ll b/test/CodeGen/ARM/ret_arg3.ll
new file mode 100644
index 0000000000..c1fc09263f
--- /dev/null
+++ b/test/CodeGen/ARM/ret_arg3.ll
@@ -0,0 +1,4 @@
+; RUN: llvm-as < %s | llc -march=arm
+int %test(int %a1, int %a2, int %a3) {
+ ret int %a3
+}
diff --git a/test/CodeGen/ARM/ret_arg4.ll b/test/CodeGen/ARM/ret_arg4.ll
new file mode 100644
index 0000000000..cb7b1974db
--- /dev/null
+++ b/test/CodeGen/ARM/ret_arg4.ll
@@ -0,0 +1,4 @@
+; RUN: llvm-as < %s | llc -march=arm
+int %test(int %a1, int %a2, int %a3, int %a4) {
+ ret int %a4
+}
diff --git a/test/CodeGen/ARM/ret_arg5.ll b/test/CodeGen/ARM/ret_arg5.ll
new file mode 100644
index 0000000000..e434bcab28
--- /dev/null
+++ b/test/CodeGen/ARM/ret_arg5.ll
@@ -0,0 +1,4 @@
+; RUN: llvm-as < %s | llc -march=arm
+int %test(int %a1, int %a2, int %a3, int %a4, int %a5) {
+ ret int %a5
+}
diff --git a/test/CodeGen/ARM/ret_void.ll b/test/CodeGen/ARM/ret_void.ll
new file mode 100644
index 0000000000..c1c1556691
--- /dev/null
+++ b/test/CodeGen/ARM/ret_void.ll
@@ -0,0 +1,4 @@
+; RUN: llvm-as < %s | llc -march=arm
+void %test() {
+ ret void
+}