From f04a9a1ea1a2e0497aa748c45534827d4df4fa3c Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 16 Mar 1994 23:24:53 +0000 Subject: [PATCH] * gas/hppa/unsorted/globalbug.s: New test (expected to fail). * gas/hppa/unsorted/unsorted.exp: Run it. --- gas/testsuite/ChangeLog | 3 +++ gas/testsuite/gas/hppa/unsorted/.Sanitize | 1 + gas/testsuite/gas/hppa/unsorted/globalbug.s | 16 ++++++++++++++++ gas/testsuite/gas/hppa/unsorted/unsorted.exp | 7 ++++++- 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 gas/testsuite/gas/hppa/unsorted/globalbug.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index d4d4435bfe2..27037584273 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,5 +1,8 @@ Wed Mar 16 11:57:07 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + * gas/hppa/unsorted/globalbug.s: New test (expected to fail). + * gas/hppa/unsorted/unsorted.exp: Run it. + * gas/hppa/more.parse/callinfobug.s: New test. * gas/hppa/omre.parse/parse.exp: Run it. diff --git a/gas/testsuite/gas/hppa/unsorted/.Sanitize b/gas/testsuite/gas/hppa/unsorted/.Sanitize index f7f6f98a781..49e95ea8ff3 100644 --- a/gas/testsuite/gas/hppa/unsorted/.Sanitize +++ b/gas/testsuite/gas/hppa/unsorted/.Sanitize @@ -28,6 +28,7 @@ Things-to-keep: align3.s fragbug.s +globalbug.s labeldiffs.s locallabel.s ss_align.s diff --git a/gas/testsuite/gas/hppa/unsorted/globalbug.s b/gas/testsuite/gas/hppa/unsorted/globalbug.s new file mode 100644 index 00000000000..d0f05f64c0a --- /dev/null +++ b/gas/testsuite/gas/hppa/unsorted/globalbug.s @@ -0,0 +1,16 @@ + + .space $PRIVATE$ + .subspa $GLOBAL$ + .export $global$ +$global$ + .space $TEXT$ + .subspa $CODE$ + + .proc + .callinfo +ivaaddr + nop + nop + addil L%ivaaddr-$global$,%dp + ldo R%ivaaddr-$global$(%r1),%r19 + .procend diff --git a/gas/testsuite/gas/hppa/unsorted/unsorted.exp b/gas/testsuite/gas/hppa/unsorted/unsorted.exp index f63c34a4687..b3a923ec86a 100755 --- a/gas/testsuite/gas/hppa/unsorted/unsorted.exp +++ b/gas/testsuite/gas/hppa/unsorted/unsorted.exp @@ -151,6 +151,11 @@ if [istarget hppa*-*-*] then { do_frchain_test # Test bug where switching between subspaces creates bogus alignments -; do_align3_test + do_align3_test + + # Test a problem where $global$ is defined, then used within the + # same source file. + setup_xfail hppa*-*-* + gas_test "globalbug.s" "" "" "Use \$global\$ in file which defines it" } -- 2.30.2