* gas/hppa/unsorted/importbug.s: New test.
authorJeff Law <law@redhat.com>
Thu, 17 Mar 1994 21:40:06 +0000 (21:40 +0000)
committerJeff Law <law@redhat.com>
Thu, 17 Mar 1994 21:40:06 +0000 (21:40 +0000)
        * gas/hppa/unsorted/unsorted.exp: Run it.

gas/testsuite/gas/hppa/unsorted/.Sanitize
gas/testsuite/gas/hppa/unsorted/importbug.s [new file with mode: 0644]

index 49e95ea8ff3cf047d2ca5513fbf25868401aede7..916cf542e0c980c3806e3e4ed27fdc46fa70644c 100644 (file)
@@ -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 (file)
index 0000000..05eb6d2
--- /dev/null
@@ -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