diff options
author | DJ Delorie <dj@redhat.com> | 2014-06-18 17:16:30 -0400 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2014-06-18 17:16:30 -0400 |
commit | 827dfb62b3a0162007942fe1cd1fd0411c547405 (patch) | |
tree | 84eef5e30983d85392d55772373b753b905686ad /gas | |
parent | 1804dbce5a7c0298a98dcedde14ab4d432fad754 (diff) | |
download | gdb-827dfb62b3a0162007942fe1cd1fd0411c547405.zip gdb-827dfb62b3a0162007942fe1cd1fd0411c547405.tar.gz gdb-827dfb62b3a0162007942fe1cd1fd0411c547405.tar.bz2 |
[rx] Make .B suffix optional when possible.
* config/rx-parse.y (BSET, BCLR, BTST, BNOT, BMCMD): Make .B
suffix optional.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/rx-parse.y | 16 |
2 files changed, 15 insertions, 6 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index eaf5c03..ae4c486 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2014-06-18 DJ Delorie <dj@redhat.com> + + * config/rx-parse.y (BSET, BCLR, BTST, BNOT, BMCMD): Make .B + suffix optional. + 2014-06-17 Hans-Peter Nilsson <hp@bitrange.com> * config/tc-mmix.c (loc_assert_s): New member frag. diff --git a/gas/config/rx-parse.y b/gas/config/rx-parse.y index c4cba9f..d93b4f6 100644 --- a/gas/config/rx-parse.y +++ b/gas/config/rx-parse.y @@ -636,13 +636,13 @@ statement : | BNOT REG ',' REG { id24 (1, 0x6f, 0x00); F ($4, 16, 4); F ($2, 20, 4); } - | BSET REG ',' disp '[' REG ']' DOT_B + | BSET REG ',' disp '[' REG ']' opt_b { id24 (1, 0x60, 0x00); F ($6, 16, 4); F ($2, 20, 4); DSP ($4, 14, BSIZE); } - | BCLR REG ',' disp '[' REG ']' DOT_B + | BCLR REG ',' disp '[' REG ']' opt_b { id24 (1, 0x64, 0x00); F ($6, 16, 4); F ($2, 20, 4); DSP ($4, 14, BSIZE); } - | BTST REG ',' disp '[' REG ']' DOT_B + | BTST REG ',' disp '[' REG ']' opt_b { id24 (1, 0x68, 0x00); F ($6, 16, 4); F ($2, 20, 4); DSP ($4, 14, BSIZE); } - | BNOT REG ',' disp '[' REG ']' DOT_B + | BNOT REG ',' disp '[' REG ']' opt_b { id24 (1, 0x6c, 0x00); F ($6, 16, 4); F ($2, 20, 4); DSP ($4, 14, BSIZE); } /* ---------------------------------------------------------------------- */ @@ -664,13 +664,13 @@ statement : /* ---------------------------------------------------------------------- */ - | BMCND '#' EXPR ',' disp '[' REG ']' DOT_B + | BMCND '#' EXPR ',' disp '[' REG ']' opt_b { id24 (1, 0xe0, 0x00); F ($1, 20, 4); FE ($3, 11, 3); F ($7, 16, 4); DSP ($5, 14, BSIZE); } /* ---------------------------------------------------------------------- */ - | BNOT '#' EXPR ',' disp '[' REG ']' DOT_B + | BNOT '#' EXPR ',' disp '[' REG ']' opt_b { id24 (1, 0xe0, 0x0f); FE ($3, 11, 3); F ($7, 16, 4); DSP ($5, 14, BSIZE); } @@ -930,6 +930,10 @@ opt_l : {} | DOT_L {} ; +opt_b : {} + | DOT_B {} + ; + %% /* ====================================================================== */ |