Evan Cheng | 02b985c | 2007-01-19 09:20:23 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 && |
Lauro Ramos Venancio | b5b84f9 | 2007-01-31 13:12:46 +0000 | [diff] [blame] | 2 | ; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin -mattr=+v6 --disable-fp-elim | grep mov | wc -l | grep 2 |
Evan Cheng | 02b985c | 2007-01-19 09:20:23 +0000 | [diff] [blame] | 3 | |
| 4 | int %test(int %x) { |
| 5 | %tmp = cast int %x to short |
| 6 | %tmp2 = tail call int %f( int 1, short %tmp ) |
| 7 | ret int %tmp2 |
| 8 | } |
| 9 | |
| 10 | declare int %f(int, short) |