]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
S12Z: Add alias instructions BHS and BLO.
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Nov 2018 17:50:30 +0000 (18:50 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 21 Nov 2018 20:31:10 +0000 (21:31 +0100)
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.

gas/ChangeLog
gas/config/tc-s12z.c
gas/testsuite/gas/s12z/bra.d
gas/testsuite/gas/s12z/bra.s

index 977d4bca5f318b31a37e276efbab6a5d172e3da1..c1d207df52fe73028476886830eaa7f12266aac7 100644 (file)
@@ -1,3 +1,9 @@
+2018-11-21 John Darrington <john@darrington.wattle.id.au>
+
+       * 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.
+
 2018-11-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
 
        * config/tc-arm.c (arm_archs): Reindent.
index 9df86432a5f0e3f03ddf7f70d67754a32984c555..10f7976582903a2faedff3b17656648b809f3534 100644 (file)
@@ -3142,7 +3142,9 @@ static const struct instruction opcodes[] = {
   {"bhi", 1,   0x22,  rel, 0},
   {"bls", 1,   0x23,  rel, 0},
   {"bcc", 1,   0x24,  rel, 0},
+  {"bhs", 1,   0x24,  rel, 0}, /* Alias for bcc */
   {"bcs", 1,   0x25,  rel, 0},
+  {"blo", 1,   0x25,  rel, 0}, /* Alias for bcs */
   {"bne", 1,   0x26,  rel, 0},
   {"beq", 1,   0x27,  rel, 0},
   {"bvc", 1,   0x28,  rel, 0},
index bc3d3595cabaa7666d1882bd98359babc974e9d6..0fae3ece7bdb863598edf7a7fd52932274e6cc92 100644 (file)
@@ -30,5 +30,7 @@ Disassembly of section .text:
   27:  2d ff e8        blt L4
   2a:  2e ff df        bgt L3
   2d:  2f ff d3        ble L1
-  30:  20 02           bra \*\+2
-  32:  20 7c           bra \*-4
+  30:  24 ff d3        bcc L2
+  33:  25 ff d0        bcs L2
+  36:  20 02           bra \*\+2
+  38:  20 7c           bra \*-4
index a2528b39df37e0fd11de0794c80690abcb0488b9..c611a25519a1155022e02cbf595694cc6e9bf0d8 100644 (file)
@@ -14,6 +14,8 @@ L4:   bcs L2
        blt L4
        bgt L3
        ble L1
+       bhs L2
+       blo L2
 
        bra *+2
        bra *-4