aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}