diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-01-13 22:19:32 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-01-13 22:19:32 +0000 |
commit | 8729a6f6a5148fb4dcb280a95dc0bdc35f02b96e (patch) | |
tree | e731aa0ff5a9e0ba9c1801d5a1ee04e3f75538e1 /gas/testsuite | |
parent | 7d5d4e982dcfc68a869ab0f63146751f6ba27c58 (diff) | |
download | binutils-8729a6f6a5148fb4dcb280a95dc0bdc35f02b96e.zip binutils-8729a6f6a5148fb4dcb280a95dc0bdc35f02b96e.tar.gz binutils-8729a6f6a5148fb4dcb280a95dc0bdc35f02b96e.tar.bz2 |
Add vmfunc
gas/
2012-01-13 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (cpu_arch): Add ".vmfunc".
* doc/c-i386.texi: Document vmfunc.
gas/testsuite/
2012-01-13 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run vmfunc and x86-64-vmfunc.
* gas/i386/vmfunc.d: New.
* gas/i386/vmfunc.s: Likewise.
* gas/i386/x86-64-vmfunc.d: Likewise.
opcodes/
2012-01-13 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (mod_table): Add vmfunc.
* i386-gen.c (cpu_flag_init): Add CPU_VMFUNC_FLAGS.
(cpu_flags): CpuVMFUNC.
* i386-opc.h (CpuVMFUNC): New.
(i386_cpu_flags): Add cpuvmfunc.
* i386-opc.tbl: Add vmfunc.
* i386-init.h: Regenerated.
* i386-tbl.h: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/i386.exp | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/vmfunc.d | 11 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/vmfunc.s | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-vmfunc.d | 12 |
5 files changed, 39 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index ea80694..e96c7bd 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2012-01-13 H.J. Lu <hongjiu.lu@intel.com> + + * gas/i386/i386.exp: Run vmfunc and x86-64-vmfunc. + + * gas/i386/vmfunc.d: New. + * gas/i386/vmfunc.s: Likewise. + * gas/i386/x86-64-vmfunc.d: Likewise. + 2012-01-13 Iain Sandoe <idsandoe@googlemail.com> * gas/all/redef2.d: Skip for Darwin. diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index e38cd27..df37d2f 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -54,6 +54,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "disp-intel" run_dump_test "disp32" run_dump_test "vmx" + run_dump_test "vmfunc" run_dump_test "smx" run_dump_test "suffix" run_dump_test "immed32" @@ -302,6 +303,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t run_dump_test "svme64" run_dump_test "x86-64-amdfam10" run_dump_test "x86-64-vmx" + run_dump_test "x86-64-vmfunc" run_dump_test "immed64" run_dump_test "x86-64-sse3" run_dump_test "x86-64-crx" diff --git a/gas/testsuite/gas/i386/vmfunc.d b/gas/testsuite/gas/i386/vmfunc.d new file mode 100644 index 0000000..dd6998d --- /dev/null +++ b/gas/testsuite/gas/i386/vmfunc.d @@ -0,0 +1,11 @@ +#objdump: -dw +#name: i386 VMFUNC + +.*: +file format .* + +Disassembly of section .text: + +0+ <foo>: +[ ]*[a-f0-9]+: 0f 01 d4 vmfunc +[ ]*[a-f0-9]+: 90 nop +#pass diff --git a/gas/testsuite/gas/i386/vmfunc.s b/gas/testsuite/gas/i386/vmfunc.s new file mode 100644 index 0000000..6718bd0 --- /dev/null +++ b/gas/testsuite/gas/i386/vmfunc.s @@ -0,0 +1,6 @@ +# VMFUNC Instructions + + .text +foo: + vmfunc + nop diff --git a/gas/testsuite/gas/i386/x86-64-vmfunc.d b/gas/testsuite/gas/i386/x86-64-vmfunc.d new file mode 100644 index 0000000..2af8761 --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-vmfunc.d @@ -0,0 +1,12 @@ +#source: vmfunc.s +#objdump: -dw +#name: 64bit VMFUNC + +.*: +file format .* + +Disassembly of section .text: + +0+ <foo>: +[ ]*[a-f0-9]+: 0f 01 d4 vmfunc +[ ]*[a-f0-9]+: 90 nop +#pass |