brintos

brintos / llvm-project-archived public Read only

0
0
Text · 976 B · d1f4d77 Raw
34 lines · plain
1; RUN: %lli -jit-kind=mcjit -O0 %s2; RUN: %lli -O0 %s3 4; This test checks that common symbols have been allocated addresses honouring5; the alignment requirement.6 7@CS1 = common global i32 0, align 168@CS2 = common global i8 0, align 19@CS3 = common global i32 0, align 1610 11define i32 @main() nounwind {12entry:13    %retval = alloca i32, align 414    %ptr = alloca i32, align 415    store i32 0, ptr %retval16    store i32 ptrtoint (ptr @CS3 to i32), ptr %ptr, align 417    %0 = load i32, ptr %ptr, align 418    %and = and i32 %0, 1519    %tobool = icmp ne i32 %and, 020    br i1 %tobool, label %if.then, label %if.else21 22if.then:                                          ; preds = %entry23    store i32 1, ptr %retval24    br label %return25 26if.else:                                          ; preds = %entry27    store i32 0, ptr %retval28    br label %return29 30return:                                           ; preds = %if.else, %if.then31    %1 = load i32, ptr %retval32    ret i32 %133}34