• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN:  %lli_mcjit -remote-mcjit -O0 %s
2; XFAIL: mips
3
4; Check that a variable is always aligned as specified.
5
6@var = global i32 0, align 32
7define 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
12good:
13  ret i32 0
14bad:
15  ret i32 1
16}
17