Taints the non-acquire RMW's store address with the load part
[oota-llvm.git] / test / ExecutionEngine / RuntimeDyld / Mips / ELF_O32_PIC_relocations.s
index d92164806714bf1cee53836bade1af4bbc2c211c..e4b51002e65fd870497d2ac98836c62b0fd0fae5 100644 (file)
@@ -1,17 +1,21 @@
 # RUN: llvm-mc -triple=mipsel-unknown-linux -relocation-model=pic -code-model=small -filetype=obj -o %T/test_ELF_O32.o %s
 # RUN: llc -mtriple=mipsel-unknown-linux -relocation-model=pic -filetype=obj -o %T/test_ELF_ExternalFunction_O32.o %S/Inputs/ExternalFunction.ll
-# RUN: llvm-rtdyld -triple=mipsel-unknown-linux -verify -map-section test_ELF_O32.o,.text=0x1000 -map-section test_ELF_ExternalFunction_O32.o,.text=0x10000 -check=%s %T/test_ELF_O32.o %T/test_ELF_ExternalFunction_O32.o
+# RUN: llvm-rtdyld -triple=mipsel-unknown-linux -verify -map-section test_ELF_O32.o,"<common symbols>"=0x7FF8 -map-section test_ELF_O32.o,.text=0x1000 -map-section test_ELF_ExternalFunction_O32.o,.text=0x10000 -check=%s %T/test_ELF_O32.o %T/test_ELF_ExternalFunction_O32.o
+
+# RUN: llvm-mc -triple=mips-unknown-linux -relocation-model=pic -code-model=small -filetype=obj -o %T/test_ELF_O32.o %s
+# RUN: llc -mtriple=mips-unknown-linux -relocation-model=pic -filetype=obj -o %/T/test_ELF_ExternalFunction_O32.o %S/Inputs/ExternalFunction.ll
+# RUN: llvm-rtdyld -triple=mips-unknown-linux -verify -map-section test_ELF_O32.o,"<common symbols>"=0x7FF8 -map-section test_ELF_O32.o,.text=0x1000 -map-section test_ELF_ExternalFunction_O32.o,.text=0x10000 -check=%s %T/test_ELF_O32.o %T/test_ELF_ExternalFunction_O32.o
 
         .data
-# rtdyld-check: *{4}R_MIPS_32 = foo
+# rtdyld-check: *{4}R_MIPS_32 = foo[31:0]
 R_MIPS_32:
         .word foo
-# rtdyld-check: *{4}(R_MIPS_32+4) = foo
+# rtdyld-check: *{4}(R_MIPS_32+4) = foo[31:0]
         .4byte foo
-# rtdyld-check: *{4}(R_MIPS_PC32) = foo - R_MIPS_PC32
+# rtdyld-check: *{4}(R_MIPS_PC32) = (foo - R_MIPS_PC32)[31:0]
 R_MIPS_PC32:
         .word foo-.
-# rtdyld-check: *{4}(R_MIPS_PC32 + 4) = foo - tmp1
+# rtdyld-check: *{4}(R_MIPS_PC32 + 4) = (foo - tmp1)[31:0]
 tmp1:
         .4byte foo-tmp1
 
@@ -35,6 +39,11 @@ R_MIPS_26:
        j   foo
        nop
 
+# rtdyld-check:  decode_operand(R_MIPS_PC16, 1)[17:0] = (foo - R_MIPS_PC16)[17:0]
+R_MIPS_PC16:
+       bal   foo
+       nop
+
 # rtdyld-check:  decode_operand(R_MIPS_HI16, 1)[15:0] = foo[31:16]
 R_MIPS_HI16:
        lui     $1, %hi(foo)
@@ -43,4 +52,13 @@ R_MIPS_HI16:
 R_MIPS_LO16:
        lui     $1, %lo(foo)
 
+# rtdyld-check:  decode_operand(R_MIPS_HI16_ADDEND, 1)[15:0] = (var+0x8008)[31:16]
+R_MIPS_HI16_ADDEND:
+       lui     $2, %hi(var+8)
+
+# rtdyld-check:  decode_operand(R_MIPS_LO16_ADDEND, 2)[15:0] = (var+0x8)[15:0]
+R_MIPS_LO16_ADDEND:
+       lb      $2, %lo(var+8)($2)
+
        .size   bar, .-bar
+       .comm   var,9,1