old-cross-binutils/gas/config
H.J. Lu 42164a7195 Implement Intel Transactional Synchronization Extensions
gas/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

	* config/tc-i386.c (HLE_PREFIX): New.
	(check_hle): Likewise.
	(_i386_insn): Add have_hle.
	(cpu_arch): Add .hle and .rtm.
	(md_assemble): Call check_hle if i.have_hle isn't zero.
	(parse_insn): Set i.have_hle to 1 for HLE prefix.
	(output_jump): Support up to 2 byte opcode.

	* doc/c-i386.texi: Document hle/.hle and rtm/.rtm.

gas/testsuite/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

	* gas/i386/hle-intel.d: New.
	* gas/i386/hle.d: Likewise.
	* gas/i386/hle.s: Likewise.
	* gas/i386/hlebad.l: Likewise.
	* gas/i386/hlebad.s: Likewise.
	* gas/i386/rtm-intel.d: Likewise.
	* gas/i386/rtm.d: Likewise.
	* gas/i386/rtm.s: Likewise.
	* gas/i386/x86-64-hle-intel.d: Likewise.
	* gas/i386/x86-64-hle.d: Likewise.
	* gas/i386/x86-64-hle.s: Likewise.
	* gas/i386/x86-64-hlebad.l: Likewise.
	* gas/i386/x86-64-hlebad.s: Likewise.
	* gas/i386/x86-64-rtm-intel.d: Likewise.
	* gas/i386/x86-64-rtm.d: Likewise.
	* gas/i386/x86-64-rtm.s: Likewise.

	* gas/i386/i386.exp: Run hle, hle-intel, hlebad x86-64-hle, rtm,
	rtm-intel, x86-64-hle-intel, x86-64-hlebad, x86-64-rtm and
	x86-64-rtm-intel.

include/opcode/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

	* i386.h (XACQUIRE_PREFIX_OPCODE): New.
	(XRELEASE_PREFIX_OPCODE): Likewise.

opcodes/

2012-02-08  H.J. Lu  <hongjiu.lu@intel.com>

	* i386-dis.c (HLE_Fixup1): New.
	(HLE_Fixup2): Likewise.
	(HLE_Fixup3): Likewise.
	(Ebh1): Likewise.
	(Evh1): Likewise.
	(Ebh2): Likewise.
	(Evh2): Likewise.
	(Ebh3): Likewise.
	(Evh3): Likewise.
	(MOD_C6_REG_7): Likewise.
	(MOD_C7_REG_7): Likewise.
	(RM_C6_REG_7): Likewise.
	(RM_C7_REG_7): Likewise.
	(XACQUIRE_PREFIX): Likewise.
	(XRELEASE_PREFIX): Likewise.
	(dis386): Use Ebh1/Evh1 on add, adc, and, btc, btr, bts,
	cmpxchg, dec, inc, neg, not, or, sbb, sub, xor and xadd. Use
	Ebh2/Evh2 on xchg.  Use Ebh3/Evh3 on mov.
	(reg_table): Use Ebh1/Evh1 on add, adc, and, dec, inc, neg,
	not, or, sbb, sub and xor.  Use Ebh3/Evh3 on mov.  Use
	MOD_C6_REG_7 and MOD_C7_REG_7.
	(mod_table): Add MOD_C6_REG_7 and MOD_C7_REG_7.
	(rm_table): Add RM_C6_REG_7 and RM_C7_REG_7.  Add xend and
	xtest.
	(prefix_name): Handle XACQUIRE_PREFIX and XRELEASE_PREFIX.
	(CMPXCHG8B_Fixup): Handle HLE prefix on cmpxchg8b.

	* i386-gen.c (cpu_flag_init): Add CPU_HLE_FLAGS and
	CPU_RTM_FLAGS.
	(cpu_flags): Add CpuHLE and CpuRTM.
	(opcode_modifiers): Add HLEPrefixOk.

	* i386-opc.h (CpuHLE): New.
	(CpuRTM): Likewise.
	(HLEPrefixOk): Likewise.
	(i386_cpu_flags): Add cpuhle and cpurtm.
	(i386_opcode_modifier): Add hleprefixok.

	* i386-opc.tbl: Add HLEPrefixOk=3 to mov.  Add HLEPrefixOk to
	add, adc, and, btc, btr, bts, cmpxchg, dec, inc, neg, not, or,
	sbb, sub, xor and xadd.  Add HLEPrefixOk=2 to xchg with memory
	operand.  Add xacquire, xrelease, xabort, xbegin, xend and
	xtest.
	* i386-init.h: Regenerated.
	* i386-tbl.h: Likewise.
