1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

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
This commit is contained in:
Dan Gohman 2008-08-19 22:37:59 +00:00
parent 1b18b91296
commit d5c84e8061

View File

@ -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
}