aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-06-08 01:08:05 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-06-08 01:08:05 +0000
commitfa6b2d59c95620073fa4b340882fe428acfc949c (patch)
treea85f201fd5cfef3a2c974f0d13adc80ac170940f /gas
parentca1edc95bb5ccc00e5305aeec6ede0834243ebf6 (diff)
downloadgdb-fa6b2d59c95620073fa4b340882fe428acfc949c.zip
gdb-fa6b2d59c95620073fa4b340882fe428acfc949c.tar.gz
gdb-fa6b2d59c95620073fa4b340882fe428acfc949c.tar.bz2
2001-06-07 H.J. Lu <hjl@gnu.org>
* gas/elf/section2.e-mips: New file. * gas/elf/elf.exp (run_list_test): Add suffix. Pass -mips as suffix to run_list_test for mips.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/elf/elf.exp12
-rw-r--r--gas/testsuite/gas/elf/section2.e-mips10
3 files changed, 25 insertions, 4 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index a5bb4e1..76c5601 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,12 @@
2001-06-07 H.J. Lu <hjl@gnu.org>
+ * gas/elf/section2.e-mips: New file.
+
+ * gas/elf/elf.exp (run_list_test): Add suffix.
+ Pass -mips as suffix to run_list_test for mips.
+
+2001-06-07 H.J. Lu <hjl@gnu.org>
+
* gas/elf/section2.l: Match ".*GAS.*" instead of
"GAS LISTING .*".
diff --git a/gas/testsuite/gas/elf/elf.exp b/gas/testsuite/gas/elf/elf.exp
index 3a7e4d7..b57eb93 100644
--- a/gas/testsuite/gas/elf/elf.exp
+++ b/gas/testsuite/gas/elf/elf.exp
@@ -2,11 +2,11 @@
# elf tests
#
-proc run_list_test { name opts } {
+proc run_list_test { name suffix opts } {
global READELF
global srcdir subdir
set testname "elf $name list"
- set file $srcdir/$subdir/$name
+ set file $srcdir/$subdir/$readelf
gas_run ${name}.s "$opts -o dump.o" ">&dump.out"
if { [regexp_diff "dump.out" "${file}.l"] } then {
fail $testname
@@ -21,7 +21,7 @@ proc run_list_test { name opts } {
return
}
verbose_eval {[file_contents "dump.out"]} 3
- if { [regexp_diff "dump.out" "${file}.e"] } then {
+ if { [regexp_diff "dump.out" "${file}.e${suffix}"] } then {
fail $testname
verbose "output is [file_contents "dump.out"]" 2
return
@@ -38,8 +38,12 @@ if { ([istarget "*-*-elf*"]
&& ![istarget *-*-linux*coff*]
&& ![istarget *-*-linux*oldld*]
} then {
+ set target_machine ""
+ if [istarget "mips*-*-*"] then {
+ set target_machine -mips
+ }
run_dump_test "ehopt0"
run_dump_test "section0"
run_dump_test "section1"
- run_list_test "section2" "-al"
+ run_list_test "section2" "$target_machine" "-al"
}
diff --git a/gas/testsuite/gas/elf/section2.e-mips b/gas/testsuite/gas/elf/section2.e-mips
new file mode 100644
index 0000000..4f030e9
--- /dev/null
+++ b/gas/testsuite/gas/elf/section2.e-mips
@@ -0,0 +1,10 @@
+
+Symbol table '.symtab' contains 7 entries:
+ Num: Value Size Type Bind Vis Ndx Name
+ 0: 00000000 0 NOTYPE LOCAL DEFAULT UND
+ 1: 00000000 0 SECTION LOCAL DEFAULT 1
+ 2: 00000000 0 SECTION LOCAL DEFAULT 2
+ 3: 00000000 0 SECTION LOCAL DEFAULT 3
+ 4: 00000000 0 SECTION LOCAL DEFAULT 6
+ 5: 00000000 0 SECTION LOCAL DEFAULT 4
+ 6: 00000000 0 SECTION LOCAL DEFAULT 5