1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-28 14:32:51 +01:00
llvm-mirror/test/Regression/ExecutionEngine/2003-01-15-AlignmentTest.ll

20 lines
324 B
LLVM
Raw Normal View History

2004-11-07 00:32:43 +01:00
; RUN: llvm-as -f %s -o %t.bc
; RUN: lli %t.bc > /dev/null
2003-05-12 06:06:38 +02:00
int %bar(sbyte* %X) {
%P = alloca double ; pointer should be 4 byte aligned!
%R = cast double* %P to int
%A = and int %R, 3
ret int %A
}
int %main() {
%SP = alloca sbyte
%X = add uint 0, 0
alloca sbyte, uint %X
call int %bar(sbyte* %SP)
ret int %0
}