2012-02-08 18:20:41 +00:00
..
aout_gnu.h update copyright dates 2009-09-02 07:25:43 +00:00
atof-ieee.c PR 10437 2009-07-24 11:45:01 +00:00
atof-vax.c
bfin-aux.h gas: blackfin: support numeric local labels with LOOP_BEGIN/LOOP_END pseudo insns 2010-10-11 08:36:30 +00:00
bfin-defs.h gas/opcodes: blackfin: move dsp mac func defines to common header 2011-02-12 19:36:31 +00:00
bfin-lex.l gas/opcodes: blackfin: punt BYTEOP2M insn support 2011-02-13 18:53:16 +00:00
bfin-parse.y gas/ 2011-12-15 04:25:10 +00:00
e-crisaout.c
e-criself.c
e-i386aout.c
e-i386coff.c
e-i386elf.c
e-mipsecoff.c
e-mipself.c
itbl-mips.h update copyright dates 2009-09-02 07:25:43 +00:00
m68k-parse.h * config/m68k-parse.h (enum m68k_register): Add ACR[4-7], RGPIOBAR. 2009-11-10 18:05:24 +00:00
m68k-parse.y update copyright dates 2009-09-02 07:25:43 +00:00
obj-aout.c * obj.h (struct format_ops): Add adjust_symtab. 2010-10-25 12:38:42 +00:00
obj-aout.h Update soruces to make alpha, arc and arm targets compile cleanly 2009-09-25 19:13:27 +00:00
obj-coff-seh.c ChangeLog gas 2010-09-15 19:48:52 +00:00
obj-coff-seh.h ChangeLog gas 2010-09-15 19:43:56 +00:00
obj-coff.c 2011-09-27 Kai Tietz <ktietz@redhat.com> 2011-09-27 18:57:22 +00:00
obj-coff.h 2012-01-12 Tristan Gingold <gingold@adacore.com> 2012-01-12 08:53:34 +00:00
obj-ecoff.c * obj.h (struct format_ops): Add adjust_symtab. 2010-10-25 12:38:42 +00:00
obj-ecoff.h * ecoff.c (ecoff_symbol_clone_hook): New function. 2009-11-02 11:49:48 +00:00
obj-elf.c PR gas/13224 2012-02-02 09:26:04 +00:00
obj-elf.h * gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS, 2011-03-10 10:06:05 +00:00
obj-evax.c 2011-06-27 Tristan Gingold <gingold@adacore.com> 2011-06-27 10:03:42 +00:00
obj-evax.h 2011-06-27 Tristan Gingold <gingold@adacore.com> 2011-06-27 10:03:42 +00:00
obj-fdpicelf.c
obj-fdpicelf.h
obj-macho.c bfd/ 2012-02-02 11:55:43 +00:00
obj-macho.h reverse the order of relocs in mach-o gas output. 2012-01-13 15:19:13 +00:00
obj-multi.c update copyright dates 2009-09-02 07:25:43 +00:00
obj-multi.h * obj.h (struct format_ops): Add adjust_symtab. 2010-10-25 12:38:42 +00:00
obj-som.c update copyright dates 2009-09-02 07:25:43 +00:00
obj-som.h bfd/ 2010-06-10 08:51:46 +00:00
rl78-defs.h [bfd] 2011-12-23 01:49:37 +00:00
rl78-parse.y * rl78-decode.opc (rl78_decode_opcode): Add NOT1. 2012-01-25 01:40:11 +00:00
rx-defs.h Building rx's gas code atm fails: 2011-10-25 20:36:22 +00:00
rx-parse.y Building rx's gas code atm fails: 2011-10-25 20:36:22 +00:00
tc-alpha.c 2011-11-23 Tristan Gingold <gingold@adacore.com> 2011-11-23 11:32:42 +00:00
tc-alpha.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-arc.c * gas/config/obj-elf.h (ELF_TARGET_SYMBOL_FIELDS, 2011-03-10 10:06:05 +00:00
tc-arc.h
tc-arm.c PR gas/13449 2011-12-21 17:07:26 +00:00
tc-arm.h 2011-05-31 Paul Brook <paul@codesourcery.com> 2011-05-31 13:40:04 +00:00
tc-avr.c PR 12610 2011-03-29 18:16:16 +00:00
tc-avr.h PR 12610 2011-03-29 18:16:16 +00:00
tc-bfin.c gas: blackfin: add support for bf54x-0.4 2011-03-15 00:17:00 +00:00
tc-bfin.h strip trailing whitespace in Blackfin files 2010-03-10 14:23:58 +00:00
tc-cr16.c PR gas/12861 2011-06-09 15:43:52 +00:00
tc-cr16.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-cris.c * config/tc-cris.c (md_convert_frag): Mark the length_code local 2011-12-14 14:10:57 +00:00
tc-cris.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-crx.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-crx.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-d10v.c * config/tc-d10v.c (do_assemble): Correctly detect overflow of 2010-08-25 11:51:07 +00:00
tc-d10v.h * read.c (read_a_source_file): Remove md_after_pass_hook. 2011-03-18 10:46:52 +00:00
tc-d30v.c * config/tc-d30v.c (d30v_cons_align): Don't align .eh_frame. 2010-10-28 05:34:55 +00:00
tc-d30v.h * read.c (read_a_source_file): Remove md_after_pass_hook. 2011-03-18 10:46:52 +00:00
tc-dlx.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-dlx.h
tc-epiphany.c bfd: 2011-10-27 14:27:16 +00:00
tc-epiphany.h bfd: 2011-10-27 14:27:16 +00:00
tc-fr30.c PR 10437 2009-07-24 11:45:01 +00:00
tc-fr30.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-frv.c Add -Wshadow to the gcc command line options used when compiling the binutils. 2009-12-11 13:42:17 +00:00
tc-frv.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-generic.c update copyright dates 2009-09-02 07:25:43 +00:00
tc-generic.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-h8300.c PR gas/12384 2011-01-20 12:49:05 +00:00
tc-h8300.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-hppa.c PR gas/11395 2010-12-31 16:43:46 +00:00
tc-hppa.h
tc-i370.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-i370.h
tc-i386-intel.c Properly fold _GLOBAL_OFFSET_TABLE_ in Intel syntax. 2010-11-03 14:18:43 +00:00
tc-i386.c Implement Intel Transactional Synchronization Extensions 2012-02-08 18:20:41 +00:00
tc-i386.h * configure.tgt (i386-*-nacl*): Match it. 2012-01-23 21:42:04 +00:00
tc-i860.c * read.c (emit_expr_fix): Handle size 3. 2009-09-08 10:36:39 +00:00
tc-i860.h
tc-i960.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-i960.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-ia64.c ELFOSABI_GNU 2011-07-03 13:37:09 +00:00
tc-ia64.h 2011-03-31 Tristan Gingold <gingold@adacore.com> 2011-03-31 08:02:41 +00:00
tc-ip2k.c update copyright dates 2009-09-02 07:25:43 +00:00
tc-ip2k.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-iq2000.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-iq2000.h
tc-lm32.c * config/tc-lm32.c (md_begin): Add missing call to bfd_set_arch_mach. 2009-10-19 15:30:06 +00:00
tc-lm32.h
tc-m32c.c * configure.tgt (m32c): Set endian=little. 2010-08-04 04:21:06 +00:00
tc-m32c.h * configure.tgt (m32c): Set endian=little. 2010-08-04 04:21:06 +00:00
tc-m32r.c * config/tc-m32r.c (md_show_usage): Fix typos in descriptions. 2011-05-17 16:15:59 +00:00
tc-m32r.h * read.c (read_a_source_file): Remove md_after_pass_hook. 2011-03-18 10:46:52 +00:00
tc-m68hc11.c * config/tc-d10v.c (do_assemble): Correctly detect overflow of 2010-08-25 11:51:07 +00:00
tc-m68hc11.h
tc-m68k.c * gas/config/tc-m68k.c (tc_gen_reloc): Handle references to defined 2010-09-09 10:48:17 +00:00
tc-m68k.h 2009-11-04 Daniel Jacobowitz <dan@codesourcery.com> 2009-11-04 09:52:00 +00:00
tc-m68851.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-mcore.c update copyright dates 2009-09-02 07:25:43 +00:00
tc-mcore.h
tc-mep.c PR gas/12011 2010-09-16 23:55:10 +00:00
tc-mep.h * read.c (TC_START_LABEL): Add a new argument. 2009-09-01 00:24:02 +00:00
tc-microblaze.c * config/tc-d10v.c (do_assemble): Correctly detect overflow of 2010-08-25 11:51:07 +00:00
tc-microblaze.h Add support for Xilinx MicroBlaze processor. 2009-08-06 17:38:04 +00:00
tc-mips.c gas/ 2012-01-08 12:33:54 +00:00
tc-mips.h bfd/ 2011-07-24 14:20:15 +00:00
tc-mmix.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-mmix.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-mn10200.c * config/tc-mn10200.c (md_convert_frag): Add missing break. 2011-10-24 02:49:24 +00:00
tc-mn10200.h
tc-mn10300.c * config/tc-mn10300.c (tc_gen_reloc): Replace absolute symbols 2010-09-23 12:11:31 +00:00
tc-mn10300.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-moxie.c * config/tc-moxie.c (md_apply_fix): Delete set but otherwise 2010-07-05 05:56:11 +00:00
tc-moxie.h
tc-msp430.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-msp430.h
tc-mt.c * config/tc-m32r.c (md_show_usage): Fix typos in descriptions. 2011-05-17 16:15:59 +00:00
tc-mt.h
tc-ns32k.c * config/tc-ns32k.c (md_begin): Rename local variable 'stat' to 'status'. 2011-10-25 13:35:00 +00:00
tc-ns32k.h
tc-openrisc.c PR 10437 2009-07-24 11:45:01 +00:00
tc-openrisc.h
tc-or32.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-or32.h
tc-pdp11.c * config/tc-pdp11.c (parse_op_no_deferred): Allow PC-relative 2011-01-06 16:41:35 +00:00
tc-pdp11.h
tc-pj.c * config/tc-m32r.c (md_show_usage): Fix typos in descriptions. 2011-05-17 16:15:59 +00:00
tc-pj.h
tc-ppc.c * config/tc-ppc.c (ppc_target_format): Add format for powerpc*-freebsd. 2011-11-21 13:19:33 +00:00
tc-ppc.h gas/ 2011-06-14 09:03:52 +00:00
tc-rl78.c [bfd] 2011-12-23 01:49:37 +00:00
tc-rl78.h [bfd] 2011-12-23 01:49:37 +00:00
tc-rx.c * readelf.c (get_machine_dlags): Add support for RX's PID mode. 2011-10-05 14:13:31 +00:00
tc-rx.h * config/tc-rx.h (md_do_align): New. 2010-07-02 20:40:28 +00:00
tc-s390.c * config/tc-s390.c (md_begin): Remove unused variable dup_insn. 2011-05-27 12:56:06 +00:00
tc-s390.h 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 2010-01-21 11:40:28 +00:00
tc-score.c * config/tc-score.c (s3_my_get_expression): Delete unused local 2011-06-13 09:45:28 +00:00
tc-score.h
tc-score7.c * config/tc-score.c (s3_my_get_expression): Delete unused local 2011-06-13 09:45:28 +00:00
tc-sh.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-sh.h 2010-05-21 Daniel Jacobowitz <dan@codesourcery.com> 2010-05-25 14:12:43 +00:00
tc-sh64.c Add -Wshadow to the gcc command line options used when compiling the binutils. 2009-12-11 13:42:17 +00:00
tc-sh64.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-sparc.c * config/tc-sparc.c (md_apply_fix): Handle BFD_RELOC_8. 2011-11-17 04:24:56 +00:00
tc-sparc.h ld: 2010-10-22 12:08:32 +00:00
tc-spu.c 2009-10-29 Tristan Gingold <gingold@adacore.com> 2009-10-29 09:43:18 +00:00
tc-spu.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-tic4x.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-tic4x.h
tc-tic6x.c ld/testsuite/ 2011-05-20 10:10:00 +00:00
tc-tic6x.h ld/testsuite/ 2011-05-20 10:10:00 +00:00
tc-tic30.c PR gas/12754 2011-05-18 13:52:44 +00:00
tc-tic30.h
tc-tic54x.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-tic54x.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-tilegx.c Fixes the TILE-Gx/TILEPro port of gas to deal with relocations of 2011-10-28 14:43:54 +00:00
tc-tilegx.h * Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo. 2011-06-13 15:18:54 +00:00
tc-tilepro.c Fixes the TILE-Gx/TILEPro port of gas to deal with relocations of 2011-10-28 14:43:54 +00:00
tc-tilepro.h * Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo. 2011-06-13 15:18:54 +00:00
tc-v850.c PR gas/12755 2011-05-12 23:50:23 +00:00
tc-v850.h * config/tc-v850.h (TC_FX_SIZE_SLACK): Define. 2011-05-23 09:29:00 +00:00
tc-vax.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-vax.h
tc-xc16x.c * config/tc-xc16x.c (md_cgen_lookup_reloc): Ensure fix_size is set 2009-10-19 15:27:39 +00:00
tc-xc16x.h
tc-xstormy16.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-xstormy16.h
tc-xtensa.c * config/obj-evax.h (S_SET_OTHER, S_SET_TYPE, S_SET_DESC): Don't define. 2010-06-28 14:06:57 +00:00
tc-xtensa.h update copyright dates 2009-09-02 07:25:43 +00:00
tc-z8k.c Add -Wshadow to the gcc command line options used when compiling the binutils. 2009-12-11 13:42:17 +00:00
tc-z8k.h
tc-z80.c * config/tc-z80.c (md_apply_fix): Rename var to fix shadow warning. 2010-12-09 20:02:07 +00:00
tc-z80.h update copyright dates 2009-09-02 07:25:43 +00:00
te-386bsd.h update copyright dates 2009-09-02 07:25:43 +00:00
te-aix5.h
te-armeabi.h update copyright dates 2009-09-02 07:25:43 +00:00
te-armlinuxeabi.h update copyright dates 2009-09-02 07:25:43 +00:00
te-dragonfly.h Add support for DragonFlyBSD target. 2011-03-28 11:18:27 +00:00
te-dynix.h
te-epoc-pe.h
te-freebsd.h update copyright dates 2009-09-02 07:25:43 +00:00
te-generic.h
te-gnu.h update copyright dates 2009-09-02 07:25:43 +00:00
te-go32.h update copyright dates 2009-09-02 07:25:43 +00:00
te-hppa.h update copyright dates 2009-09-02 07:25:43 +00:00
te-hppa64.h
te-hppalinux64.h
te-hpux.h
te-i386aix.h bfd/ 2010-01-23 12:05:33 +00:00
te-ia64aix.h
te-interix.h
te-irix.h update copyright dates 2009-09-02 07:25:43 +00:00
te-linux.h
te-lnews.h
te-lynx.h
te-mach.h
te-macos.h
te-nacl.h * configure.tgt (i386-*-nacl*): Match it. 2012-01-23 21:42:04 +00:00
te-nbsd.h update copyright dates 2009-09-02 07:25:43 +00:00
te-nbsd532.h
te-netware.h update copyright dates 2009-09-02 07:25:43 +00:00
te-pc532mach.h
te-pe.h
te-pep.h update copyright dates 2009-09-02 07:25:43 +00:00
te-psos.h
te-riscix.h
te-solaris.h * config/te-solaris.h (DWARF2_EH_FRAME_READ_ONLY): Make read-only 2010-01-21 20:58:34 +00:00
te-sparcaout.h update copyright dates 2009-09-02 07:25:43 +00:00
te-sun3.h update copyright dates 2009-09-02 07:25:43 +00:00
te-svr4.h
te-symbian.h update copyright dates 2009-09-02 07:25:43 +00:00
te-tmips.h update copyright dates 2009-09-02 07:25:43 +00:00
te-uclinux.h 2009-11-04 Daniel Jacobowitz <dan@codesourcery.com> 2009-11-04 09:52:00 +00:00
te-vms.c bfd/: 2009-09-07 09:15:31 +00:00
te-vms.h bfd/: 2009-09-07 09:15:31 +00:00
te-vxworks.h
te-wince-pe.h
vax-inst.h update copyright dates 2009-09-02 07:25:43 +00:00
xtensa-istack.h update copyright dates 2009-09-02 07:25:43 +00:00
xtensa-relax.c update copyright dates 2009-09-02 07:25:43 +00:00
xtensa-relax.h update copyright dates 2009-09-02 07:25:43 +00:00