Add support for monitorx/mwaitx instructions

gas/

	* config/tc-i386.c (cpu_arch): Add .mwaitx.
	(process_immext): Check operands for monitorx/mwaitx instructions.
	* doc/c-i386.texi: Document mwaitx.

gas/testsuite/

	* gas/i386/i386.exp: Add new mwaitx test cases.
	* gas/i386/mwaitx.s: New.
	* gas/i386/mwaitx-bdver4.d: New.
	* gas/i386/x86-64-mwaitx.s: New.
	* gas/i386/x86-64-mwaitx-bdver4.d: New.
	* gas/i386/mwaitx-reg.s: New.
	* gas/i386/mwaitx-reg.l: New.
	* gas/i386/x86-64-mwaitx-reg.l: New.
	* gas/i386/x86-64-mwaitx-reg.s: New.
	* gas/i386/arch-13.s: Updated.
	* gas/i386/arch-13.d: Updated.
	* gas/i386/arch-13-znver1.d: Updated.
	* gas/i386/x86-64-arch-3.s: Updated.
	* gas/i386/x86-64-arch-3.d: Updated.
	* gas/i386/x86-64-arch-3-znver1.d: Updated.

opcodes/

	* i386-dis.c (OP_Mwaitx): New.
	(rm_table): Add monitorx/mwaitx.
	* i386-gen.c (cpu_flag_init): Add CpuMWAITX to CPU_BDVER4_FLAGS
	and CPU_ZNVER1_FLAGS.  Add CPU_MWAITX_FLAGS.
	(operand_type_init): Add CpuMWAITX.
	* i386-opc.h (CpuMWAITX): New.
	(i386_cpu_flags): Add cpumwaitx.
	* i386-opc.tbl: Add monitorx and mwaitx.
	* i386-init.h: Regenerated.
	* i386-tbl.h: Likewise.
This commit is contained in:
Amit Pawar 2015-06-30 12:11:52 +05:30 committed by H.J. Lu
parent 54f66250d7
commit 9916071f8d
26 changed files with 5804 additions and 5306 deletions

View File

@ -1,3 +1,9 @@
2015-06-30 Amit Pawar <Amit.Pawar@amd.com>
* config/tc-i386.c (cpu_arch): Add .mwaitx.
(process_immext): Check operands for monitorx/mwaitx instructions.
* doc/c-i386.texi: Document mwaitx.
2015-06-28 H.J. Lu <hongjiu.lu@intel.com>
* as.c (parse_args): Replace COMPRESS_DEBUG_ZLIB with

View File

