Fix testcase and test results
authorNick Clifton <nickc@redhat.com>
Fri, 1 Dec 2000 19:11:20 +0000 (19:11 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 1 Dec 2000 19:11:20 +0000 (19:11 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/empic.d
gas/testsuite/gas/mips/empic.s

index ece202257a9aa0c2e2bc8879cc360b2e4875cf17..1ee4fe7ea81a715a78e5354171e011e0c560f50f 100644 (file)
@@ -3,6 +3,12 @@
         * gas/mips/mips16.d: Expect mips16 nops to be used for padding
         when mips16 code generation is enabled.
 
+       * gas/mips/empic.d: Adjust for the fact that the difference
+       between two symbols in the same section are not expected to
+       generate a reloc.
+       * gas/mips/empic.s: Likewise.  Also, correct typo in comment
+       about expected relocs.
+       
 2000-11-30  Diego Novillo  <dnovillo@redhat.com>
 
        * intel.s, intel.d: New test for @GOT references.
index 3c6b4d43bfd7c26ba4feb548e232f5250bc49330..bf8c6372924c2b0bd00013306ce4adb738549d69 100644 (file)
@@ -55,12 +55,8 @@ OFFSET           TYPE              VALUE
 0+00000b8 R_MIPS_64         \.text
 0+00000cc R_MIPS_GNU_REL16_S2  \.text
 0+00000d0 R_MIPS_GNU_REL16_S2  \.text
-0+00000d4 R_MIPS_GNU_REL_HI16  \.text
-0+00000d8 R_MIPS_GNU_REL_LO16  \.text
-0+00000dc R_MIPS_GNU_REL_HI16  \.text
-0+00000e0 R_MIPS_GNU_REL_LO16  \.text
-0+00000e4 R_MIPS_32         \.text
-0+00000f0 R_MIPS_64         \.text
+0+00000dc R_MIPS_32         \.text
+0+00000e8 R_MIPS_64         \.text
 
 
 RELOCATION RECORDS FOR \[\.foo\]:
@@ -126,9 +122,9 @@ Contents of section \.text:
  00a0 3c030000 [26]46300d8 3c030000 [26]46300e8  .*
  00b0 000000cc 00000034 00000000 000000cc  .*
  00c0 00000000 00000034 00000000 10000032  .*
- 00d0 10000033 3c030000 [26]463010c 3c030000  .*
- 00e0 [26]463011c 000000cc 00000034 00000000  .*
- 00f0 00000000 000000cc 00000000 00000034  .*
+ 00d0 10000033 24030034 2403003c 000000cc  .*
+ 00e0 00000034 00000000 00000000 000000cc  .*
+ 00f0 00000000 00000034                    .*
 Contents of section \.data:
 Contents of section \.reginfo:
  0000 80000008 00000000 00000000 00000000  .*
index 2c485b3568a4fabf591712107e0c14aac60dc4c0..2f273df97fd2fc1fef0c9de8445ca0d08ffc9707 100644 (file)
@@ -40,9 +40,10 @@ l5:
        b       2f              # R_MIPS_GNU_REL16_S2   .text 32
        b       2f+4            # R_MIPS_GNU_REL16_S2   .text 33
        la      $3,2f-l5        # R_MIPS_GNU_REL_HI16   .text 0
-                               # R_MIPS_GNU_REL_HI16   .text D8
+                               # R_MIPS_GNU_REL_LO16   .text D8
        la      $3,2f+8-l5      # R_MIPS_GNU_REL_HI16   .text 0
-                               # R_MIPS_GNU_REL_HI16   .text E8
+                               # R_MIPS_GNU_REL_LO16   .text E8
+
 
        .word   2f              # R_MIPS_32     .text CC
        .word   2f-l5           # R_MIPS_PC32   .text EC  or 34
@@ -52,10 +53,8 @@ l5:
 2:                             # at address 0xCC.
        b       2b              # R_MIPS_GNU_REL16_S2   .text 32
        b       2b+4            # R_MIPS_GNU_REL16_S2   .text 33
-       la      $3,2b-l5        # R_MIPS_GNU_REL_HI16   .text 0
-                               # R_MIPS_GNU_REL_HI16   .text 10C
-       la      $3,2b+8-l5      # R_MIPS_GNU_REL_HI16   .text 0
-                               # R_MIPS_GNU_REL_HI16   .text 11C
+       la      $3,2b-l5        # 34
+       la      $3,2b+8-l5      # 3C
        .word   2b              # R_MIPS_32     .text CC
        .word   2b-l5           # R_MIPS_PC32   .text 11C  or 34
        nop