diff options
| author | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-08-19 23:52:53 +0000 |
|---|---|---|
| committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-08-19 23:52:53 +0000 |
| commit | c4c1ff6ddd383b6ff83b36c5cd01a1002ceeda50 (patch) | |
| tree | 1442b52502cd36861c856c63300a919ce323b395 /llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll | |
| parent | a04cdbb97cda89f35b73ea12266ade7f5839bf22 (diff) | |
| download | bcm5719-llvm-c4c1ff6ddd383b6ff83b36c5cd01a1002ceeda50.tar.gz bcm5719-llvm-c4c1ff6ddd383b6ff83b36c5cd01a1002ceeda50.zip | |
Trying again with PIC tests for MCJIT
llvm-svn: 188730
Diffstat (limited to 'llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll')
| -rw-r--r-- | llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll b/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll new file mode 100644 index 00000000000..9c8b70d12d4 --- /dev/null +++ b/llvm/test/ExecutionEngine/MCJIT/remote/test-ptr-reloc-sm-pic.ll @@ -0,0 +1,17 @@ +; RUN: %lli_mcjit -remote-mcjit -O0 -relocation-model=pic -code-model=small %s +; XFAIL: mips, i686, i386 + +@.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 %. +} + |

