xref: /llvm-project/llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll (revision ab5171f988e31ae10c7b9ba1b2aa1e2031c6afd1)
1; RUN:  %lli -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s
2; XFAIL: mingw32,win32,powerpc64-unknown-linux-gnu
3; Remove XFAIL for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
4
5; Check that a variable is always aligned as specified.
6
7@var = global i32 0, align 32
8define i32 @main() nounwind {
9  %addr = ptrtoint i32* @var to i64
10  %mask = and i64 %addr, 31
11  %tst = icmp eq i64 %mask, 0
12  br i1 %tst, label %good, label %bad
13good:
14  ret i32 0
15bad:
16  ret i32 1
17}
18