| 1 |
; RUN: %lli -jit-kind=mcjit -remote-mcjit -O0 -mcjit-remote-process=lli-child-target %s |
| 2 |
; XFAIL: target={{.*-windows-(gnu|msvc)}} |
| 3 |
; REQUIRES: thread_support |
| 4 |
; UNSUPPORTED: target=powerpc64-unknown-linux-gnu |
| 5 |
; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed |
| 6 |
|
| 7 |
; Check that a variable is always aligned as specified. |
| 8 |
|
| 9 |
@var = global i32 0, align 32 |
| 10 |
define i32 @main() nounwind { |
| 11 |
%addr = ptrtoint ptr @var to i64 |
| 12 |
%mask = and i64 %addr, 31 |
| 13 |
%tst = icmp eq i64 %mask, 0 |
| 14 |
br i1 %tst, label %good, label %bad |
| 15 |
good: |
| 16 |
ret i32 0 |
| 17 |
bad: |
| 18 |
ret i32 1 |
| 19 |
} |