summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-19 22:37:59 +0000
committerDan Gohman <gohman@apple.com>2008-08-19 22:37:59 +0000
commit065e24709ec62b8ae321f0baaf7bb602f2c7ab23 (patch)
treeb604d984d341d55a70c28d40749d25746b5664ce /llvm
parent697284fe0a151be55afb9923486f5091f99b8609 (diff)
downloadbcm5719-llvm-065e24709ec62b8ae321f0baaf7bb602f2c7ab23.tar.gz
bcm5719-llvm-065e24709ec62b8ae321f0baaf7bb602f2c7ab23.zip
Fast-isel is now *minimally* functional. Add a testcase to
demonstrate the extent of its capabilities. Note that it only attempts to operate on one of the blocks in this testcase. llvm-svn: 55016
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/CodeGen/X86/fast-isel.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel.ll b/llvm/test/CodeGen/X86/fast-isel.ll
new file mode 100644
index 00000000000..36c5a2dca3b
--- /dev/null
+++ b/llvm/test/CodeGen/X86/fast-isel.ll
@@ -0,0 +1,17 @@
+; RUN: llvm-as < %s | llc -fast-isel | grep add | count 1
+
+; This tests very minimal fast-isel functionality.
+
+define i32 @foo(i32* %p, i32* %q) {
+entry:
+ %r = load i32* %p
+ %s = load i32* %q
+ br label %fast
+
+fast:
+ %t = add i32 %r, %s
+ br label %exit
+
+exit:
+ ret i32 %t
+}
OpenPOWER on IntegriCloud