aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/fast-isel.ll
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-07-21 22:26:11 +0000
committerEric Christopher <echristo@apple.com>2010-07-21 22:26:11 +0000
commitab695889c67fb499bd902e8a969d0ff02ce66788 (patch)
tree08de6f74a5c870544d0d680bc1d69c6378557ccf /test/CodeGen/ARM/fast-isel.ll
parentd13db2c59cc94162d6cf0a04187d408bfef6d4a7 (diff)
downloadexternal_llvm-ab695889c67fb499bd902e8a969d0ff02ce66788.zip
external_llvm-ab695889c67fb499bd902e8a969d0ff02ce66788.tar.gz
external_llvm-ab695889c67fb499bd902e8a969d0ff02ce66788.tar.bz2
Baby steps towards ARM fast-isel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/fast-isel.ll')
-rw-r--r--test/CodeGen/ARM/fast-isel.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/fast-isel.ll b/test/CodeGen/ARM/fast-isel.ll
new file mode 100644
index 0000000..c691cbe
--- /dev/null
+++ b/test/CodeGen/ARM/fast-isel.ll
@@ -0,0 +1,15 @@
+; RUN: llc < %s -fast-isel -fast-isel-abort -march=arm
+
+; Very basic fast-isel functionality.
+
+define i32 @add(i32 %a, i32 %b) nounwind ssp {
+entry:
+ %a.addr = alloca i32, align 4
+ %b.addr = alloca i32, align 4
+ store i32 %a, i32* %a.addr
+ store i32 %b, i32* %b.addr
+ %tmp = load i32* %a.addr
+ %tmp1 = load i32* %b.addr
+ %add = add nsw i32 %tmp, %tmp1
+ ret i32 %add
+}