~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/ExecutionEngine/OrcMCJIT/remote/test-ptr-reloc-sm-pic.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: %lli -jit-kind=orc-mcjit -remote-mcjit -O0 -relocation-model=pic -code-model=small %s
 
2
; XFAIL: mips-, mipsel-, aarch64, arm, i686, i386
 
3
 
 
4
@.str = private unnamed_addr constant [6 x i8] c"data1\00", align 1
 
5
@ptr = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), align 4
 
6
@.str1 = private unnamed_addr constant [6 x i8] c"data2\00", align 1
 
7
@ptr2 = global i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str1, i32 0, i32 0), align 4
 
8
 
 
9
define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readonly {
 
10
entry:
 
11
  %0 = load i8*, i8** @ptr, align 4
 
12
  %1 = load i8*, i8** @ptr2, align 4
 
13
  %cmp = icmp eq i8* %0, %1
 
14
  %. = zext i1 %cmp to i32
 
15
  ret i32 %.
 
16
}
 
17