blob: 11217eb133648386389f49857e58b461790a1218 [file] [log] [blame]
Tanya Lattnere9789ef2004-11-06 23:32:43 +00001; RUN: llvm-as -f %s -o %t.bc
2; RUN: lli %t.bc > /dev/null
3
Chris Lattner12ba6fd2003-05-12 04:06:38 +00004
5int %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
12int %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}