gas/
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 12 Nov 2009 18:57:14 +0000 (18:57 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 12 Nov 2009 18:57:14 +0000 (18:57 +0000)
commitc32fa91d70ea20b38f90e5a88911f796b9a6418c
tree47cc7bf842135ee3a38260211a4df6cdf9ceed74
parentbdf7534a4d39d12d8cfe036007d698c97c922b27
gas/

2009-11-12  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (LOCKREP_PREFIX): Removed.
(REP_PREFIX): New.
(LOCK_PREFIX): Likewise.
(PREFIX_GROUP): Likewise.
(REX_PREFIX): Updated.
(MAX_PREFIXES): Likewise.
(add_prefix): Updated.  Return enum PREFIX_GROUP.
(md_assemble): Check for lock without a lockable instruction.
(parse_insn): Updated.
(output_insn): Likewise.

gas/testsuite/

2009-11-12  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run lock-1, lock-1-intel, lockbad-1,
x86-64-lock-1, x86-64-lock-1-intel and x86-64-lockbad-1.

* gas/i386/lock-1-intel.d: New.
* gas/i386/lock-1.d: Likewise.
* gas/i386/lock-1.s: Likewise.
* gas/i386/lockbad-1.l: Likewise.
* gas/i386/lockbad-1.s: Likewise.
* gas/i386/x86-64-lock-1-intel.d: Likewise.
* gas/i386/x86-64-lock-1.d: Likewise.
* gas/i386/x86-64-lock-1.s: Likewise.
* gas/i386/x86-64-lockbad-1.l: Likewise.
* gas/i386/x86-64-lockbad-1.s: Likewise.

opcodes/

2009-11-12  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Add IsLockable.

* i386-opc.h (IsLockable): New.
(i386_opcode_modifier): Add islockable.

* i386-opc.tbl: Add IsLockable to add, adc, and, btc, btr,
bts, cmpxchg, cmpxch8b, dec, inc, neg, not, or, sbb, sub,
xor, xadd and xchg.
* i386-tbl.h: Regenerated.
19 files changed:
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/lock-1-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/lock-1.d [new file with mode: 0644]
gas/testsuite/gas/i386/lock-1.s [new file with mode: 0644]
gas/testsuite/gas/i386/lockbad-1.l [new file with mode: 0644]
gas/testsuite/gas/i386/lockbad-1.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lock-1-intel.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lock-1.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lock-1.s [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lockbad-1.l [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-lockbad-1.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/i386-gen.c
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h