aboutsummaryrefslogtreecommitdiff
path: root/test/ExecutionEngine/MCJIT/test-ptr-reloc-remote.ll
blob: 773e4a195f28b29d602cc1d57ab8e44f727731be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: %lli -mtriple=%mcjit_triple -use-mcjit -remote-mcjit -O0 %s
; XFAIL: arm, mips

@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
@ptr = global i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), align 4
@.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1
@ptr2 = global i8* getelementptr inbounds ([6 x i8]* @.str1, i32 0, i32 0), align 4

define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly {
entry:
  %0 = load i8** @ptr, align 4
  %1 = load i8** @ptr2, align 4
  %cmp = icmp eq i8* %0, %1
  %. = zext i1 %cmp to i32
  ret i32 %.
}