Tanya Lattner | e9789ef | 2004-11-06 23:32:43 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as -f %s -o %t.bc |
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 | } |