aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-03-31 06:47:54 +0000
committerAlan Modra <amodra@gmail.com>2001-03-31 06:47:54 +0000
commit61b96bb4281e65ed15d15ed7e9ae5102d64bc8c9 (patch)
tree1519a47d47120445c93e517b143353d65f109da8 /gas/testsuite
parent69e37bf6a2178f46c52f5e9d1e607a2067ec2c8b (diff)
downloadgdb-61b96bb4281e65ed15d15ed7e9ae5102d64bc8c9.zip
gdb-61b96bb4281e65ed15d15ed7e9ae5102d64bc8c9.tar.gz
gdb-61b96bb4281e65ed15d15ed7e9ae5102d64bc8c9.tar.bz2
Fix conditional assembly listings when more than one .else/.elsif
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/all/cond.d20
-rw-r--r--gas/testsuite/gas/all/cond.s14
3 files changed, 34 insertions, 5 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index f1abc4b..3c218e4 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-31 Alan Modra <alan@linuxcare.com.au>
+
+ * gas/all/cond.s: Add .if .elseif tree.
+ * gas/all/cond.d: Match above.
+
2001-03-30 H.J. Lu <hjl@gnu.org>
* gas/i386/relax.d: Dump with -s instead of -drw.
diff --git a/gas/testsuite/gas/all/cond.d b/gas/testsuite/gas/all/cond.d
index a496287..4d0da36 100644
--- a/gas/testsuite/gas/all/cond.d
+++ b/gas/testsuite/gas/all/cond.d
@@ -13,8 +13,18 @@
15 0004 0[04] ?00 ?00 ?0[04][ ]+.long[ ]+4
16[ ]+.endc
17[ ]+.endc
- 18 0008 00 ?00 ?00 ?00[ ]+.p2align 5,0
- 18[ ]+00 ?00 ?00 ?00
- 18[ ]+00 ?00 ?00 ?00
- 18[ ]+00 ?00 ?00 ?00
- 18[ ]+00 ?00 ?00 ?00
+ 18[ ]+
+ 19[ ]+.if 0
+ 21[ ]+.elseif 1
+ 22[ ]+.if 0
+ 24[ ]+.elseif 1
+ 25 0008 0[07] ?00 ?00 ?0[07][ ]+.long[ ]+7
+ 26[ ]+.endif
+ 27[ ]+.elseif 1
+ 29[ ]+.else
+ 31[ ]+.endif
+ 32 000c 00 ?00 ?00 ?00[ ]+.p2align 5,0
+ 32[ ]+00 ?00 ?00 ?00
+ 32[ ]+00 ?00 ?00 ?00
+ 32[ ]+00 ?00 ?00 ?00
+ 32[ ]+00 ?00 ?00 ?00
diff --git a/gas/testsuite/gas/all/cond.s b/gas/testsuite/gas/all/cond.s
index 3958321..ba4bd6c 100644
--- a/gas/testsuite/gas/all/cond.s
+++ b/gas/testsuite/gas/all/cond.s
@@ -15,4 +15,18 @@
.long 4
.endc
.endc
+
+ .if 0
+ .long 5
+ .elseif 1
+ .if 0
+ .long 6
+ .elseif 1
+ .long 7
+ .endif
+ .elseif 1
+ .long 8
+ .else
+ .long 9
+ .endif
.p2align 5,0