added some tests for argument passing
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 1 Jun 2006 22:01:25 +0000 (22:01 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 1 Jun 2006 22:01:25 +0000 (22:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28644 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ARM/ret_arg1.ll [new file with mode: 0644]
test/CodeGen/ARM/ret_arg2.ll [new file with mode: 0644]
test/CodeGen/ARM/ret_arg3.ll [new file with mode: 0644]
test/CodeGen/ARM/ret_arg4.ll [new file with mode: 0644]
test/CodeGen/ARM/ret_arg5.ll [new file with mode: 0644]
test/CodeGen/ARM/ret_void.ll [new file with mode: 0644]

diff --git a/test/CodeGen/ARM/ret_arg1.ll b/test/CodeGen/ARM/ret_arg1.ll
new file mode 100644 (file)
index 0000000..db7c7a0
--- /dev/null
@@ -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 (file)
index 0000000..365bcd6
--- /dev/null
@@ -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 (file)
index 0000000..c1fc092
--- /dev/null
@@ -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 (file)
index 0000000..cb7b197
--- /dev/null
@@ -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 (file)
index 0000000..e434bca
--- /dev/null
@@ -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 (file)
index 0000000..c1c1556
--- /dev/null
@@ -0,0 +1,4 @@
+; RUN: llvm-as < %s | llc -march=arm
+void %test() {
+  ret void
+}