[llvm] r238815 - [mips] Test both %dtprel_hi and %dtprel_lo instead of testing %dtprel_hi twice.

Daniel Sanders daniel.sanders at imgtec.com
Tue Jun 2 03:09:09 PDT 2015


Author: dsanders
Date: Tue Jun  2 05:09:08 2015
New Revision: 238815

URL: http://llvm.org/viewvc/llvm-project?rev=238815&view=rev
Log:
[mips] Test both %dtprel_hi and %dtprel_lo instead of testing %dtprel_hi twice.

The second %dtprel_hi is used on an addiu so it looks like a copy/paste error.

Modified:
    llvm/trunk/test/MC/Mips/mips-relocations.s

Modified: llvm/trunk/test/MC/Mips/mips-relocations.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/mips-relocations.s?rev=238815&r1=238814&r2=238815&view=diff
==============================================================================
--- llvm/trunk/test/MC/Mips/mips-relocations.s (original)
+++ llvm/trunk/test/MC/Mips/mips-relocations.s Tue Jun  2 05:09:08 2015
@@ -11,8 +11,8 @@
 # CHECK:                                  #   fixup A - offset: 0, value: loop_1 at GOT, kind: fixup_Mips_GOT_Local
 # CHECK:  lui     $2, %dtprel_hi(_gp_disp) # encoding: [A,A,0x02,0x3c]
 # CHECK:                                        #   fixup A - offset: 0, value: _gp_disp at DTPREL_HI, kind: fixup_Mips_DTPREL_HI
-# CHECK:  addiu   $2, $2, %dtprel_hi(_gp_disp) # encoding: [A,A,0x42,0x24]
-# CHECK:                                  #   fixup A - offset: 0, value: _gp_disp at DTPREL_HI, kind: fixup_Mips_DTPREL_HI
+# CHECK:  addiu   $2, $2, %dtprel_lo(_gp_disp) # encoding: [A,A,0x42,0x24]
+# CHECK:                                  #   fixup A - offset: 0, value: _gp_disp at DTPREL_LO, kind: fixup_Mips_DTPREL_LO
 # CHECK:  lw      $3, %got(loop_1)($2)      # encoding: [A,A,0x43,0x8c]
 # CHECK:                                    #   fixup A - offset: 0, value: loop_1 at GOT, kind: fixup_Mips_GOT_Local
 # CHECK:  lw      $4, %got_disp(loop_2)($3) # encoding: [A,A,0x64,0x8c]
@@ -31,7 +31,7 @@
     lw $25, %call16(strchr)($gp)
     lw      $3, %got(loop_1)($2)
     lui $2, %dtprel_hi(_gp_disp)
-    addiu $2, $2, %dtprel_hi(_gp_disp)
+    addiu $2, $2, %dtprel_lo(_gp_disp)
     lw $3, %got(loop_1)($2)
     lw $4, %got_disp(loop_2)($3)
     lw $5, %got_page(loop_3)($4)





More information about the llvm-commits mailing list