@ -954,6 +954,8 @@ static const arch_entry cpu_arch[] =
CPU_AVX512VBMI_FLAGS, 0, 0 },
{ STRING_COMMA_LEN (".clzero"), PROCESSOR_UNKNOWN,
CPU_CLZERO_FLAGS, 0, 0 },
{ STRING_COMMA_LEN (".mwaitx"), PROCESSOR_UNKNOWN,
CPU_MWAITX_FLAGS, 0, 0 },
};
#ifdef I386COFF
@ -3347,6 +3349,34 @@ process_immext (void)
i.operands = 0;
}
if (i.tm.cpu_flags.bitfield.cpumwaitx && i.operands > 0)
{
/* MONITORX/MWAITX instructions have fixed operands with an opcode
suffix which is coded in the same place as an 8-bit immediate
field would be.
Here we check those operands and remove them afterwards. */
unsigned int x;
if (i.operands != 3)
abort();
for (x = 0; x < 2; x++)
if (register_number (i.op[x].regs) != x)
goto bad_register_operand;
/* Check for third operand for mwaitx/monitorx insn. */
if (register_number (i.op[x].regs)
!= (x + (i.tm.extension_opcode == 0xfb)))
{
bad_register_operand:
as_bad (_("can't use register '%s%s' as operand %d in '%s'."),
register_prefix, i.op[x].regs->reg_name, x+1,
i.tm.name);
}
i.operands = 0;
}
/* These AMD 3DNow! and SSE2 instructions have an opcode suffix
which is coded in the same place as an 8-bit immediate field
would be. Here we fake an 8-bit immediate operand from the

View File

@ -189,6 +189,7 @@ accept various extension mnemonics. For example,
@code{rtm},
@code{invpcid},
@code{clflush},
@code{mwaitx},
@code{clzero},
@code{lwp},
@code{fma4},
@ -1112,7 +1113,7 @@ supported on the CPU specified. The choices for @var{cpu_type} are:
@item @samp{.3dnow} @tab @samp{.3dnowa} @tab @samp{.sse4a} @tab @samp{.sse5}
@item @samp{.syscall} @tab @samp{.rdtscp} @tab @samp{.svme} @tab @samp{.abm}
@item @samp{.lwp} @tab @samp{.fma4} @tab @samp{.xop} @tab @samp{.cx16}
@item @samp{.padlock} @tab @samp{.clzero}
@item @samp{.padlock} @tab @samp{.clzero} @tab @samp{.mwaitx}
@end multitable
Apart from the warning, there are only two other effects on

View File

@ -1,3 +1,21 @@
2015-06-30 Amit Pawar <Amit.Pawar@amd.com>
* gas/i386/i386.exp: Add new mwaitx test cases.
* gas/i386/mwaitx.s: New.
* gas/i386/mwaitx-bdver4.d: New.
* gas/i386/x86-64-mwaitx.s: New.
* gas/i386/x86-64-mwaitx-bdver4.d: New.
* gas/i386/mwaitx-reg.s: New.
* gas/i386/mwaitx-reg.l: New.
* gas/i386/x86-64-mwaitx-reg.l: New.
* gas/i386/x86-64-mwaitx-reg.s: New.
* gas/i386/arch-13.s: Updated.
* gas/i386/arch-13.d: Updated.
* gas/i386/arch-13-znver1.d: Updated.
* gas/i386/x86-64-arch-3.s: Updated.
* gas/i386/x86-64-arch-3.d: Updated.
* gas/i386/x86-64-arch-3-znver1.d: Updated.
2015-06-27 H.J. Lu <hongjiu.lu@intel.com>
* gas/ia64/psn.d: Updated.

View File

@ -17,4 +17,9 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: 0f c7 21 xsavec \(%ecx\)
[ ]*[a-f0-9]+: 0f c7 29 xsaves \(%ecx\)
[ ]*[a-f0-9]+: 66 0f ae 39 clflushopt \(%ecx\)
[ ]*[a-f0-9]+: 0f 01 fa monitorx %eax,%ecx,%edx
[ ]*[a-f0-9]+: 67 0f 01 fa monitorx %ax,%ecx,%edx
[ ]*[a-f0-9]+: 0f 01 fa monitorx %eax,%ecx,%edx
[ ]*[a-f0-9]+: 0f 01 fb mwaitx %eax,%ecx,%ebx
[ ]*[a-f0-9]+: 0f 01 fb mwaitx %eax,%ecx,%ebx
#pass

View File

@ -1,4 +1,4 @@
#as: -march=i686+smap+adx+rdseed+clzero+xsavec+xsaves+clflushopt
#as: -march=i686+smap+adx+rdseed+clzero+xsavec+xsaves+clflushopt+mwaitx
#objdump: -dw
#name: i386 arch 13
@ -16,4 +16,9 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: 0f c7 21 xsavec \(%ecx\)
[ ]*[a-f0-9]+: 0f c7 29 xsaves \(%ecx\)
[ ]*[a-f0-9]+: 66 0f ae 39 clflushopt \(%ecx\)
[ ]*[a-f0-9]+: 0f 01 fa monitorx %eax,%ecx,%edx
[ ]*[a-f0-9]+: 67 0f 01 fa monitorx %ax,%ecx,%edx
[ ]*[a-f0-9]+: 0f 01 fa monitorx %eax,%ecx,%edx
[ ]*[a-f0-9]+: 0f 01 fb mwaitx %eax,%ecx,%ebx
[ ]*[a-f0-9]+: 0f 01 fb mwaitx %eax,%ecx,%ebx
#pass

View File

@ -16,4 +16,8 @@ xsavec (%ecx)
xsaves (%ecx)
#CLFLUSHOPT
clflushopt (%ecx)
monitorx %eax, %ecx, %edx
monitorx %ax, %ecx, %edx
monitorx
mwaitx %eax, %ecx, %ebx
mwaitx

View File

@ -340,6 +340,8 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_dump_test "avx512vbmi_vl-intel"
run_dump_test "clzero"
run_dump_test "disassem"
run_dump_test "mwaitx-bdver4"
run_list_test "mwaitx-reg"
# These tests require support for 8 and 16 bit relocs,
# so we only run them for ELF and COFF targets.
@ -721,6 +723,8 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t
run_dump_test "x86-64-avx512vbmi_vl"
run_dump_test "x86-64-avx512vbmi_vl-intel"
run_dump_test "x86-64-clzero"
run_dump_test "x86-64-mwaitx-bdver4"
run_list_test "x86-64-mwaitx-reg"
if { ![istarget "*-*-aix*"]
&& ![istarget "*-*-beos*"]

View File

@ -0,0 +1,17 @@
#source: mwaitx.s
#as: -march=bdver4
#objdump: -dw
#name: i386 monitorx and mwaitx insn
.*: +file format .*
Disassembly of section \.text:
00000000 <_start>:
[ ]*[a-f0-9]+: 0f 01 fa monitorx %eax,%ecx,%edx
[ ]*[a-f0-9]+: 67 0f 01 fa monitorx %ax,%ecx,%edx
[ ]*[a-f0-9]+: 0f 01 fa monitorx %eax,%ecx,%edx
[ ]*[a-f0-9]+: 0f 01 fb mwaitx %eax,%ecx,%ebx
[ ]*[a-f0-9]+: 0f 01 fb mwaitx %eax,%ecx,%ebx
#pass

View File

@ -0,0 +1,59 @@
#as: -march=mwaitx
.*: Assembler messages:
#eax
.*:[0-9]*: Error: .*eax.* 2 .*monitorx.*
.*:[0-9]*: Error: .*eax.* 3 .*monitorx.*
.*:[0-9]*: Error: .*eax.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*eax.* 3 .*mwaitx.*
#ebx
.*:[0-9]*: Error: .*ebx.* 1 .*monitorx.*
.*:[0-9]*: Error: .*ebx.* 2 .*monitorx.*
.*:[0-9]*: Error: .*ebx.* 3 .*monitorx.*
.*:[0-9]*: Error: .*ebx.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*ebx.* 2 .*mwaitx.*
#ecx
.*:[0-9]*: Error: .*ecx.* 1 .*monitorx.*
.*:[0-9]*: Error: .*ecx.* 3 .*monitorx.*
.*:[0-9]*: Error: .*ecx.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*ecx.* 3 .*mwaitx.*
#edx
.*:[0-9]*: Error: .*edx.* 1 .*monitorx.*
.*:[0-9]*: Error: .*edx.* 2 .*monitorx.*
.*:[0-9]*: Error: .*edx.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*edx.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*edx.* 3 .*mwaitx.*
#esp
.*:[0-9]*: Error: .*esp.* 1 .*monitorx.*
.*:[0-9]*: Error: .*esp.* 2 .*monitorx.*
.*:[0-9]*: Error: .*esp.* 3 .*monitorx.*
.*:[0-9]*: Error: .*esp.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*esp.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*esp.* 3 .*mwaitx.*
#ebp
.*:[0-9]*: Error: .*ebp.* 1 .*monitorx.*
.*:[0-9]*: Error: .*ebp.* 2 .*monitorx.*
.*:[0-9]*: Error: .*ebp.* 3 .*monitorx.*
.*:[0-9]*: Error: .*ebp.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*ebp.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*ebp.* 3 .*mwaitx.*
#esi
.*:[0-9]*: Error: .*esi.* 1 .*monitorx.*
.*:[0-9]*: Error: .*esi.* 2 .*monitorx.*
.*:[0-9]*: Error: .*esi.* 3 .*monitorx.*
.*:[0-9]*: Error: .*esi.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*esi.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*esi.* 3 .*mwaitx.*
#edi
.*:[0-9]*: Error: .*edi.* 1 .*monitorx.*
.*:[0-9]*: Error: .*edi.* 2 .*monitorx.*
.*:[0-9]*: Error: .*edi.* 3 .*monitorx.*
.*:[0-9]*: Error: .*edi.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*edi.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*edi.* 3 .*mwaitx.*

View File

@ -0,0 +1,8 @@
.irp reg ax,bx,cx,dx,sp,bp,si,di
monitorx %e\reg, %ecx, %edx
monitorx %eax, %e\reg, %edx
monitorx %eax, %ecx, %e\reg
mwaitx %e\reg, %ecx, %ebx
mwaitx %eax, %e\reg, %ebx
mwaitx %eax, %ecx, %e\reg
.endr

View File

@ -0,0 +1,9 @@
# Check monitorx and mwaitx instructions
.text
_start:
monitorx %eax, %ecx, %edx
monitorx %ax, %ecx, %edx
monitorx
mwaitx %eax, %ecx, %ebx
mwaitx

View File

@ -18,4 +18,9 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: 48 0f c7 21 xsavec64 \(%rcx\)
[ ]*[a-f0-9]+: 48 0f c7 29 xsaves64 \(%rcx\)
[ ]*[a-f0-9]+: 66 0f ae 39 clflushopt \(%rcx\)
[ ]*[a-f0-9]+: 0f 01 fa monitorx %rax,%rcx,%rdx
[ ]*[a-f0-9]+: 67 0f 01 fa monitorx %eax,%rcx,%rdx
[ ]*[a-f0-9]+: 0f 01 fa monitorx %rax,%rcx,%rdx
[ ]*[a-f0-9]+: 0f 01 fb mwaitx %rax,%rcx,%rbx
[ ]*[a-f0-9]+: 0f 01 fb mwaitx %rax,%rcx,%rbx
#pass

View File

@ -1,4 +1,4 @@
#as: -march=generic64+smap+adx+rdseed+clzero+sha+xsavec+xsaves+clflushopt
#as: -march=generic64+smap+adx+rdseed+clzero+sha+xsavec+xsaves+clflushopt+mwaitx
#objdump: -dw
#name: x86-64 arch 3
@ -17,4 +17,9 @@ Disassembly of section .text:
[ ]*[a-f0-9]+: 48 0f c7 21 xsavec64 \(%rcx\)
[ ]*[a-f0-9]+: 48 0f c7 29 xsaves64 \(%rcx\)
[ ]*[a-f0-9]+: 66 0f ae 39 clflushopt \(%rcx\)
[ ]*[a-f0-9]+: 0f 01 fa monitorx %rax,%rcx,%rdx
[ ]*[a-f0-9]+: 67 0f 01 fa monitorx %eax,%rcx,%rdx
[ ]*[a-f0-9]+: 0f 01 fa monitorx %rax,%rcx,%rdx
[ ]*[a-f0-9]+: 0f 01 fb mwaitx %rax,%rcx,%rbx
[ ]*[a-f0-9]+: 0f 01 fb mwaitx %rax,%rcx,%rbx
#pass

View File

@ -18,4 +18,8 @@ xsavec64 (%rcx)
xsaves64 (%rcx)
#CLFLUSHOPT
clflushopt (%rcx)
monitorx %rax,%rcx,%rdx
monitorx %eax,%rcx,%rdx
monitorx
mwaitx %rax,%rcx,%rbx
mwaitx

View File

@ -0,0 +1,17 @@
#source: x86-64-mwaitx.s
#as: -march=bdver4
#objdump: -dw
#name: x86_64 monitorx and mwaitx insn
.*: +file format .*
Disassembly of section \.text:
0000000000000000 <_start>:
[ ]*[a-f0-9]+: 0f 01 fa monitorx %rax,%rcx,%rdx
[ ]*[a-f0-9]+: 67 0f 01 fa monitorx %eax,%rcx,%rdx
[ ]*[a-f0-9]+: 0f 01 fa monitorx %rax,%rcx,%rdx
[ ]*[a-f0-9]+: 0f 01 fb mwaitx %rax,%rcx,%rbx
[ ]*[a-f0-9]+: 0f 01 fb mwaitx %rax,%rcx,%rbx
#pass

View File

@ -0,0 +1,123 @@
#as: -march=mwaitx
.*: Assembler messages:
#rax
.*:[0-9]*: Error: .*rax.* 2 .*monitorx.*
.*:[0-9]*: Error: .*rax.* 3 .*monitorx.*
.*:[0-9]*: Error: .*rax.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*rax.* 3 .*mwaitx.*
#rbx
.*:[0-9]*: Error: .*rbx.* 1 .*monitorx.*
.*:[0-9]*: Error: .*rbx.* 2 .*monitorx.*
.*:[0-9]*: Error: .*rbx.* 3 .*monitorx.*
.*:[0-9]*: Error: .*rbx.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*rbx.* 2 .*mwaitx.*
#rcx
.*:[0-9]*: Error: .*rcx.* 1 .*monitorx.*
.*:[0-9]*: Error: .*rcx.* 3 .*monitorx.*
.*:[0-9]*: Error: .*rcx.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*rcx.* 3 .*mwaitx.*
#rdx
.*:[0-9]*: Error: .*rdx.* 1 .*monitorx.*
.*:[0-9]*: Error: .*rdx.* 2 .*monitorx.*
.*:[0-9]*: Error: .*rdx.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*rdx.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*rdx.* 3 .*mwaitx.*
#rsp
.*:[0-9]*: Error: .*rsp.* 1 .*monitorx.*
.*:[0-9]*: Error: .*rsp.* 2 .*monitorx.*
.*:[0-9]*: Error: .*rsp.* 3 .*monitorx.*
.*:[0-9]*: Error: .*rsp.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*rsp.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*rsp.* 3 .*mwaitx.*
#rbp
.*:[0-9]*: Error: .*rbp.* 1 .*monitorx.*
.*:[0-9]*: Error: .*rbp.* 2 .*monitorx.*
.*:[0-9]*: Error: .*rbp.* 3 .*monitorx.*
.*:[0-9]*: Error: .*rbp.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*rbp.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*rbp.* 3 .*mwaitx.*
#rsi
.*:[0-9]*: Error: .*rsi.* 1 .*monitorx.*
.*:[0-9]*: Error: .*rsi.* 2 .*monitorx.*
.*:[0-9]*: Error: .*rsi.* 3 .*monitorx.*
.*:[0-9]*: Error: .*rsi.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*rsi.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*rsi.* 3 .*mwaitx.*
#rdi
.*:[0-9]*: Error: .*rdi.* 1 .*monitorx.*
.*:[0-9]*: Error: .*rdi.* 2 .*monitorx.*
.*:[0-9]*: Error: .*rdi.* 3 .*monitorx.*
.*:[0-9]*: Error: .*rdi.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*rdi.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*rdi.* 3 .*mwaitx.*
#r8
.*:[0-9]*: Error: .*r8.* 1 .*monitorx.*
.*:[0-9]*: Error: .*r8.* 2 .*monitorx.*
.*:[0-9]*: Error: .*r8.* 3 .*monitorx.*
.*:[0-9]*: Error: .*r8.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*r8.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*r8.* 3 .*mwaitx.*
#r9
.*:[0-9]*: Error: .*r9.* 1 .*monitorx.*
.*:[0-9]*: Error: .*r9.* 2 .*monitorx.*
.*:[0-9]*: Error: .*r9.* 3 .*monitorx.*
.*:[0-9]*: Error: .*r9.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*r9.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*r9.* 3 .*mwaitx.*
#r10
.*:[0-9]*: Error: .*r10.* 1 .*monitorx.*
.*:[0-9]*: Error: .*r10.* 2 .*monitorx.*
.*:[0-9]*: Error: .*r10.* 3 .*monitorx.*
.*:[0-9]*: Error: .*r10.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*r10.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*r10.* 3 .*mwaitx.*
#r11
.*:[0-9]*: Error: .*r11.* 1 .*monitorx.*
.*:[0-9]*: Error: .*r11.* 2 .*monitorx.*
.*:[0-9]*: Error: .*r11.* 3 .*monitorx.*
.*:[0-9]*: Error: .*r11.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*r11.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*r11.* 3 .*mwaitx.*
#r12
.*:[0-9]*: Error: .*r12.* 1 .*monitorx.*
.*:[0-9]*: Error: .*r12.* 2 .*monitorx.*
.*:[0-9]*: Error: .*r12.* 3 .*monitorx.*
.*:[0-9]*: Error: .*r12.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*r12.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*r12.* 3 .*mwaitx.*
#r13
.*:[0-9]*: Error: .*r13.* 1 .*monitorx.*
.*:[0-9]*: Error: .*r13.* 2 .*monitorx.*
.*:[0-9]*: Error: .*r13.* 3 .*monitorx.*
.*:[0-9]*: Error: .*r13.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*r13.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*r13.* 3 .*mwaitx.*
#r14
.*:[0-9]*: Error: .*r14.* 1 .*monitorx.*
.*:[0-9]*: Error: .*r14.* 2 .*monitorx.*
.*:[0-9]*: Error: .*r14.* 3 .*monitorx.*
.*:[0-9]*: Error: .*r14.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*r14.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*r14.* 3 .*mwaitx.*
#r15
.*:[0-9]*: Error: .*r15.* 1 .*monitorx.*
.*:[0-9]*: Error: .*r15.* 2 .*monitorx.*
.*:[0-9]*: Error: .*r15.* 3 .*monitorx.*
.*:[0-9]*: Error: .*r15.* 1 .*mwaitx.*
.*:[0-9]*: Error: .*r15.* 2 .*mwaitx.*
.*:[0-9]*: Error: .*r15.* 3 .*mwaitx.*

View File

@ -0,0 +1,8 @@
.irp reg ax,bx,cx,dx,sp,bp,si,di,8,9,10,11,12,13,14,15
monitorx %r\reg, %rcx, %rdx
monitorx %rax, %r\reg, %rdx
monitorx %rax, %rcx, %r\reg
mwaitx %r\reg, %rcx, %rbx
mwaitx %rax, %r\reg, %rbx
mwaitx %rax, %rcx, %r\reg
.endr

View File

@ -0,0 +1,9 @@
# Check monitorx and mwaitx instructions
.text
_start:
monitorx %rax, %rcx, %rdx
monitorx %eax, %rcx, %rdx
monitorx
mwaitx %rax, %rcx, %rbx
mwaitx

View File

@ -1,3 +1,16 @@
2015-06-30 Amit Pawar <Amit.Pawar@amd.com>
* i386-dis.c (OP_Mwaitx): New.
(rm_table): Add monitorx/mwaitx.
* i386-gen.c (cpu_flag_init): Add CpuMWAITX to CPU_BDVER4_FLAGS
and CPU_ZNVER1_FLAGS. Add CPU_MWAITX_FLAGS.
(operand_type_init): Add CpuMWAITX.
* i386-opc.h (CpuMWAITX): New.
(i386_cpu_flags): Add cpumwaitx.
* i386-opc.tbl: Add monitorx and mwaitx.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
2015-06-22 Peter Bergner <bergner@vnet.ibm.com>
* ppc-opc.c (insert_ls): Test for invalid LS operands.

View File

@ -102,6 +102,7 @@ static void VPCMP_Fixup (int, int);
static void OP_0f07 (int, int);
static void OP_Monitor (int, int);
static void OP_Mwait (int, int);
static void OP_Mwaitx (int, int);
static void NOP_Fixup1 (int, int);
static void NOP_Fixup2 (int, int);
static void OP_3DNowSuffix (int, int);
@ -12072,8 +12073,8 @@ static const struct dis386 rm_table[][8] = {
/* RM_0F01_REG_7 */
{ "swapgs", { Skip_MODRM }, 0 },
{ "rdtscp", { Skip_MODRM }, 0 },
{ Bad_Opcode },
{ Bad_Opcode },
{ "monitorx", { { OP_Monitor, 0 } }, 0 },
{ "mwaitx", { { OP_Mwaitx, 0 } }, 0 },
{ "clzero", { Skip_MODRM }, 0 },
},
{
@ -16451,6 +16452,25 @@ CMP_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
}
}
static void
OP_Mwaitx (int bytemode ATTRIBUTE_UNUSED,
int sizeflag ATTRIBUTE_UNUSED)
{
/* mwaitx %eax,%ecx,%ebx */
if (!intel_syntax)
{
const char **names = (address_mode == mode_64bit
? names64 : names32);
strcpy (op_out[0], names[0]);
strcpy (op_out[1], names[1]);
strcpy (op_out[2], names[3]);
two_source_ops = 1;
}
/* Skip mod/rm byte. */
MODRM_CHECK;
codep++;
}
static void
OP_Mwait (int bytemode ATTRIBUTE_UNUSED,
int sizeflag ATTRIBUTE_UNUSED)

