| 1 |
; RUN: %lli -jit-kind=mcjit -remote-mcjit -O0 -mcjit-remote-process=lli-child-target %s |
| 2 |
; XFAIL: target={{.*-windows-(gnu|msvc)}} |
| 3 |
; REQUIRES: thread_support |
| 4 |
; UNSUPPORTED: target=powerpc64-unknown-linux-gnu |
| 5 |
; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed |
| 6 |
|
| 7 |
@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1 |
| 8 |
@ptr = global ptr @.str, align 4 |
| 9 |
@.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1 |
| 10 |
@ptr2 = global ptr @.str1, align 4 |
| 11 |
|
| 12 |
define i32 @main(i32 %argc, ptr nocapture %argv) nounwind readonly { |
| 13 |
entry: |
| 14 |
%0 = load ptr, ptr @ptr, align 4 |
| 15 |
%1 = load ptr, ptr @ptr2, align 4 |
| 16 |
%cmp = icmp eq ptr %0, %1 |
| 17 |
%. = zext i1 %cmp to i32 |
| 18 |
ret i32 %. |
| 19 |
} |