Dan Gohman | d3aedf4 | 2008-08-19 22:37:59 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -fast-isel | grep add | count 1 |
2 | |||||
3 | ; This tests very minimal fast-isel functionality. | ||||
4 | |||||
5 | define i32 @foo(i32* %p, i32* %q) { | ||||
6 | entry: | ||||
7 | %r = load i32* %p | ||||
8 | %s = load i32* %q | ||||
9 | br label %fast | ||||
10 | |||||
11 | fast: | ||||
12 | %t = add i32 %r, %s | ||||
13 | br label %exit | ||||
14 | |||||
15 | exit: | ||||
16 | ret i32 %t | ||||
17 | } |