From 5482ef37222e01d6b57104afc269cb9a7fccf53d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 1 Jun 2006 22:01:25 +0000 Subject: added some tests for argument passing git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28644 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/ARM/ret_arg1.ll | 4 ++++ test/CodeGen/ARM/ret_arg2.ll | 4 ++++ test/CodeGen/ARM/ret_arg3.ll | 4 ++++ test/CodeGen/ARM/ret_arg4.ll | 4 ++++ test/CodeGen/ARM/ret_arg5.ll | 4 ++++ test/CodeGen/ARM/ret_void.ll | 4 ++++ 6 files changed, 24 insertions(+) create mode 100644 test/CodeGen/ARM/ret_arg1.ll create mode 100644 test/CodeGen/ARM/ret_arg2.ll create mode 100644 test/CodeGen/ARM/ret_arg3.ll create mode 100644 test/CodeGen/ARM/ret_arg4.ll create mode 100644 test/CodeGen/ARM/ret_arg5.ll create mode 100644 test/CodeGen/ARM/ret_void.ll 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 +} -- cgit v1.2.3