blob: 8583bfe87870be3dccf529c2f99b0b4b786577bf [file] [log] [blame]
Andrew Kaylorc2ebf3f2013-10-02 17:12:36 +00001; RUN: %lli_mcjit -remote-mcjit -O0 -mcjit-remote-process=lli-child-target %s
NAKAMURA Takumi5bb01432013-10-27 10:22:52 +00002
3; This fails because __main is not resolved in remote mcjit on cygming.
4; XFAIL: cygwin,mingw32,mips
Andrew Kaylor98f57ca2012-11-16 18:51:59 +00005
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}