diff options
author | Jeff Law <law@redhat.com> | 1994-03-17 21:40:06 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1994-03-17 21:40:06 +0000 |
commit | 80b849167a970f4b0204db2e400dd692c36bfc8c (patch) | |
tree | 454cef9163d33736d97dd28e19e7369203b81007 | |
parent | 49ccc555101b06e8cdca1ca24abbfc745d0735e7 (diff) | |
download | gdb-80b849167a970f4b0204db2e400dd692c36bfc8c.zip gdb-80b849167a970f4b0204db2e400dd692c36bfc8c.tar.gz gdb-80b849167a970f4b0204db2e400dd692c36bfc8c.tar.bz2 |
* gas/hppa/unsorted/importbug.s: New test.
* gas/hppa/unsorted/unsorted.exp: Run it.
-rw-r--r-- | gas/testsuite/gas/hppa/unsorted/.Sanitize | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/hppa/unsorted/importbug.s | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/gas/testsuite/gas/hppa/unsorted/.Sanitize b/gas/testsuite/gas/hppa/unsorted/.Sanitize index 49e95ea..916cf54 100644 --- a/gas/testsuite/gas/hppa/unsorted/.Sanitize +++ b/gas/testsuite/gas/hppa/unsorted/.Sanitize @@ -29,6 +29,7 @@ Things-to-keep: align3.s fragbug.s globalbug.s +importbug.s labeldiffs.s locallabel.s ss_align.s diff --git a/gas/testsuite/gas/hppa/unsorted/importbug.s b/gas/testsuite/gas/hppa/unsorted/importbug.s new file mode 100644 index 0000000..05eb6d2 --- /dev/null +++ b/gas/testsuite/gas/hppa/unsorted/importbug.s @@ -0,0 +1,42 @@ + .SPACE $PRIVATE$ + .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31 + .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82 + .SPACE $TEXT$ + .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44 + .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY + .IMPORT $global$,DATA + .IMPORT $$dyncall,MILLICODE +; gcc_compiled.: + .EXPORT foo,DATA + .SPACE $PRIVATE$ + .SUBSPA $DATA$ + + .align 4 +foo: + .word 0 + .IMPORT __main,CODE + .SPACE $TEXT$ + .SUBSPA $CODE$ + + .align 4 + .EXPORT main,CODE + .EXPORT main,ENTRY,PRIV_LEV=3,RTNVAL=GR +main: + .PROC + .CALLINFO FRAME=64,CALLS,SAVE_RP,SAVE_SP,ENTRY_GR=3 + .ENTRY + .import foo + stw %r2,-20(0,%r30) + copy %r3,%r1 + copy %r30,%r3 + stwm %r1,64(0,%r30) + .CALL + bl __main,%r2 + nop +L$0001: + ldw -20(0,%r3),%r2 + ldo 64(%r3),%r30 + ldwm -64(0,%r30),%r3 + bv,n 0(%r2) + .EXIT + .PROCEND |