MASM accepts ESP/RSP being specified second in a memory address
authorJan Beulich <jbeulich@novell.com>
Wed, 25 Jul 2012 11:34:49 +0000 (11:34 +0000)
committerJan Beulich <jbeulich@novell.com>
Wed, 25 Jul 2012 11:34:49 +0000 (11:34 +0000)
commit9e2934f7999c248f7e8452d0726541ce9ad9edce
tree700322253adb563e2843c6ac19a42ae1c107215d
parent8280f326858028ecb33ceffc33a8ddbbc250f02d
MASM accepts ESP/RSP being specified second in a memory address
operand, by silently making it the base register despite not being
specified first.

Consequently, we also permit an xmm/ymm index to be specified first
(possibly alone), nevertheless putting it in as index register.

2012-07-24  Jan Beulich <jbeulich@suse.com>

* config/tc-i386-intel.c (i386_intel_simplify_register): Handle
xmm/ymm index register being specified first as well as esp/rsp
base register being specified last in a memory operand.
gas/ChangeLog
gas/config/tc-i386-intel.c