Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc |
2 | ; RUN: lli %t.bc > /dev/null | ||||
3 | |||||
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 | } |