aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-10 21:15:05 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-10 21:15:05 +0000
commit8ee99f93eb3fb17ce611b0c3b97f49007da12a1a (patch)
tree9f2adda26fbf97dc92641073ad8c29411ddd8956 /gas
parenta22b281cd793e1e173d7aa25c6889595974054da (diff)
downloadgdb-8ee99f93eb3fb17ce611b0c3b97f49007da12a1a.zip
gdb-8ee99f93eb3fb17ce611b0c3b97f49007da12a1a.tar.gz
gdb-8ee99f93eb3fb17ce611b0c3b97f49007da12a1a.tar.bz2
* gas/mips/sync.d: Pass -mips2 to the assembler.
* gas/mips/elf_e_flags.s: Tweak code so that the tests pass for mips-elf target as well as mips64-elf target. * gas/mips/elf_e_flags1.d: Corresponding changes. * gas/mips/elf_e_flags2.d: Likewise. * gas/mips/elf_e_flags3.d: Likewise. * gas/mips/elf_e_flags4.d: Likewise. * gas/elf/elf.exp: Add setup_xfail for mips*-*-*. * gas/all/itbl-test.c (main): Update itbl_get_reg_val call for new parameter.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog16
-rw-r--r--gas/testsuite/gas/all/itbl-test.c4
-rw-r--r--gas/testsuite/gas/elf/elf.exp6
-rw-r--r--gas/testsuite/gas/mips/elf_e_flags.c6
-rw-r--r--gas/testsuite/gas/mips/elf_e_flags.s6
-rw-r--r--gas/testsuite/gas/mips/elf_e_flags1.d13
-rw-r--r--gas/testsuite/gas/mips/elf_e_flags2.d9
-rw-r--r--gas/testsuite/gas/mips/elf_e_flags3.d9
-rw-r--r--gas/testsuite/gas/mips/elf_e_flags4.d9
-rw-r--r--gas/testsuite/gas/mips/sync.d2
10 files changed, 54 insertions, 26 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index a33ae69..a0038f2 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,19 @@
+1999-06-10 Ian Lance Taylor <ian@zembu.com>
+
+ * gas/mips/sync.d: Pass -mips2 to the assembler.
+
+ * gas/mips/elf_e_flags.s: Tweak code so that the tests pass for
+ mips-elf target as well as mips64-elf target.
+ * gas/mips/elf_e_flags1.d: Corresponding changes.
+ * gas/mips/elf_e_flags2.d: Likewise.
+ * gas/mips/elf_e_flags3.d: Likewise.
+ * gas/mips/elf_e_flags4.d: Likewise.
+
+ * gas/elf/elf.exp: Add setup_xfail for mips*-*-*.
+
+ * gas/all/itbl-test.c (main): Update itbl_get_reg_val call for new
+ parameter.
+
1999-06-10 Jakub Jelinek <jj@ultra.linux.cz>
* gas/sparc/synth64.s: Add checks for single register signx/clruw.
diff --git a/gas/testsuite/gas/all/itbl-test.c b/gas/testsuite/gas/all/itbl-test.c
index 023f5d9..d97454e 100644
--- a/gas/testsuite/gas/all/itbl-test.c
+++ b/gas/testsuite/gas/all/itbl-test.c
@@ -118,8 +118,8 @@ test_reg (e_processor processor, e_type type, char *name,
n, processor, type, val);
/* We require that names be unique amoung processors and types. */
- v = itbl_get_reg_val (name);
- if (!v || v != val)
+ if (! itbl_get_reg_val (name, &v)
+ || v != val)
printf ("Error - reg val not found for processor=%d, type=%d, name=%s\n",
processor, type, name);
else
diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp
index 274b9ce..942a48e 100644
--- a/gas/testsuite/gas/elf/elf.exp
+++ b/gas/testsuite/gas/elf/elf.exp
@@ -8,7 +8,11 @@ if { [istarget "*-elf*"]
|| [istarget "sparc*-*-solaris*"]
|| [istarget "mips*-*-irix6*"] } then {
+ # FIXME: This doesn't work for MIPS targets because of the .reginfo
+ # and .mdebug sections.
+ setup_xfail mips*-*-*
run_dump_test "section0"
- run_dump_test "section1"
+ setup_xfail mips*-*-*
+ run_dump_test "section1"
}
diff --git a/gas/testsuite/gas/mips/elf_e_flags.c b/gas/testsuite/gas/mips/elf_e_flags.c
index 17fb111..7615f9c 100644
--- a/gas/testsuite/gas/mips/elf_e_flags.c
+++ b/gas/testsuite/gas/mips/elf_e_flags.c
@@ -9,7 +9,11 @@
We use the -m4650 flag to get the 4650-specific 'mul' instruction
in there; the test suite wants to be sure that GAS's -m4650 flag
will indeed cause it to generate the 4650 mul instruction, and not
- expand it as a macro. */
+ expand it as a macro.
+
+ Ian 10 June 1999: I tweaked the resulting assembler file so that it
+ would generate the same code when gas was configured for mips-elf
+ and for mips64-elf. */
int
foo (int a, int b)
diff --git a/gas/testsuite/gas/mips/elf_e_flags.s b/gas/testsuite/gas/mips/elf_e_flags.s
index 5fc32ea..1eca8c4 100644
--- a/gas/testsuite/gas/mips/elf_e_flags.s
+++ b/gas/testsuite/gas/mips/elf_e_flags.s
@@ -28,11 +28,11 @@ main:
.mask 0x80000000,-8
.fmask 0x00000000,0
subu $sp,$sp,40
- sd $31,32($sp)
+ sw $31,32($sp)
jal __gccmain
move $2,$0
- ld $31,32($sp)
- #nop
+ lw $31,32($sp)
+ nop
.set noreorder
.set nomacro
j $31
diff --git a/gas/testsuite/gas/mips/elf_e_flags1.d b/gas/testsuite/gas/mips/elf_e_flags1.d
index 6faa7c1..0dde67d 100644
--- a/gas/testsuite/gas/mips/elf_e_flags1.d
+++ b/gas/testsuite/gas/mips/elf_e_flags1.d
@@ -3,7 +3,7 @@
# objdump: -fd
.*:.*file format.*mips.*
-architecture: mips:4000, flags 0x00000011:
+architecture: mips:[34]000, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x0000000000000000
@@ -17,10 +17,11 @@ Disassembly of section .text:
0000000000000010 <main>:
10: 27bdffd8 addiu \$sp,\$sp,-40
- 14: ffbf0020 sd \$ra,32\(\$sp\)
+ 14: afbf0020 sw \$ra,32\(\$sp\)
18: 0c000000 jal 0 <foo>
1c: 00000000 nop
- 20: 0000102d move \$v0,\$zero
- 24: dfbf0020 ld \$ra,32\(\$sp\)
- 28: 03e00008 jr \$ra
- 2c: 27bd0028 addiu \$sp,\$sp,40
+ 20: 0000102[1d] move \$v0,\$zero
+ 24: 8fbf0020 lw \$ra,32\(\$sp\)
+ 28: 00000000 nop
+ 2c: 03e00008 jr \$ra
+ 30: 27bd0028 addiu \$sp,\$sp,40
diff --git a/gas/testsuite/gas/mips/elf_e_flags2.d b/gas/testsuite/gas/mips/elf_e_flags2.d
index 50661c2..e313bd3 100644
--- a/gas/testsuite/gas/mips/elf_e_flags2.d
+++ b/gas/testsuite/gas/mips/elf_e_flags2.d
@@ -17,10 +17,11 @@ Disassembly of section .text:
000000000000000c <main>:
c: 27bdffd8 addiu \$sp,\$sp,-40
- 10: ffbf0020 sd \$ra,32\(\$sp\)
+ 10: afbf0020 sw \$ra,32\(\$sp\)
14: 0c000000 jal 0 <foo>
18: 00000000 nop
1c: 0000102d move \$v0,\$zero
- 20: dfbf0020 ld \$ra,32\(\$sp\)
- 24: 03e00008 jr \$ra
- 28: 27bd0028 addiu \$sp,\$sp,40
+ 20: 8fbf0020 lw \$ra,32\(\$sp\)
+ 24: 00000000 nop
+ 28: 03e00008 jr \$ra
+ 2c: 27bd0028 addiu \$sp,\$sp,40
diff --git a/gas/testsuite/gas/mips/elf_e_flags3.d b/gas/testsuite/gas/mips/elf_e_flags3.d
index aacc49e..9813491 100644
--- a/gas/testsuite/gas/mips/elf_e_flags3.d
+++ b/gas/testsuite/gas/mips/elf_e_flags3.d
@@ -17,10 +17,11 @@ Disassembly of section .text:
000000000000000c <main>:
c: 27bdffd8 addiu \$sp,\$sp,-40
- 10: ffbf0020 sd \$ra,32\(\$sp\)
+ 10: afbf0020 sw \$ra,32\(\$sp\)
14: 0c000000 jal 0 <foo>
18: 00000000 nop
1c: 0000102d move \$v0,\$zero
- 20: dfbf0020 ld \$ra,32\(\$sp\)
- 24: 03e00008 jr \$ra
- 28: 27bd0028 addiu \$sp,\$sp,40
+ 20: 8fbf0020 lw \$ra,32\(\$sp\)
+ 24: 00000000 nop
+ 28: 03e00008 jr \$ra
+ 2c: 27bd0028 addiu \$sp,\$sp,40
diff --git a/gas/testsuite/gas/mips/elf_e_flags4.d b/gas/testsuite/gas/mips/elf_e_flags4.d
index 5eb7050..833eba0 100644
--- a/gas/testsuite/gas/mips/elf_e_flags4.d
+++ b/gas/testsuite/gas/mips/elf_e_flags4.d
@@ -17,10 +17,11 @@ Disassembly of section .text:
000000000000000c <main>:
c: 27bdffd8 addiu \$sp,\$sp,-40
- 10: ffbf0020 sd \$ra,32\(\$sp\)
+ 10: afbf0020 sw \$ra,32\(\$sp\)
14: 0c000000 jal 0 <foo>
18: 00000000 nop
1c: 0000102d move \$v0,\$zero
- 20: dfbf0020 ld \$ra,32\(\$sp\)
- 24: 03e00008 jr \$ra
- 28: 27bd0028 addiu \$sp,\$sp,40
+ 20: 8fbf0020 lw \$ra,32\(\$sp\)
+ 24: 00000000 nop
+ 28: 03e00008 jr \$ra
+ 2c: 27bd0028 addiu \$sp,\$sp,40
diff --git a/gas/testsuite/gas/mips/sync.d b/gas/testsuite/gas/mips/sync.d
index 9b50ea2..0b9a187 100644
--- a/gas/testsuite/gas/mips/sync.d
+++ b/gas/testsuite/gas/mips/sync.d
@@ -1,6 +1,6 @@
#objdump: -dr --prefix-addresses --show-raw-insn
#name: sync instructions
-#as:
+#as: -mips2
.*: +file format .*mips.*