Chris Lattner | 12ba6fd | 2003-05-12 04:06:38 +0000 | [diff] [blame^] | 1 | |
2 | int %bar(sbyte* %X) { | ||||
3 | %P = alloca double ; pointer should be 4 byte aligned! | ||||
4 | %R = cast double* %P to int | ||||
5 | %A = and int %R, 3 | ||||
6 | ret int %A | ||||
7 | } | ||||
8 | |||||
9 | int %main() { | ||||
10 | %SP = alloca sbyte | ||||
11 | %X = add uint 0, 0 | ||||
12 | alloca sbyte, uint %X | ||||
13 | |||||
14 | call int %bar(sbyte* %SP) | ||||
15 | ret int %0 | ||||
16 | } |