[llvm-commits] [llvm] r55016 - /llvm/trunk/test/CodeGen/X86/fast-isel.ll

Dan Gohman gohman at apple.com
Tue Aug 19 15:37:59 PDT 2008


Author: djg
Date: Tue Aug 19 17:37:59 2008
New Revision: 55016

URL: http://llvm.org/viewvc/llvm-project?rev=55016&view=rev
Log:
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.

Added:
    llvm/trunk/test/CodeGen/X86/fast-isel.ll

Added: llvm/trunk/test/CodeGen/X86/fast-isel.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fast-isel.ll?rev=55016&view=auto

==============================================================================
--- llvm/trunk/test/CodeGen/X86/fast-isel.ll (added)
+++ llvm/trunk/test/CodeGen/X86/fast-isel.ll Tue Aug 19 17:37:59 2008
@@ -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
+}





More information about the llvm-commits mailing list