projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Implement SDIV by power of 2 as srawi/addze rather than load imm, divw
[oota-llvm.git]
/
test
/
ExecutionEngine
/
2003-01-15-AlignmentTest.ll
1
; RUN: llvm-as -f %s -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
}