aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-12-03 11:28:33 +0000
committerAlan Modra <amodra@gmail.com>2002-12-03 11:28:33 +0000
commitdc8ec78b763370259434fd4c3c863c6960f18995 (patch)
tree3494c5b9e0c735d95c233ba41e2a3d3ed2b3b9fb /gas
parent61b5f74bdbcdbcd3fdeaf6fdc664cd8570f056e6 (diff)
downloadfsf-binutils-gdb-dc8ec78b763370259434fd4c3c863c6960f18995.zip
fsf-binutils-gdb-dc8ec78b763370259434fd4c3c863c6960f18995.tar.gz
fsf-binutils-gdb-dc8ec78b763370259434fd4c3c863c6960f18995.tar.bz2
* gas/arm/adrl.s: Test behaviour against globals too.
* gas/arm/adrl.d: Adjust.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/arm/adrl.d6
-rw-r--r--gas/testsuite/gas/arm/adrl.s16
3 files changed, 24 insertions, 5 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 583811a..177dc26 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,8 +1,13 @@
+2002-12-03 Alan Modra <amodra@bigpond.net.au>
+
+ * gas/arm/adrl.s: Test behaviour against globals too.
+ * gas/arm/adrl.d: Adjust.
+
2002-12-02 Nick Clifton <nickc@redhat.com>
* gasp: Remove entire directory tree. (Gasp has been removed from
binutils).
- * config/default.asp (GASP): Remove definition and initialization.
+ * config/default.asp (GASP): Remove definition and initialization.
2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
diff --git a/gas/testsuite/gas/arm/adrl.d b/gas/testsuite/gas/arm/adrl.d
index badab1a..a9ae57f 100644
--- a/gas/testsuite/gas/arm/adrl.d
+++ b/gas/testsuite/gas/arm/adrl.d
@@ -17,4 +17,10 @@ Disassembly of section .text:
0+201c <.*> e1a00000 nop \(mov r0,r0\)
0+2020 <.*> 028f0000 addeq r0, pc, #0 ; 0x0
0+2024 <.*> e1a00000 nop \(mov r0,r0\)
+0+2028 <.*> e24f0030 sub r0, pc, #48 ; 0x30
+0+202c <.*> e2400c20 sub r0, r0, #8192 ; 0x2000
+0+2030 <.*> e28f0c21 add r0, pc, #8448 ; 0x2100
+0+2034 <.*> e1a00000 nop \(mov r0,r0\)
+ ...
+0+4030 <.*> e28fec01 add lr, pc, #256 ; 0x100
...
diff --git a/gas/testsuite/gas/arm/adrl.s b/gas/testsuite/gas/arm/adrl.s
index 1a96d0b..b2dec7d 100644
--- a/gas/testsuite/gas/arm/adrl.s
+++ b/gas/testsuite/gas/arm/adrl.s
@@ -1,7 +1,8 @@
@ test ADRL pseudo-op
-.text
-foo:
-.align 0
+ .text
+ .global foo
+foo:
+ .align 0
1:
.space 8192
2:
@@ -11,5 +12,12 @@ foo:
adrl r0, 2f
adrEQl r0, 2f
2:
- .space 8200
+ adrl r0, foo
+ adrl r0, X
+ .space 8184
1:
+ adral lr, X
+ .space 0x0104
+
+ .globl X;
+X: