diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-04-18 17:52:37 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-04-18 17:52:37 +0000 |
commit | bb8f5920403b60671c504eda876c8283da2f2165 (patch) | |
tree | 3cef88a8216bb6a2010c973880cc5ac236cf213f /gas/config/tc-i386.c | |
parent | 64e74474231c58939320d3ce95b8b8d9d54570cb (diff) | |
download | gdb-bb8f5920403b60671c504eda876c8283da2f2165.zip gdb-bb8f5920403b60671c504eda876c8283da2f2165.tar.gz gdb-bb8f5920403b60671c504eda876c8283da2f2165.tar.bz2 |
gas/
2006-04-18 H.J. Lu <hongjiu.lu@intel.com>
PR gas/2533
* config/tc-i386.c (i386_immediate): Check illegal immediate
register operand.
gas/testsuite/
2006-04-18 H.J. Lu <hongjiu.lu@intel.com>
PR gas/2533
* gas/i386/inval.s: Add test for illegal immediate register
operand.
* gas/i386/inval.l: Updated.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r-- | gas/config/tc-i386.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index c55ffaf..69cede7 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -4127,6 +4127,11 @@ i386_immediate (imm_start) return 0; } #endif + else if (!intel_syntax && exp->X_op == O_register) + { + as_bad (_("illegal immediate register operand %s"), imm_start); + return 0; + } else { /* This is an address. The size of the address will be |