aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-10-17 08:45:18 +0000
committerJeff Law <law@redhat.com>1994-10-17 08:45:18 +0000
commitea315e99d6b17788e8a2956c2c0a3a4f075f72ba (patch)
treed1924406eefdc152ce2307b0ba6c3bcf13e53689 /gas
parent71b07521c6515f325389b647e61e68d01ded149a (diff)
downloadfsf-binutils-gdb-ea315e99d6b17788e8a2956c2c0a3a4f075f72ba.zip
fsf-binutils-gdb-ea315e99d6b17788e8a2956c2c0a3a4f075f72ba.tar.gz
fsf-binutils-gdb-ea315e99d6b17788e8a2956c2c0a3a4f075f72ba.tar.bz2
* gas/hppa/reloc/reduce3.s: New test.
* gas/hppa/reloc/reloc.exp: run it.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/hppa/reloc/.Sanitize1
-rw-r--r--gas/testsuite/gas/hppa/reloc/reduce3.s51
2 files changed, 52 insertions, 0 deletions
diff --git a/gas/testsuite/gas/hppa/reloc/.Sanitize b/gas/testsuite/gas/hppa/reloc/.Sanitize
index 1c11f7f..e4f8c96 100644
--- a/gas/testsuite/gas/hppa/reloc/.Sanitize
+++ b/gas/testsuite/gas/hppa/reloc/.Sanitize
@@ -35,6 +35,7 @@ labelopbug.s
plabelbug.s
reduce.s
reduce2.s
+reduce3.s
reloc.exp
r_no_reloc.s
roundmode.s
diff --git a/gas/testsuite/gas/hppa/reloc/reduce3.s b/gas/testsuite/gas/hppa/reloc/reduce3.s
new file mode 100644
index 0000000..338f730
--- /dev/null
+++ b/gas/testsuite/gas/hppa/reloc/reduce3.s
@@ -0,0 +1,51 @@
+ .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 blah,DATA
+ .SPACE $PRIVATE$
+ .SUBSPA $DATA$
+
+ .align 8
+blah
+ ; .double 0e+00
+ .word 0 ; = 0x0
+ .word 0 ; = 0x0
+ .EXPORT foo,DATA
+ .align 8
+foo
+ ; .double 0e+00
+ .word 0 ; = 0x0
+ .word 0 ; = 0x0
+ .EXPORT yabba,DATA
+ .align 4
+yabba
+ .word 1
+ .SPACE $TEXT$
+ .SUBSPA $CODE$
+
+ .align 4
+ .EXPORT bar,CODE
+ .EXPORT bar,ENTRY,PRIV_LEV=3,RTNVAL=GR
+bar
+ .PROC
+ .CALLINFO FRAME=64,NO_CALLS,SAVE_SP,ENTRY_GR=3
+ .ENTRY
+ copy %r3,%r1
+ copy %r30,%r3
+ stwm %r1,64(0,%r30)
+ addil L'yabba-$global$,%r27
+ ldo R'yabba-$global$(%r1),%r19
+ ldi 2,%r20
+ stw %r20,0(0,%r19)
+L$0001
+ ldo 64(%r3),%r30
+ ldwm -64(0,%r30),%r3
+ bv,n 0(%r2)
+ .EXIT
+ .PROCEND