aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2002-01-09 07:30:36 +0000
committerH.J. Lu <hjl.tools@gmail.com>2002-01-09 07:30:36 +0000
commitb3ca3a6a1f8315f2fc956c804292b3ff0f01408c (patch)
tree3bd0f6f876b7c14793f7637df84548b107e091c6 /gas
parent145fdc6e9f092290bd97b5868a4a925fe51a919f (diff)
downloadgdb-b3ca3a6a1f8315f2fc956c804292b3ff0f01408c.zip
gdb-b3ca3a6a1f8315f2fc956c804292b3ff0f01408c.tar.gz
gdb-b3ca3a6a1f8315f2fc956c804292b3ff0f01408c.tar.bz2
2002-01-08 H.J. Lu <hjl@gnu.org>
* gas/mips/elf-rel.s: New tests for nested (). * gas/mips/elf-rel.d: Modified for nested () tests. * gas/mips/elfel-rel.d: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/mips/elf-rel.d28
-rw-r--r--gas/testsuite/gas/mips/elf-rel.s13
-rw-r--r--gas/testsuite/gas/mips/elfel-rel.d28
4 files changed, 60 insertions, 16 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 4fbd74d..1dbca5e 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2002-01-08 H.J. Lu <hjl@gnu.org>
+
+ * gas/mips/elf-rel.s: New tests for nested ().
+
+ * gas/mips/elf-rel.d: Modified for nested () tests.
+ * gas/mips/elfel-rel.d: Likewise.
+
2002-01-05 Daniel Jacobowitz <drow@mvista.com>
* gas/mips/jal-svr4pic.s: Add .ent and .frame directives.
diff --git a/gas/testsuite/gas/mips/elf-rel.d b/gas/testsuite/gas/mips/elf-rel.d
index 9f3e998..a23b046 100644
--- a/gas/testsuite/gas/mips/elf-rel.d
+++ b/gas/testsuite/gas/mips/elf-rel.d
@@ -21,16 +21,28 @@ OFFSET [ ]+ TYPE VALUE
0+000002c R_MIPS_LO16 \.text
0+0000030 R_MIPS_HI16 \.text
0+0000048 R_MIPS_LO16 \.text
-0+0000034 R_MIPS_HI16 \.text
+0+0000064 R_MIPS_HI16 \.text
0+000004c R_MIPS_LO16 \.text
-0+0000038 R_MIPS_HI16 \.text
+0+0000068 R_MIPS_HI16 \.text
0+0000050 R_MIPS_LO16 \.text
-0+000003c R_MIPS_HI16 \.text
+0+000006c R_MIPS_HI16 \.text
0+0000054 R_MIPS_LO16 \.text
-0+0000044 R_MIPS_HI16 \.text
+0+0000074 R_MIPS_HI16 \.text
0+0000058 R_MIPS_LO16 \.text
-0+0000040 R_MIPS_HI16 \.text
+0+0000070 R_MIPS_HI16 \.text
0+000005c R_MIPS_LO16 \.text
+0+0000060 R_MIPS_HI16 \.text
+0+0000078 R_MIPS_LO16 \.text
+0+0000034 R_MIPS_HI16 \.text
+0+000007c R_MIPS_LO16 \.text
+0+0000038 R_MIPS_HI16 \.text
+0+0000080 R_MIPS_LO16 \.text
+0+000003c R_MIPS_HI16 \.text
+0+0000084 R_MIPS_LO16 \.text
+0+0000044 R_MIPS_HI16 \.text
+0+0000088 R_MIPS_LO16 \.text
+0+0000040 R_MIPS_HI16 \.text
+0+000008c R_MIPS_LO16 \.text
Contents of section \.text:
@@ -40,9 +52,9 @@ Contents of section \.text:
0030 3c010001 3c010001 3c010002 3c010002 .*
0040 3c010001 3c010001 2021bffe 2021c002 .*
0050 2021bffe 2021c002 20213ffe 2021bffa .*
- 0060 00000000 00000000 00000000 00000000 ................
- 0070 00000000 00000000 00000000 00000000 ................
- 0080 00000000 00000000 00000000 00000000 ................
+ 0060 3c010001 3c010001 3c010002 3c010002 .*
+ 0070 3c010001 3c010001 2021bffe 2021c002 .*
+ 0080 2021bffe 2021c002 20213ffe 2021bffa .*
0090 00000000 00000000 00000000 00000000 ................
00a0 00000000 00000000 00000000 00000000 ................
00b0 00000000 00000000 00000000 00000000 ................
diff --git a/gas/testsuite/gas/mips/elf-rel.s b/gas/testsuite/gas/mips/elf-rel.s
index 4085342..873bc5f 100644
--- a/gas/testsuite/gas/mips/elf-rel.s
+++ b/gas/testsuite/gas/mips/elf-rel.s
@@ -31,3 +31,16 @@ l1:
addi $at,$at,%lo(l2+0x10004)
addi $at,$at,%lo(l2+0x8000)
addi $at,$at,%lo(l2-4)
+
+ lui $at,%hi((l2))
+ lui $at,%hi(((l2+4)))
+ lui $at,%hi((((l2+0x10000))))
+ lui $at,%hi(((((l2+0x10004)))))
+ lui $at,%hi((((((l2-4))))))
+ lui $at,%hi(((((((l2+0x8000)))))))
+ addi $at,$at,%lo((l2))
+ addi $at,$at,%lo(((l2+4)))
+ addi $at,$at,%lo((((l2+0x10000))))
+ addi $at,$at,%lo(((((l2+0x10004)))))
+ addi $at,$at,%lo((((((l2+0x8000))))))
+ addi $at,$at,%lo(((((((l2-4)))))))
diff --git a/gas/testsuite/gas/mips/elfel-rel.d b/gas/testsuite/gas/mips/elfel-rel.d
index b619893..e72bf92 100644
--- a/gas/testsuite/gas/mips/elfel-rel.d
+++ b/gas/testsuite/gas/mips/elfel-rel.d
@@ -22,16 +22,28 @@ OFFSET [ ]+ TYPE VALUE
0+000002c R_MIPS_LO16 \.text
0+0000030 R_MIPS_HI16 \.text
0+0000048 R_MIPS_LO16 \.text
-0+0000034 R_MIPS_HI16 \.text
+0+0000064 R_MIPS_HI16 \.text
0+000004c R_MIPS_LO16 \.text
-0+0000038 R_MIPS_HI16 \.text
+0+0000068 R_MIPS_HI16 \.text
0+0000050 R_MIPS_LO16 \.text
-0+000003c R_MIPS_HI16 \.text
+0+000006c R_MIPS_HI16 \.text
0+0000054 R_MIPS_LO16 \.text
-0+0000044 R_MIPS_HI16 \.text
+0+0000074 R_MIPS_HI16 \.text
0+0000058 R_MIPS_LO16 \.text
-0+0000040 R_MIPS_HI16 \.text
+0+0000070 R_MIPS_HI16 \.text
0+000005c R_MIPS_LO16 \.text
+0+0000060 R_MIPS_HI16 \.text
+0+0000078 R_MIPS_LO16 \.text
+0+0000034 R_MIPS_HI16 \.text
+0+000007c R_MIPS_LO16 \.text
+0+0000038 R_MIPS_HI16 \.text
+0+0000080 R_MIPS_LO16 \.text
+0+000003c R_MIPS_HI16 \.text
+0+0000084 R_MIPS_LO16 \.text
+0+0000044 R_MIPS_HI16 \.text
+0+0000088 R_MIPS_LO16 \.text
+0+0000040 R_MIPS_HI16 \.text
+0+000008c R_MIPS_LO16 \.text
Contents of section \.text:
@@ -41,9 +53,9 @@ Contents of section \.text:
0030 0100013c 0100013c 0200013c 0200013c .*
0040 0100013c 0100013c febf2120 02c02120 .*
0050 febf2120 02c02120 fe3f2120 fabf2120 .*
- 0060 00000000 00000000 00000000 00000000 ................
- 0070 00000000 00000000 00000000 00000000 ................
- 0080 00000000 00000000 00000000 00000000 ................
+ 0060 0100013c 0100013c 0200013c 0200013c .*
+ 0070 0100013c 0100013c febf2120 02c02120 .*
+ 0080 febf2120 02c02120 fe3f2120 fabf2120 .*
0090 00000000 00000000 00000000 00000000 ................
00a0 00000000 00000000 00000000 00000000 ................
00b0 00000000 00000000 00000000 00000000 ................