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