diff options
author | DJ Delorie <dj@delorie.com> | 2013-08-23 21:29:27 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2013-08-23 21:29:27 +0000 |
commit | 0b322e6f2f1fc3672a8ecd42b81a29552d6deae9 (patch) | |
tree | 3b391f8002e328e50daf294bb895919344ab53ae /gas/config | |
parent | 308c9855ac47d13e8fa1ea05ab4873cd04a2b98d (diff) | |
download | binutils-redhat-0b322e6f2f1fc3672a8ecd42b81a29552d6deae9.tar.gz |
* config/rx-parse.y: Rearrange the components of a bison grammar to issue
assembler errors at correct position.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/rx-parse.y | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gas/config/rx-parse.y b/gas/config/rx-parse.y index 09e3e84fe4..3933e6b9e2 100644 --- a/gas/config/rx-parse.y +++ b/gas/config/rx-parse.y @@ -882,15 +882,19 @@ op_shift float2_op - : '#' EXPR ',' REG - { rx_check_float_support (); id24 (2, 0x72, sub_op << 4); F ($4, 20, 4); O4 ($2); } + : { rx_check_float_support (); } + '#' EXPR ',' REG + { id24 (2, 0x72, sub_op << 4); F ($5, 20, 4); O4 ($3); } | float2_op_ni ; + float2_op_ni - : REG ',' REG - { rx_check_float_support (); id24 (1, 0x83 + (sub_op << 2), 0); F ($1, 16, 4); F ($3, 20, 4); } - | disp '[' REG ']' opt_l ',' REG - { rx_check_float_support (); id24 (1, 0x80 + (sub_op << 2), 0); F ($3, 16, 4); F ($7, 20, 4); DSP ($1, 14, LSIZE); } + : { rx_check_float_support (); } + REG ',' REG + { id24 (1, 0x83 + (sub_op << 2), 0); F ($2, 16, 4); F ($4, 20, 4); } + | { rx_check_float_support (); } + disp '[' REG ']' opt_l ',' REG + { id24 (1, 0x80 + (sub_op << 2), 0); F ($4, 16, 4); F ($8, 20, 4); DSP ($2, 14, LSIZE); } ; /* ====================================================================== */ |