View File

@ -94,9 +94,9 @@ static initializer cpu_flag_init[] =
{ "CPU_BDVER3_FLAGS",
"Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|Cpu686|CpuSYSCALL|CpuRdtscp|Cpu387|Cpu687|CpuFISTTP|CpuNop|CpuMMX|CpuSSE|CpuSSE2|CpuSSE3|CpuSSE4a|CpuABM|CpuLM|CpuFMA|CpuFMA4|CpuXOP|CpuLWP|CpuBMI|CpuTBM|CpuF16C|CpuCX16|CpuClflush|CpuSSSE3|CpuSVME|CpuSSE4_1|CpuSSE4_2|CpuAES|CpuAVX|CpuPCLMUL|CpuLZCNT|CpuPRFCHW|CpuXsave|CpuXsaveopt|CpuFSGSBase" },
{ "CPU_BDVER4_FLAGS",
"Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|Cpu686|CpuSYSCALL|CpuRdtscp|Cpu387|Cpu687|CpuFISTTP|CpuNop|CpuMMX|CpuSSE|CpuSSE2|CpuSSE3|CpuSSE4a|CpuABM|CpuLM|CpuFMA|CpuFMA4|CpuXOP|CpuLWP|CpuBMI|CpuTBM|CpuF16C|CpuCX16|CpuClflush|CpuSSSE3|CpuSVME|CpuSSE4_1|CpuSSE4_2|CpuAES|CpuAVX|CpuPCLMUL|CpuLZCNT|CpuPRFCHW|CpuXsave|CpuXsaveopt|CpuFSGSBase|CpuAVX2|CpuMovbe|CpuBMI2|CpuRdRnd" },
"Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|Cpu686|CpuSYSCALL|CpuRdtscp|Cpu387|Cpu687|CpuFISTTP|CpuNop|CpuMMX|CpuSSE|CpuSSE2|CpuSSE3|CpuSSE4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" },
{ "CPU_BTVER1_FLAGS",
"Cpu186|Cpu286|Cpu386|Cpu486|Cpu586|Cpu686|CpuSYSCALL|CpuRdtscp|Cpu387|Cpu687|CpuNop|CpuMMX|CpuSSE|CpuSSE2|CpuSSE3|CpuSSSE3|CpuSSE4a|CpuABM|CpuLM|CpuPRFCHW|CpuCX16|CpuClflush|CpuFISTTP|CpuSVME|CpuLZCNT" },
{ "CPU_BTVER2_FLAGS",
@ -253,6 +253,8 @@ static initializer cpu_flag_init[] =
"CpuMMX|CpuSSE|CpuSSE2|CpuSSE3|CpuSSSE3|CpuSSE4_1|CpuSSE4_2|CpuAVX|CpuAVX2|CpuAVX512F|CpuAVX512VBMI" },
{ "CPU_CLZERO_FLAGS",
"CpuCLZERO" },
{ "CPU_MWAITX_FLAGS",
"CpuMWAITX" },
};
static initializer operand_type_init[] =
@ -457,6 +459,7 @@ static bitfield cpu_flags[] =
BITFIELD (CpuMPX),
BITFIELD (CpuAVX512IFMA),
BITFIELD (CpuAVX512VBMI),
BITFIELD (CpuMWAITX),
BITFIELD (CpuCLZERO),
BITFIELD (CpuAMD64),
BITFIELD (CpuIntel64),

