Reid Spencer | 4dc9e5a | 2006-12-03 16:17:19 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc |
Tanya Lattner | e9789ef | 2004-11-06 23:32:43 +0000 | [diff] [blame] | 2 | ; RUN: lli %t.bc > /dev/null |
| 3 | |
Chris Lattner | 12ba6fd | 2003-05-12 04:06:38 +0000 | [diff] [blame] | 4 | |
| 5 | int %bar(sbyte* %X) { |
| 6 | %P = alloca double ; pointer should be 4 byte aligned! |
| 7 | %R = cast double* %P to int |
| 8 | %A = and int %R, 3 |
| 9 | ret int %A |
| 10 | } |
| 11 | |
| 12 | int %main() { |
| 13 | %SP = alloca sbyte |
| 14 | %X = add uint 0, 0 |
| 15 | alloca sbyte, uint %X |
| 16 | |
| 17 | call int %bar(sbyte* %SP) |
| 18 | ret int %0 |
| 19 | } |