x86-64/gas: fix an asymmetry in suffix/register checking
authorJan Beulich <jbeulich@novell.com>
Mon, 4 Nov 2013 15:05:39 +0000 (16:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Nov 2013 15:05:39 +0000 (16:05 +0100)
commite4630f71b252fa13df07f93d427e7c9f4505c1fe
tree82275c36ca7e86c47697c7e604eac1720a541f1f
parent67c059c29e1fb0cdeacdd2005f955514d8d1fb34
x86-64/gas: fix an asymmetry in suffix/register checking

Without this, constructs like "orw %rax, (%rax)" aren't being rejected
(other than any other wrong suffix/register combination).

gas/
2013-11-04  Jan Beulich <jbeulich@suse.com>

* config/tc-i386.c (check_long_reg): Correct comment indentation.
(check_qword_reg): Correct comment and its indentation.
(check_word_reg): Extend comment and correct its indentation. Also
check for 64-bit register.

gas/testsuite/
2013-11-04  Jan Beulich <jbeulich@suse.com>

* gas/i386/x86-64-suffix-bad.[sl]: New.
* gas/i386/i386.exp: Run new test.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/x86-64-suffix-bad.l [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-suffix-bad.s [new file with mode: 0644]