aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1995-05-03 19:17:14 +0000
committerJeff Law <law@redhat.com>1995-05-03 19:17:14 +0000
commita2fa9f98245eda3f3660dfc5395cc6a4be159063 (patch)
tree31f0696ffe08b7d8e1d09c6783120374f9eed98c /gas/testsuite
parent4829cd65a78a9ea370e6c59d17bfecb0dc16ee0d (diff)
downloadgdb-a2fa9f98245eda3f3660dfc5395cc6a4be159063.zip
gdb-a2fa9f98245eda3f3660dfc5395cc6a4be159063.tar.gz
gdb-a2fa9f98245eda3f3660dfc5395cc6a4be159063.tar.bz2
* gas/hppa/reloc/longcall.s: New test.
* gas/hppa/reloc/reloc.exp: Run it.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/hppa/reloc/.Sanitize1
-rw-r--r--gas/testsuite/gas/hppa/reloc/longcall.s40
2 files changed, 41 insertions, 0 deletions
diff --git a/gas/testsuite/gas/hppa/reloc/.Sanitize b/gas/testsuite/gas/hppa/reloc/.Sanitize
index baf760f..19b6d25 100644
--- a/gas/testsuite/gas/hppa/reloc/.Sanitize
+++ b/gas/testsuite/gas/hppa/reloc/.Sanitize
@@ -34,6 +34,7 @@ exitbug.s
fixupbug.s
funcrelocbug.s
labelopbug.s
+longcall.s
picreloc.s
plabelbug.s
reduce.s
diff --git a/gas/testsuite/gas/hppa/reloc/longcall.s b/gas/testsuite/gas/hppa/reloc/longcall.s
new file mode 100644
index 0000000..da62be7
--- /dev/null
+++ b/gas/testsuite/gas/hppa/reloc/longcall.s
@@ -0,0 +1,40 @@
+ .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.:
+ .IMPORT bar,CODE
+ .SPACE $TEXT$
+ .SUBSPA $CODE$
+
+ .align 4
+ .EXPORT foo,CODE
+ .EXPORT foo,ENTRY,PRIV_LEV=3,RTNVAL=GR
+foo
+ .PROC
+ .CALLINFO FRAME=64,CALLS,SAVE_RP
+ .ENTRY
+ stw %r2,-20(0,%r30)
+ .CALL
+ bl bar,%r2
+ ldo 64(%r30),%r30
+ .blockz 262144
+ ldw -84(0,%r30),%r2
+ bv 0(%r2)
+ ldo -64(%r30),%r30
+ .EXIT
+ .PROCEND
+ .align 4
+ .EXPORT bar,CODE
+ .EXPORT bar,ENTRY,PRIV_LEV=3,RTNVAL=GR
+bar
+ .PROC
+ .CALLINFO FRAME=0,NO_CALLS
+ .ENTRY
+ bv,n 0(%r2)
+ .EXIT
+ .PROCEND