1 ; Check that lli respects alignment on global variables.
3 ; Returns ((uint32_t)&B & 0x7) - A + C. Variables A and C have byte-alignment,
4 ; and are intended to increase the chance of misalignment, but don't contribute
5 ; to the result, since they have the same initial value.
7 ; A failure may indicate a problem with alignment handling in the JIT linker or
12 @A = internal global i8 1, align 1
13 @B = global i64 1, align 8
14 @C = internal global i8 1, align 1
16 define i32 @main(i32 %argc, i8** %argv) {
18 %0 = ptrtoint i8* @B to i32
21 %3 = zext i8 %2 to i32
24 %6 = zext i8 %5 to i32