2a45472b25a12cfa9748f4239b137c90f70c25b8
[oota-llvm.git] / test / ExecutionEngine / MCJIT / remote / test-ptr-reloc-sm-pic.ll
1 ; RUN: %lli -remote-mcjit -mcjit-remote-process=lli-child-target%exeext \
2 ; RUN:   -O0 -relocation-model=pic -code-model=small %s
3 ; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386, win32
4
5 @.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
6 @ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4
7 @.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1
8 @ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4
9
10 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly {
11 entry:
12   %0 = load i8*, i8** @ptr, align 4
13   %1 = load i8*, i8** @ptr2, align 4
14   %cmp = icmp eq i8* %0, %1
15   %. = zext i1 %cmp to i32
16   ret i32 %.
17 }
18