xref: /llvm-project/llvm/test/ExecutionEngine/MCJIT/remote/test-data-align-remote.ll (revision 2d56d8c4e8751c7e2cab927cdeb4e519af3f3585)
1; RUN:  %lli -jit-kind=mcjit -remote-mcjit -O0 -mcjit-remote-process=lli-child-target%exeext %s
2; XFAIL: target={{.*-windows-(gnu|msvc)}}
3; UNSUPPORTED: powerpc64-unknown-linux-gnu
4; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed
5
6; Check that a variable is always aligned as specified.
7
8@var = global i32 0, align 32
9define i32 @main() nounwind {
10  %addr = ptrtoint ptr @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