Gabor Greif | afb4e8c | 2008-05-20 22:07:21 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as %s -f -o %t.bc |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 2 | ; RUN: lli %t.bc > /dev/null |
| 3 | |
| 4 | ; This testcase failed to work because two variable sized allocas confused the |
| 5 | ; local register allocator. |
| 6 | |
Tanya Lattner | 003eae5 | 2008-03-10 07:21:50 +0000 | [diff] [blame] | 7 | define i32 @main(i32 %X) { |
| 8 | %A = alloca i32, i32 %X ; <i32*> [#uses=0] |
| 9 | %B = alloca float, i32 %X ; <float*> [#uses=0] |
| 10 | ret i32 0 |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 11 | } |
Tanya Lattner | 003eae5 | 2008-03-10 07:21:50 +0000 | [diff] [blame] | 12 | |