xref: /llvm-project/llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll (revision 5bb014371ef8b1b082c517768dc7c75e1e8b9ec5)
1; RUN:  %lli_mcjit -remote-mcjit -O0 -mcjit-remote-process=lli-child-target %s
2
3; This fails because __main is not resolved in remote mcjit on cygming.
4; XFAIL: cygwin,mingw32,mips
5
6; Check that a variable is always aligned as specified.
7
8@var = global i32 0, align 32
9define i32 @main() {
10  %addr = ptrtoint i32* @var to i64
11  %mask = and i64 %addr, 31
12  %tst = icmp eq i64 %mask, 0
13  br i1 %tst, label %good, label %bad
14good:
15  ret i32 0
16bad:
17  ret i32 1
18}
19