mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
0ab5c6c16b
At this time only Unix-based systems are supported. Windows has stubs and should re-route to the simulated mode. Thanks to Sriram Murali for contributions to this patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191843 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
371 B
LLVM
17 lines
371 B
LLVM
; RUN: %lli_mcjit -remote-mcjit -O0 -mcjit-remote-process=lli-child-target %s
|
|
; XFAIL: mips
|
|
|
|
; Check that a variable is always aligned as specified.
|
|
|
|
@var = global i32 0, align 32
|
|
define i32 @main() {
|
|
%addr = ptrtoint i32* @var to i64
|
|
%mask = and i64 %addr, 31
|
|
%tst = icmp eq i64 %mask, 0
|
|
br i1 %tst, label %good, label %bad
|
|
good:
|
|
ret i32 0
|
|
bad:
|
|
ret i32 1
|
|
}
|