View File

@ -23,742 +23,749 @@
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, \
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \
1, 1, 0, 1, 1, 1, 1 } }
1, 1, 1, 0, 1, 1, 1, 1 } }
#define CPU_GENERIC32_FLAGS \
{ { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 0, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
0, 1, 0, 0, 0, 0, 0 } }
0, 0, 1, 0, 0, 0, 0, 0 } }
#define CPU_MWAITX_FLAGS \
{ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
0, 1, 0, 0, 0, 0, 0, 0 } }
#define OPERAND_TYPE_NONE \

View File

@ -194,6 +194,8 @@ enum
CpuAVX512IFMA,
/* Intel AVX-512 VBMI Instructions support required. */
CpuAVX512VBMI,
/* mwaitx instruction required */
CpuMWAITX,
/* Clzero instruction required */
CpuCLZERO,
/* 64bit support required */
@ -304,6 +306,7 @@ typedef union i386_cpu_flags
unsigned int cpupcommit:1;
unsigned int cpuavx512ifma:1;
unsigned int cpuavx512vbmi:1;
unsigned int cpumwaitx:1;
unsigned int cpuclzero:1;
unsigned int cpu64:1;
unsigned int cpuno64:1;

View File

@ -5938,3 +5938,16 @@ clzero, 0, 0xf01fc, None, 3, CpuCLZERO, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|
// CLZERO instructions end
// MONITORX/MWAITX instructions
monitorx, 0, 0xf01, 0xfa, 2, CpuMWAITX, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ImmExt, { 0 }
// Need to ensure only "monitorx %eax/%ax,%ecx,%edx" is accepted.
monitorx, 3, 0xf01, 0xfa, 2, CpuMWAITX|CpuNo64, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ImmExt|AddrPrefixOp0, { Reg16|Reg32, Reg32, Reg32 }
// Need to ensure only "monitorx %rax/%eax,%rcx,%rdx" is accepted.
monitorx, 3, 0xf01, 0xfa, 2, CpuMWAITX|Cpu64, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ImmExt|AddrPrefixOp0|NoRex64, { Reg32|Reg64, Reg64, Reg64 }
mwaitx, 0, 0xf01, 0xfb, 2, CpuMWAITX, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ImmExt, { 0 }
// Need to ensure only "mwaitx %eax,%ecx,%ebx" is accepted.
mwaitx, 3, 0xf01, 0xfb, 2, CpuMWAITX|CpuNo64, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ImmExt|NoAVX, { Reg32, Reg32, Reg32 }
// Need to ensure only "mwaitx %rax,%rcx,%rbx" is accepted.
mwaitx, 3, 0xf01, 0xfb, 2, CpuMWAITX|Cpu64, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_ldSuf|ImmExt|NoRex64|NoAVX, { Reg64, Reg64, Reg64 }
// MONITORX/MWAITX instructions end

File diff suppressed because it is too large Load Diff