repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[llvm-nm] - Fix a bug and unbreak ASan BB.
[llvm-complete.git]
/
test
/
ExecutionEngine
/
MCJIT
/
test-data-align.ll
blob
f21ea2e2a4528804e83c983f45876e423ce0d9d4
1
; RUN: %lli -O0 %s
2
3
; Check that a variable is always aligned as specified.
4
5
@var = global i32 0, align 32
6
define i32 @main() {
7
%addr = ptrtoint i32* @var to i64
8
%mask = and i64 %addr, 31
9
%tst = icmp eq i64 %mask, 0
10
br i1 %tst, label %good, label %bad
11
good:
12
ret i32 0
13
bad:
14
ret i32 1
15
}