Home | History | Annotate | Download | only in MCJIT
      1 ; RUN:  %lli_mcjit -remote-mcjit -O0 %s
      2 ; XFAIL: armv7, mips
      3 
      4 ; Check that a variable is always aligned as specified.
      5 
      6 @var = global i32 0, align 32
      7 define i32 @main() {
      8   %addr = ptrtoint i32* @var to i64
      9   %mask = and i64 %addr, 31
     10   %tst = icmp eq i64 %mask, 0
     11   br i1 %tst, label %good, label %bad
     12 good:
     13   ret i32 0
     14 bad:
     15   ret i32 1
     16 }
     17