summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Darrington <john@darrington.wattle.id.au>2018-11-20 18:50:30 +0100
committerJohn Darrington <john@darrington.wattle.id.au>2018-11-21 21:31:10 +0100
commit51534d7ab8c77fdf2af52f409cc4e348e4213bb7 (patch)
treefc1e7ded3e3b5dc00954e459f62475c636702720
parentMake command-repeat work after gdb.execute (diff)
downloadbinutils-gdb-51534d7ab8c77fdf2af52f409cc4e348e4213bb7.tar.gz
binutils-gdb-51534d7ab8c77fdf2af52f409cc4e348e4213bb7.tar.bz2
binutils-gdb-51534d7ab8c77fdf2af52f409cc4e348e4213bb7.tar.xz
S12Z: Add alias instructions BHS and BLO.
These are documented by NXP as alternative mnemonics for BCC and BCS respectively. gas/ChangeLog: * config/tc-s12z.c (opcodes): bhs, blo: New members. * testsuite/gas/s12z/bra.d: Add tests for aliases. * testsuite/gas/s12z/bra.s: Add tests for aliases.
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-s12z.c2
-rw-r--r--gas/testsuite/gas/s12z/bra.d6
-rw-r--r--gas/testsuite/gas/s12z/bra.s2
4 files changed, 14 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 977d4bc..c1d207d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
12018-11-21 John Darrington <john@darrington.wattle.id.au>
2
3 * config/tc-s12z.c (opcodes): bhs, blo: New members.
4 * testsuite/gas/s12z/bra.d: Add tests for aliases.
5 * testsuite/gas/s12z/bra.s: Add tests for aliases.
6
12018-11-13 Thomas Preud'homme <thomas.preudhomme@arm.com> 72018-11-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2 8
3 * config/tc-arm.c (arm_archs): Reindent. 9 * config/tc-arm.c (arm_archs): Reindent.
diff --git a/gas/config/tc-s12z.c b/gas/config/tc-s12z.c
index 9df8643..10f7976 100644
--- a/gas/config/tc-s12z.c
+++ b/gas/config/tc-s12z.c
@@ -3142,7 +3142,9 @@ static const struct instruction opcodes[] = {
3142 {"bhi", 1, 0x22, rel, 0}, 3142 {"bhi", 1, 0x22, rel, 0},
3143 {"bls", 1, 0x23, rel, 0}, 3143 {"bls", 1, 0x23, rel, 0},
3144 {"bcc", 1, 0x24, rel, 0}, 3144 {"bcc", 1, 0x24, rel, 0},
3145 {"bhs", 1, 0x24, rel, 0}, /* Alias for bcc */
3145 {"bcs", 1, 0x25, rel, 0}, 3146 {"bcs", 1, 0x25, rel, 0},
3147 {"blo", 1, 0x25, rel, 0}, /* Alias for bcs */
3146 {"bne", 1, 0x26, rel, 0}, 3148 {"bne", 1, 0x26, rel, 0},
3147 {"beq", 1, 0x27, rel, 0}, 3149 {"beq", 1, 0x27, rel, 0},
3148 {"bvc", 1, 0x28, rel, 0}, 3150 {"bvc", 1, 0x28, rel, 0},
diff --git a/gas/testsuite/gas/s12z/bra.d b/gas/testsuite/gas/s12z/bra.d
index bc3d359..0fae3ec 100644
--- a/gas/testsuite/gas/s12z/bra.d
+++ b/gas/testsuite/gas/s12z/bra.d
@@ -30,5 +30,7 @@ Disassembly of section .text:
30 27: 2d ff e8 blt L4 30 27: 2d ff e8 blt L4
31 2a: 2e ff df bgt L3 31 2a: 2e ff df bgt L3
32 2d: 2f ff d3 ble L1 32 2d: 2f ff d3 ble L1
33 30: 20 02 bra \*\+2 33 30: 24 ff d3 bcc L2
34 32: 20 7c bra \*-4 34 33: 25 ff d0 bcs L2
35 36: 20 02 bra \*\+2
36 38: 20 7c bra \*-4
diff --git a/gas/testsuite/gas/s12z/bra.s b/gas/testsuite/gas/s12z/bra.s
index a2528b3..c611a25 100644
--- a/gas/testsuite/gas/s12z/bra.s
+++ b/gas/testsuite/gas/s12z/bra.s
@@ -14,6 +14,8 @@ L4: bcs L2
14 blt L4 14 blt L4
15 bgt L3 15 bgt L3
16 ble L1 16 ble L1
17 bhs L2
18 blo L2
17 19
18 bra *+2 20 bra *+2
19 bra *-4 21 bra *-4