From 03cc338bc15bdaccba4e88f7822c8b84503dda99 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Sun, 31 Oct 1993 01:41:59 +0000 Subject: [PATCH] * gas/hppa/more.parse/parse.exp: Add new test. * gas/hppa/more.parse/ssbug.s: New test to make sure non-default sections are handled correctly. --- gas/testsuite/gas/hppa/more.parse/.Sanitize | 1 + gas/testsuite/gas/hppa/more.parse/parse.exp | 5 +++++ gas/testsuite/gas/hppa/more.parse/ssbug.s | 10 ++++++++++ gas/testsuite/gas/hppa/parse/.Sanitize | 1 + gas/testsuite/gas/hppa/parse/parse.exp | 5 +++++ gas/testsuite/gas/hppa/parse/ssbug.s | 10 ++++++++++ 6 files changed, 32 insertions(+) create mode 100644 gas/testsuite/gas/hppa/more.parse/ssbug.s create mode 100644 gas/testsuite/gas/hppa/parse/ssbug.s diff --git a/gas/testsuite/gas/hppa/more.parse/.Sanitize b/gas/testsuite/gas/hppa/more.parse/.Sanitize index ea82cf4bb77..a595b4a2c6f 100644 --- a/gas/testsuite/gas/hppa/more.parse/.Sanitize +++ b/gas/testsuite/gas/hppa/more.parse/.Sanitize @@ -42,6 +42,7 @@ nosubspace.s parse.exp procbug.s spacebug.s +ssbug.s stringer.s undefbug.s versionbug.s diff --git a/gas/testsuite/gas/hppa/more.parse/parse.exp b/gas/testsuite/gas/hppa/more.parse/parse.exp index 95b2864ae4a..50eff96ddb9 100755 --- a/gas/testsuite/gas/hppa/more.parse/parse.exp +++ b/gas/testsuite/gas/hppa/more.parse/parse.exp @@ -184,5 +184,10 @@ if [istarget hppa*-*-*] then { # GAS-1.36 choked on this file. # FIXME. Should check relocations made for this test! gas_test "exprbug.s" "" "" "Check for sym1-sym2 acceptance" + + # Bad things happen in the PA ELF backend (others too?) if a non-default + # section is created... + setup_xfail hppa*-*-osf* + gas_test "ssbug.s" "" "" "Check for acceptance of non-default subspaces" } diff --git a/gas/testsuite/gas/hppa/more.parse/ssbug.s b/gas/testsuite/gas/hppa/more.parse/ssbug.s new file mode 100644 index 00000000000..1960e0d3095 --- /dev/null +++ b/gas/testsuite/gas/hppa/more.parse/ssbug.s @@ -0,0 +1,10 @@ + .SPACE $PRIVATE$ + .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31 + .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82 + .SUBSPA $SHORTBSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=80 + .SPACE $TEXT$ + .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44 + .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY + + + diff --git a/gas/testsuite/gas/hppa/parse/.Sanitize b/gas/testsuite/gas/hppa/parse/.Sanitize index ea82cf4bb77..a595b4a2c6f 100644 --- a/gas/testsuite/gas/hppa/parse/.Sanitize +++ b/gas/testsuite/gas/hppa/parse/.Sanitize @@ -42,6 +42,7 @@ nosubspace.s parse.exp procbug.s spacebug.s +ssbug.s stringer.s undefbug.s versionbug.s diff --git a/gas/testsuite/gas/hppa/parse/parse.exp b/gas/testsuite/gas/hppa/parse/parse.exp index 95b2864ae4a..50eff96ddb9 100755 --- a/gas/testsuite/gas/hppa/parse/parse.exp +++ b/gas/testsuite/gas/hppa/parse/parse.exp @@ -184,5 +184,10 @@ if [istarget hppa*-*-*] then { # GAS-1.36 choked on this file. # FIXME. Should check relocations made for this test! gas_test "exprbug.s" "" "" "Check for sym1-sym2 acceptance" + + # Bad things happen in the PA ELF backend (others too?) if a non-default + # section is created... + setup_xfail hppa*-*-osf* + gas_test "ssbug.s" "" "" "Check for acceptance of non-default subspaces" } diff --git a/gas/testsuite/gas/hppa/parse/ssbug.s b/gas/testsuite/gas/hppa/parse/ssbug.s new file mode 100644 index 00000000000..1960e0d3095 --- /dev/null +++ b/gas/testsuite/gas/hppa/parse/ssbug.s @@ -0,0 +1,10 @@ + .SPACE $PRIVATE$ + .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31 + .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82 + .SUBSPA $SHORTBSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=80 + .SPACE $TEXT$ + .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44 + .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY + + + -- 2.30.2