#
|
#
|
# These tests should be valid on all targets.
|
# These tests should be valid on all targets.
|
#
|
#
|
|
|
# I think currently all targets fail this one when listings are enabled.
|
# I think currently all targets fail this one when listings are enabled.
|
gas_test "p2425.s" "" "" "pcrel values in assignment"
|
gas_test "p2425.s" "" "" "pcrel values in assignment"
|
|
|
# p1480.s uses a ".space" directive which for most assemblers means
|
# p1480.s uses a ".space" directive which for most assemblers means
|
# "allocate some space". On the PA it means "switch into this space".
|
# "allocate some space". On the PA it means "switch into this space".
|
#
|
#
|
# Therefore this test (as it is currently written) is completely bogus
|
# Therefore this test (as it is currently written) is completely bogus
|
# for any PA target. Do not bother trying to run it and just claim
|
# for any PA target. Do not bother trying to run it and just claim
|
# it fails.
|
# it fails.
|
#
|
#
|
# The C54x uses ".space" to allocate bits, and requires absolute expressions;
|
# The C54x uses ".space" to allocate bits, and requires absolute expressions;
|
# The ".space" directive is taken care of in the C54x-specific tests, so fail
|
# The ".space" directive is taken care of in the C54x-specific tests, so fail
|
# here
|
# here
|
#
|
#
|
# The test also doesn't work on mep targets, since they use RELC, and it
|
# The test also doesn't work on mep targets, since they use RELC, and it
|
# will avoid simplifying the expression since it conservatively assumes
|
# will avoid simplifying the expression since it conservatively assumes
|
# ugly expressions can be saved until link-time.
|
# ugly expressions can be saved until link-time.
|
if { [istarget hppa*-*-*] || [istarget *c54x*-*-*] || [istarget mep*-*-*]} then {
|
if { [istarget hppa*-*-*] || [istarget *c54x*-*-*] || [istarget mep*-*-*]} then {
|
setup_xfail *-*-*
|
setup_xfail *-*-*
|
fail "simplifiable double subtraction"
|
fail "simplifiable double subtraction"
|
} else {
|
} else {
|
gas_test "p1480.s" "" "-a>" "simplifiable double subtraction"
|
gas_test "p1480.s" "" "-a>" "simplifiable double subtraction"
|
}
|
}
|
|
|
# No floating point support in assembly code for CRIS and Z80.
|
# No floating point support in assembly code for CRIS and Z80.
|
if { ![istarget cris-*-*] && ![istarget crisv32-*-*]
|
if { ![istarget cris-*-*] && ![istarget crisv32-*-*]
|
&& ![istarget z80-*-*] } then {
|
&& ![istarget z80-*-*] } then {
|
gas_test "float.s" "" "" "simple FP constants"
|
gas_test "float.s" "" "" "simple FP constants"
|
}
|
}
|
|
|
# This test is meaningless for the PA; the difference of two undefined
|
# This test is meaningless for the PA; the difference of two undefined
|
# symbols is something that is (and must be) supported on the PA.
|
# symbols is something that is (and must be) supported on the PA.
|
#
|
#
|
# The MN10300 port supports link time relaxation which in turn allows
|
# The MN10300 port supports link time relaxation which in turn allows
|
# for link time resolution of the differneces of two symbols which are
|
# for link time resolution of the differneces of two symbols which are
|
# undefined at assembly time. Hence this test will not pass for the
|
# undefined at assembly time. Hence this test will not pass for the
|
# MN10300.
|
# MN10300.
|
if { ![istarget hppa*-*-*] && ![istarget mn10300-*-*] && ![istarget am3*-*-*] } then {
|
if { ![istarget hppa*-*-*] && ![istarget mn10300-*-*] && ![istarget am3*-*-*] } then {
|
gas_test_error "diff1.s" "" "difference of two undefined symbols"
|
gas_test_error "diff1.s" "" "difference of two undefined symbols"
|
}
|
}
|
|
|
gas_test_error "equiv1.s" "" ".equiv for symbol already set to another one"
|
gas_test_error "equiv1.s" "" ".equiv for symbol already set to another one"
|
gas_test_error "equiv2.s" "" ".equiv for symbol already set to an expression"
|
gas_test_error "equiv2.s" "" ".equiv for symbol already set to an expression"
|
|
|
# .equ works differently on some targets.
|
# .equ works differently on some targets.
|
case $target_triplet in {
|
case $target_triplet in {
|
{ hppa*-*-* } { }
|
{ hppa*-*-* } { }
|
{ *c54x*-*-* } { }
|
{ *c54x*-*-* } { }
|
default {
|
default {
|
gas_test "equ-ok.s" "" "" ".equ for symbol already set"
|
gas_test "equ-ok.s" "" "" ".equ for symbol already set"
|
gas_test_error "equ-bad.s" "" ".equ for symbol already set through .eqv"
|
gas_test_error "equ-bad.s" "" ".equ for symbol already set through .eqv"
|
}
|
}
|
}
|
}
|
|
|
gas_test "eqv-ok.s" "" "" ".eqv support"
|
gas_test "eqv-ok.s" "" "" ".eqv support"
|
gas_test_error "eqv-bad.s" "" ".eqv for symbol already set"
|
gas_test_error "eqv-bad.s" "" ".eqv for symbol already set"
|
|
|
gas_test "assign-ok.s" "" "" "== assignment support"
|
gas_test "assign-ok.s" "" "" "== assignment support"
|
gas_test_error "assign-bad.s" "" "== assignment for symbol already set"
|
gas_test_error "assign-bad.s" "" "== assignment for symbol already set"
|
|
|
# .equ works differently on some targets.
|
# .equ works differently on some targets.
|
# linkrelax-ing prevents most forward references from working.
|
# linkrelax-ing prevents most forward references from working.
|
case $target_triplet in {
|
case $target_triplet in {
|
{ cr16*-*-* } { }
|
{ cr16*-*-* } { }
|
{ crx*-*-* } { }
|
{ crx*-*-* } { }
|
{ h8300*-*-* } { }
|
{ h8300*-*-* } { }
|
{ hppa*-*-* } { }
|
{ hppa*-*-* } { }
|
{ mn10\[23\]00*-*-* } { }
|
{ mn10\[23\]00*-*-* } { }
|
{ *c54x*-*-* } { }
|
{ *c54x*-*-* } { }
|
default {
|
default {
|
# Some targets don't manage to resolve BFD_RELOC_8 for constants.
|
# Some targets don't manage to resolve BFD_RELOC_8 for constants.
|
setup_xfail "alpha*-*-*" "avr-*-*" "*c30*-*-*" "*c4x*-*-*" \
|
setup_xfail "alpha*-*-*" "avr-*-*" "*c30*-*-*" "*c4x*-*-*" \
|
"d\[13\]0v*-*-*" "i860-*-*" "mips*-*-*" "msp430-*-*" \
|
"d\[13\]0v*-*-*" "i860-*-*" "mips*-*-*" "msp430-*-*" \
|
"pdp11-*-*" "sparc*-*-*" "xtensa*-*-*"
|
"pdp11-*-*" "sparc*-*-*" "xtensa*-*-*"
|
run_dump_test forward
|
run_dump_test forward
|
}
|
}
|
}
|
}
|
|
|
# .set works differently on some targets.
|
# .set works differently on some targets.
|
case $target_triplet in {
|
case $target_triplet in {
|
{ alpha*-*-* } { }
|
{ alpha*-*-* } { }
|
{ mips*-*-* } { }
|
{ mips*-*-* } { }
|
{ *c54x*-*-* } { }
|
{ *c54x*-*-* } { }
|
{ z80-*-* } { }
|
{ z80-*-* } { }
|
default {
|
default {
|
setup_xfail "*c30*-*-*" "*c4x*-*-*" "pdp11-*-*"
|
setup_xfail "*c30*-*-*" "*c4x*-*-*" "pdp11-*-*"
|
run_dump_test redef
|
run_dump_test redef
|
# The next two tests can fail if the target does not convert fixups
|
# The next two tests can fail if the target does not convert fixups
|
# against ordinary symbols into relocations against section symbols.
|
# against ordinary symbols into relocations against section symbols.
|
# This is usually revealed by the error message:
|
# This is usually revealed by the error message:
|
# symbol `sym' required but not present
|
# symbol `sym' required but not present
|
setup_xfail "*c30*-*-*" "*c4x*-*-*" "*arm*-*-*aout*" "*arm*-*-*coff" \
|
setup_xfail "*c30*-*-*" "*c4x*-*-*" "*arm*-*-*aout*" "*arm*-*-*coff" \
|
"*arm*-*-pe" "crx*-*-*" "h8300*-*-*" "m68hc*-*-*" "maxq-*-*" \
|
"*arm*-*-pe" "crx*-*-*" "h8300*-*-*" "m68hc*-*-*" "maxq-*-*" \
|
"mn10300-*-*" "pdp11-*-*" "vax*-*-*" "z8k-*-*" "cr16-*-*"
|
"mn10300-*-*" "pdp11-*-*" "vax*-*-*" "z8k-*-*" "cr16-*-*"
|
run_dump_test redef2
|
run_dump_test redef2
|
setup_xfail "*-*-aix*" "*-*-coff" "*-*-cygwin" "*-*-mingw*" "*-*-pe*" \
|
setup_xfail "*-*-aix*" "*-*-coff" "*-*-cygwin" "*-*-mingw*" "*-*-pe*" \
|
"bfin-*-*" "*c4x*-*-*" "crx*-*-*" "h8300*-*-*" "hppa*-*-hpux*" \
|
"bfin-*-*" "*c4x*-*-*" "crx*-*-*" "h8300*-*-*" "hppa*-*-hpux*" \
|
"m68hc*-*-*" "maxq-*-*" "mn10300-*-*" "or32-*-*" "pdp11-*-*" \
|
"m68hc*-*-*" "maxq-*-*" "mn10300-*-*" "or32-*-*" "pdp11-*-*" \
|
"vax*-*-*" "z8k-*-*" "cr16-*-*"
|
"vax*-*-*" "z8k-*-*" "cr16-*-*"
|
run_dump_test redef3
|
run_dump_test redef3
|
setup_xfail "*c4x*-*-*"
|
setup_xfail "*c4x*-*-*"
|
gas_test_error "redef4.s" "" ".set for symbol already used as label"
|
gas_test_error "redef4.s" "" ".set for symbol already used as label"
|
setup_xfail "*c4x*-*-*"
|
setup_xfail "*c4x*-*-*"
|
gas_test_error "redef5.s" "" ".set for symbol already defined through .comm"
|
gas_test_error "redef5.s" "" ".set for symbol already defined through .comm"
|
}
|
}
|
}
|
}
|
|
|
proc do_comment {} {
|
proc do_comment {} {
|
set testname "comment.s: comments in listings"
|
set testname "comment.s: comments in listings"
|
set x1 0
|
set x1 0
|
set x2 0
|
set x2 0
|
set x3 0
|
set x3 0
|
set white {[ \t]*}
|
set white {[ \t]*}
|
gas_start "comment.s" "-al"
|
gas_start "comment.s" "-al"
|
while 1 {
|
while 1 {
|
# Apparently CRLF is received when using ptys for subprocesses; hence the
|
# Apparently CRLF is received when using ptys for subprocesses; hence the
|
# \r\n for line 3.
|
# \r\n for line 3.
|
expect {
|
expect {
|
-re "^ +1\[ \t\]+# This\[^\n\]*\n" { set x1 1 }
|
-re "^ +1\[ \t\]+# This\[^\n\]*\n" { set x1 1 }
|
-re "^ +2\[ \t\]+# correctly\[^\n\]*\n" { set x2 1 }
|
-re "^ +2\[ \t\]+# correctly\[^\n\]*\n" { set x2 1 }
|
-re "^ +3\[ \t\]+/. C comments too. ./\r?\r?\n" { set x3 1 }
|
-re "^ +3\[ \t\]+/. C comments too. ./\r?\r?\n" { set x3 1 }
|
-re "\[^\n\]*\n" { }
|
-re "\[^\n\]*\n" { }
|
timeout { perror "timeout\n"; break }
|
timeout { perror "timeout\n"; break }
|
eof { break }
|
eof { break }
|
}
|
}
|
}
|
}
|
gas_finish
|
gas_finish
|
if [all_ones $x1 $x2 $x3] then { pass $testname } else { fail $testname }
|
if [all_ones $x1 $x2 $x3] then { pass $testname } else { fail $testname }
|
}
|
}
|
|
|
do_comment
|
do_comment
|
|
|
# This test checks the output of the -ag switch. It must detect at least
|
# This test checks the output of the -ag switch. It must detect at least
|
# the name of the input file, output file, and options passed.
|
# the name of the input file, output file, and options passed.
|
proc general_info_section {} {
|
proc general_info_section {} {
|
set testname "general info section in listings"
|
set testname "general info section in listings"
|
set x1 0
|
set x1 0
|
set x2 0
|
set x2 0
|
set x3 0
|
set x3 0
|
set white {[ \t]*}
|
set white {[ \t]*}
|
gas_start "comment.s" "-agn"
|
gas_start "comment.s" "-agn"
|
while 1 {
|
while 1 {
|
expect {
|
expect {
|
-re "^ \[^\n\]*\t: \-agn\[^\n\]*\n" { set x1 1 }
|
-re "^ \[^\n\]*\t: \-agn\[^\n\]*\n" { set x1 1 }
|
-re "^ \[^\n\]*\t: \[^\n\]*comment\.s\[^\n\]*\n" { set x2 1 }
|
-re "^ \[^\n\]*\t: \[^\n\]*comment\.s\[^\n\]*\n" { set x2 1 }
|
-re "^ \[^\n\]*\t: a\.out\[^\n\]*\n" { set x3 1 }
|
-re "^ \[^\n\]*\t: a\.out\[^\n\]*\n" { set x3 1 }
|
-re "\[^\n\]*\n" { }
|
-re "\[^\n\]*\n" { }
|
timeout { perror "timeout\n"; break }
|
timeout { perror "timeout\n"; break }
|
eof { break }
|
eof { break }
|
}
|
}
|
}
|
}
|
gas_finish
|
gas_finish
|
if [all_ones $x1 $x2 $x3] then { pass $testname } else { fail $testname }
|
if [all_ones $x1 $x2 $x3] then { pass $testname } else { fail $testname }
|
}
|
}
|
|
|
general_info_section
|
general_info_section
|
|
|
#
|
#
|
# Test x930509a -- correct assembly of differences involving forward
|
# Test x930509a -- correct assembly of differences involving forward
|
# references.
|
# references.
|
#
|
#
|
|
|
proc do_930509a {} {
|
proc do_930509a {} {
|
set testname "difference between forward references"
|
set testname "difference between forward references"
|
set x 0
|
set x 0
|
gas_start "x930509.s" "-al"
|
gas_start "x930509.s" "-al"
|
while 1 {
|
while 1 {
|
# We need to accomodate both byte orders here.
|
# We need to accomodate both byte orders here.
|
# If ".long" means an 8-byte value on some target someday, this test will have
|
# If ".long" means an 8-byte value on some target someday, this test will have
|
# to be fixed.
|
# to be fixed.
|
expect {
|
expect {
|
-re "^ +1 .... 00 ?00 ?00 ?00" { fail $testname; set x 1 }
|
-re "^ +1 .... 00 ?00 ?00 ?00" { fail $testname; set x 1 }
|
-re "^ +1 .... 04 ?00 ?00 ?00" { pass $testname; set x 1 }
|
-re "^ +1 .... 04 ?00 ?00 ?00" { pass $testname; set x 1 }
|
-re "^ +1 .... 00 ?00 ?00 ?04" { pass $testname; set x 1 }
|
-re "^ +1 .... 00 ?00 ?00 ?04" { pass $testname; set x 1 }
|
-re "\[^\n\]*\n" { }
|
-re "\[^\n\]*\n" { }
|
timeout { perror "timeout\n"; break }
|
timeout { perror "timeout\n"; break }
|
eof { break }
|
eof { break }
|
}
|
}
|
}
|
}
|
gas_finish
|
gas_finish
|
if !$x then { fail $testname }
|
if !$x then { fail $testname }
|
}
|
}
|
|
|
# This test is meaningless for the PA and CR16/CRX: the difference of two
|
# This test is meaningless for the PA and CR16/CRX: the difference of two
|
# symbols cannot be resolved by the assembler.
|
# symbols cannot be resolved by the assembler.
|
# C54x assembler (for compatibility) does not allow differences between
|
# C54x assembler (for compatibility) does not allow differences between
|
# forward references.
|
# forward references.
|
# C30 counts a four byte offset as a difference of one.
|
# C30 counts a four byte offset as a difference of one.
|
if { ![istarget hppa*-*-*] &&
|
if { ![istarget hppa*-*-*] &&
|
![istarget cr16*-*-*] &&
|
![istarget cr16*-*-*] &&
|
![istarget crx*-*-*] &&
|
![istarget crx*-*-*] &&
|
![istarget *c30*-*-*] &&
|
![istarget *c30*-*-*] &&
|
![istarget *c4x*-*-*] &&
|
![istarget *c4x*-*-*] &&
|
![istarget *c54x*-*-*] } then {
|
![istarget *c54x*-*-*] } then {
|
# the vax fails because VMS can apparently actually handle this
|
# the vax fails because VMS can apparently actually handle this
|
# case in relocs, so gas doesn't handle it itself.
|
# case in relocs, so gas doesn't handle it itself.
|
setup_xfail "h8300*-*-elf*" "mn10200*-*-*" "mn10300*-*-*" "vax*-*-vms*"
|
setup_xfail "h8300*-*-elf*" "mn10200*-*-*" "mn10300*-*-*" "vax*-*-vms*"
|
do_930509a
|
do_930509a
|
}
|
}
|
|
|
# ".struct" and ".align" have different meanings on c54x
|
# ".struct" and ".align" have different meanings on c54x
|
# These directives are done in the c54x-specific tests instead
|
# These directives are done in the c54x-specific tests instead
|
case $target_triplet in {
|
case $target_triplet in {
|
{ hppa*-*-* } { }
|
{ hppa*-*-* } { }
|
{ *c4x*-*-* } { }
|
{ *c4x*-*-* } { }
|
{ *c54x*-*-* } { }
|
{ *c54x*-*-* } { }
|
default {
|
default {
|
run_dump_test struct
|
run_dump_test struct
|
run_dump_test align
|
run_dump_test align
|
run_dump_test align2
|
run_dump_test align2
|
}
|
}
|
}
|
}
|
|
|
# '<' and '>' appear to have special meanings on the excluded targets
|
# '<' and '>' appear to have special meanings on the excluded targets
|
case $target_triplet in {
|
case $target_triplet in {
|
{ frv-*-* } { }
|
{ frv-*-* } { }
|
{ hppa*-*-* } { }
|
{ hppa*-*-* } { }
|
{ m32r-*-* } { }
|
{ m32r-*-* } { }
|
{ mmix-*-* } { }
|
{ mmix-*-* } { }
|
{ *c4x*-*-* } { }
|
{ *c4x*-*-* } { }
|
{ *c54x*-*-* } { }
|
{ *c54x*-*-* } { }
|
{ bfin-*-* } { }
|
{ bfin-*-* } { }
|
default {
|
default {
|
run_dump_test altmacro
|
run_dump_test altmacro
|
# The second test is valid only when '!' is not a comment
|
# The second test is valid only when '!' is not a comment
|
# character (it is allowed to be a line comment character).
|
# character (it is allowed to be a line comment character).
|
if [string match "" [lindex [gas_run excl.s "-o /dev/null" ""] 0]] {
|
if [string match "" [lindex [gas_run excl.s "-o /dev/null" ""] 0]] {
|
run_dump_test altmac2
|
run_dump_test altmac2
|
# Similarly this test does not work when ! is a line seperator.
|
# Similarly this test does not work when ! is a line seperator.
|
run_dump_test eval
|
run_dump_test eval
|
}
|
}
|
}
|
}
|
}
|
}
|
|
|
# This test is for any COFF target.
|
# This test is for any COFF target.
|
# We omit the ARM toolchains because they define locals to
|
# We omit the ARM toolchains because they define locals to
|
# start with '.', which eliminates .eos, .text etc from the output.
|
# start with '.', which eliminates .eos, .text etc from the output.
|
# Omit c54x, since .tag and .def mean something different on that target
|
# Omit c54x, since .tag and .def mean something different on that target
|
if { ([istarget *-*-coff*] && ![istarget *arm*-*-coff] && ![istarget thumb*-*-coff] && ![istarget xscale-*-coff] && ![istarget *c4x*-*-coff] && ![istarget *c54x*-*-coff]) \
|
if { ([istarget *-*-coff*] && ![istarget *arm*-*-coff] && ![istarget thumb*-*-coff] && ![istarget xscale-*-coff] && ![istarget *c4x*-*-coff] && ![istarget *c54x*-*-coff]) \
|
||([istarget *-*-pe*] && ![istarget arm*-*-pe*] && ![istarget thumb*-*-pe*]) \
|
||([istarget *-*-pe*] && ![istarget arm*-*-pe*] && ![istarget thumb*-*-pe*]) \
|
|| [istarget i*86-*-aix*] \
|
|| [istarget i*86-*-aix*] \
|
|| [istarget i*86-*-sco*] \
|
|| [istarget i*86-*-sco*] \
|
|| [istarget i*86-*-isc*] \
|
|| [istarget i*86-*-isc*] \
|
|| [istarget i*86-*-go32*] \
|
|| [istarget i*86-*-go32*] \
|
|| [istarget i*86-*-cygwin*] \
|
|| [istarget i*86-*-cygwin*] \
|
|| [istarget x86_64-*-mingw*] \
|
|| [istarget x86_64-*-mingw*] \
|
|| [istarget i*86-*-*nt] \
|
|| [istarget i*86-*-*nt] \
|
|| [istarget i*86-*-interix*] \
|
|| [istarget i*86-*-interix*] \
|
|| ([istarget i960-*-vxworks5.*] && ![istarget i960-*-vxworks5.0*]) } {
|
|| ([istarget i960-*-vxworks5.*] && ![istarget i960-*-vxworks5.0*]) } {
|
run_dump_test cofftag
|
run_dump_test cofftag
|
}
|
}
|
|
|
# Test omitting conditionals from listings.
|
# Test omitting conditionals from listings.
|
proc test_cond {} {
|
proc test_cond {} {
|
global comp_output
|
global comp_output
|
global srcdir
|
global srcdir
|
global subdir
|
global subdir
|
|
|
set testname "conditional listings"
|
set testname "conditional listings"
|
gas_run cond.s "-alc" ">dump.out"
|
gas_run cond.s "-alc" ">dump.out"
|
if ![string match "" $comp_output] {
|
if ![string match "" $comp_output] {
|
send_log "$comp_output\n"
|
send_log "$comp_output\n"
|
fail $testname
|
fail $testname
|
} else {
|
} else {
|
if { [regexp_diff dump.out $srcdir/$subdir/cond.l] } {
|
if { [regexp_diff dump.out $srcdir/$subdir/cond.l] } {
|
fail $testname
|
fail $testname
|
} else {
|
} else {
|
pass $testname
|
pass $testname
|
}
|
}
|
}
|
}
|
}
|
}
|
|
|
# This test is not suitable for the PA for various reasons
|
# This test is not suitable for the PA for various reasons
|
# not limited to the fact that it depends on specific section
|
# not limited to the fact that it depends on specific section
|
# names appearing in the output file.
|
# names appearing in the output file.
|
# again, p2align doesn't work on c54x target
|
# again, p2align doesn't work on c54x target
|
case $target_triplet in {
|
case $target_triplet in {
|
{ hppa*-*-* } { }
|
{ hppa*-*-* } { }
|
{ *c4x*-*-* } { }
|
{ *c4x*-*-* } { }
|
{ *c54x*-*-* } { }
|
{ *c54x*-*-* } { }
|
default {
|
default {
|
test_cond
|
test_cond
|
remote_download host "$srcdir/$subdir/incbin.dat"
|
remote_download host "$srcdir/$subdir/incbin.dat"
|
run_dump_test incbin
|
run_dump_test incbin
|
}
|
}
|
}
|
}
|
|
|
if { ([istarget "i*86-*-*pe*"] && ![istarget "i*86-*-openbsd*"]) \
|
if { ([istarget "i*86-*-*pe*"] && ![istarget "i*86-*-openbsd*"]) \
|
|| [istarget "i*86-*-cygwin*"] \
|
|| [istarget "i*86-*-cygwin*"] \
|
|| [istarget "i*86-*-mingw32*"] } {
|
|| [istarget "i*86-*-mingw32*"] } {
|
gas_test "fastcall.s" "" "" "fastcall labels"
|
gas_test "fastcall.s" "" "" "fastcall labels"
|
}
|
}
|
|
|
run_dump_test assign
|
run_dump_test assign
|
run_dump_test sleb128
|
run_dump_test sleb128
|
|
|
# .byte is 32 bits on tic4x, and .p2align isn't supported on tic54x
|
# .byte is 32 bits on tic4x, and .p2align isn't supported on tic54x
|
# .space is different on hppa*-hpux.
|
# .space is different on hppa*-hpux.
|
if { ![istarget "tic4x*-*-*"] && ![istarget "tic54x*-*-*"] && ![istarget "hppa*-*-hpux*"] } {
|
if { ![istarget "tic4x*-*-*"] && ![istarget "tic54x*-*-*"] && ![istarget "hppa*-*-hpux*"] } {
|
run_dump_test relax
|
run_dump_test relax
|
}
|
}
|
|
|
# .quad is 16 bytes on i960.
|
# .quad is 16 bytes on i960.
|
if { ![istarget "i960-*-*"] } {
|
if { ![istarget "i960-*-*"] } {
|
run_dump_test quad
|
run_dump_test quad
|
}
|
}
|
|
|
|
|
# .set works differently on some targets.
|
# .set works differently on some targets.
|
case $target_triplet in {
|
case $target_triplet in {
|
{ alpha*-*-* } { }
|
{ alpha*-*-* } { }
|
{ mips*-*-* } { }
|
{ mips*-*-* } { }
|
{ *c54x*-*-* } { }
|
{ *c54x*-*-* } { }
|
{ z80-*-* } { }
|
{ z80-*-* } { }
|
default {
|
default {
|
run_dump_test weakref1
|
run_dump_test weakref1
|
run_dump_test weakref1g
|
run_dump_test weakref1g
|
run_dump_test weakref1l
|
run_dump_test weakref1l
|
run_dump_test weakref1u
|
run_dump_test weakref1u
|
run_dump_test weakref1w
|
run_dump_test weakref1w
|
}
|
}
|
}
|
}
|
gas_test_error "weakref2.s" "" "e: would close weakref loop: e => a => b => c => d => e"
|
gas_test_error "weakref2.s" "" "e: would close weakref loop: e => a => b => c => d => e"
|
gas_test_error "weakref3.s" "" "a: would close weakref loop: a => b => c => d => e => a"
|
gas_test_error "weakref3.s" "" "a: would close weakref loop: a => b => c => d => e => a"
|
gas_test_error "weakref4.s" "" "is already defined"
|
gas_test_error "weakref4.s" "" "is already defined"
|
|
|
run_dump_test string
|
run_dump_test string
|
|
|
load_lib gas-dg.exp
|
load_lib gas-dg.exp
|
dg-init
|
dg-init
|
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s $srcdir/$subdir/warn-*.s]] "" ""
|
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s $srcdir/$subdir/warn-*.s]] "" ""
|
dg-finish
|
dg-finish
|
|
|