Properly handle suffix for iret and sysret
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 10 Sep 2014 16:38:31 +0000 (09:38 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 10 Sep 2014 16:39:24 +0000 (09:39 -0700)
commit4b4c407a349620e4a6b9cb36b77778fccb7ff00f
tree5b55e7862c8bd1c6e9d31b86a9f3446caf89e421
parenta485e98ea0cbb61ea9da1e7858da545e0bcf1a46
Properly handle suffix for iret and sysret

gas/testsuite/

* gas/i386/i386.exp: Run suffix-intel, x86-64-suffix and
x86-64-suffix-intel.

* gas/i386/suffix.s: Add tests for iret and sysret.
* gas/i386/suffix.d: Updated.

* gas/i386/suffix-intel.d: New file.
* gas/i386/x86-64-suffix-intel.d: Likewise.
* gas/i386/x86-64-suffix.d: Likewise.
* gas/i386/x86-64-suffix.s: Likewise.

opcodes/

* i386-dis.c (dis386): Replace "P" with "%LP" for iret and sysret.
(putop): Handle "%LP".
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/suffix-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/suffix.d
gas/testsuite/gas/i386/suffix.s
gas/testsuite/gas/i386/x86-64-suffix-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-suffix.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-suffix.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/i386-dis.c