diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-06-12 18:59:37 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-06-12 18:59:37 +0000 |
commit | 1596541188b1a4080ab7bce6578c09626193dfd0 (patch) | |
tree | ea86784933615d8ad13cf7030ffe134cae15cfee /gas | |
parent | 46e883c5a969e151f282e0bf555cbd27bf10b66e (diff) | |
download | gdb-1596541188b1a4080ab7bce6578c09626193dfd0.zip gdb-1596541188b1a4080ab7bce6578c09626193dfd0.tar.gz gdb-1596541188b1a4080ab7bce6578c09626193dfd0.tar.bz2 |
gas/testsuite/
2006-06-12 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/i386.exp: Run nops and x86-64-nops.
* gas/i386/nops.d: New file.
* gas/i386/nops.s: Likewise.
* gas/i386/x86-64-nops.d: Likewise.
* gas/i386/x86-64-nops.s: Likewise.
include/opcode/
2006-06-12 H.J. Lu <hongjiu.lu@intel.com>
* i386.h (i386_optab): Add "nop" with memory reference.
opcodes/
2006-06-12 H.J. Lu <hongjiu.lu@intel.com>
* i386-dis.c (dis386_twobyte): Use "nopQ" for 0x1f.
(twobyte_has_modrm): Set 1 for 0x1f.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/i386.exp | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/nops.d | 17 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/nops.s | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-nops.d | 17 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-nops.s | 12 |
6 files changed, 69 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 2b16921..8ff202d 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,5 +1,14 @@ 2006-06-12 H.J. Lu <hongjiu.lu@intel.com> + * gas/i386/i386.exp: Run nops and x86-64-nops. + + * gas/i386/nops.d: New file. + * gas/i386/nops.s: Likewise. + * gas/i386/x86-64-nops.d: Likewise. + * gas/i386/x86-64-nops.s: Likewise. + +2006-06-12 H.J. Lu <hongjiu.lu@intel.com> + * gas/i386/opcode.s: Add "xchg %ax,%ax". * gas/i386/opcode.d: Updated. diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index fd5ea37..3f353bc 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -72,6 +72,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "rep" run_dump_test "rep-suffix" run_dump_test "fp" + run_dump_test "nops" # These tests require support for 8 and 16 bit relocs, # so we only run them for ELF and COFF targets. @@ -144,6 +145,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t run_dump_test "x86-64-rep" run_dump_test "x86-64-rep-suffix" run_dump_test "x86-64-gidt" + run_dump_test "x86-64-nops" if { ![istarget "*-*-aix*"] && ![istarget "*-*-beos*"] diff --git a/gas/testsuite/gas/i386/nops.d b/gas/testsuite/gas/i386/nops.d new file mode 100644 index 0000000..74eaf86 --- /dev/null +++ b/gas/testsuite/gas/i386/nops.d @@ -0,0 +1,17 @@ +#objdump: -drw +#name: i386 nops + +.*: +file format .* + +Disassembly of section .text: + +0+000 <.text>: +[ ]*0:[ ]+0f 1f 00[ ]+nopl[ ]+\(%eax\) +[ ]*3:[ ]+0f 1f 40 00[ ]+nopl[ ]+0x0\(%eax\) +[ ]*7:[ ]+0f 1f 44 00 00[ ]+nopl[ ]+0x0\(%eax,%eax,1\) +[ ]*c:[ ]+66 0f 1f 44 00 00[ ]+nopw[ ]+0x0\(%eax,%eax,1\) +[ ]*12:[ ]+0f 1f 80 00 00 00 00[ ]+nopl[ ]+0x0\(%eax\) +[ ]*19:[ ]+0f 1f 84 00 00 00 00 00[ ]+nopl[ ]+0x0\(%eax,%eax,1\) +[ ]*21:[ ]+66 0f 1f 84 00 00 00 00 00[ ]+nopw[ ]+0x0\(%eax,%eax,1\) +[ ]*2a:[ ]+66 2e 0f 1f 84 00 00 00 00 00[ ]+nopw[ ]+%cs:0x0\(%eax,%eax,1\) +#pass diff --git a/gas/testsuite/gas/i386/nops.s b/gas/testsuite/gas/i386/nops.s new file mode 100644 index 0000000..e4eec09 --- /dev/null +++ b/gas/testsuite/gas/i386/nops.s @@ -0,0 +1,12 @@ + .text + + .byte 0x0f, 0x1f, 0x0 + .byte 0x0f, 0x1f, 0x40, 0x0 + .byte 0x0f, 0x1f, 0x44, 0x0, 0x0 + .byte 0x66, 0x0f, 0x1f, 0x44, 0x0, 0x0 + .byte 0x0f, 0x1f, 0x80, 0x0, 0x0, 0x0, 0x0 + .byte 0x0f, 0x1f, 0x84, 0x0, 0x0, 0x0, 0x0, 0x0 + .byte 0x66, 0x0f, 0x1f, 0x84, 0x0, 0x0, 0x0, 0x0, 0x0 + .byte 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x0, 0x0, 0x0, 0x0, 0x0 + + .p2align 4 diff --git a/gas/testsuite/gas/i386/x86-64-nops.d b/gas/testsuite/gas/i386/x86-64-nops.d new file mode 100644 index 0000000..e51c0c1 --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-nops.d @@ -0,0 +1,17 @@ +#objdump: -drw +#name: x86-64 nops + +.*: +file format .* + +Disassembly of section .text: + +0+000 <.text>: +[ ]*0:[ ]+0f 1f 00[ ]+nopl[ ]+\(%rax\) +[ ]*3:[ ]+0f 1f 40 00[ ]+nopl[ ]+0x0\(%rax\) +[ ]*7:[ ]+0f 1f 44 00 00[ ]+nopl[ ]+0x0\(%rax,%rax,1\) +[ ]*c:[ ]+66 0f 1f 44 00 00[ ]+nopw[ ]+0x0\(%rax,%rax,1\) +[ ]*12:[ ]+0f 1f 80 00 00 00 00[ ]+nopl[ ]+0x0\(%rax\) +[ ]*19:[ ]+0f 1f 84 00 00 00 00 00[ ]+nopl[ ]+0x0\(%rax,%rax,1\) +[ ]*21:[ ]+66 0f 1f 84 00 00 00 00 00[ ]+nopw[ ]+0x0\(%rax,%rax,1\) +[ ]*2a:[ ]+66 2e 0f 1f 84 00 00 00 00 00[ ]+nopw[ ]+%cs:0x0\(%rax,%rax,1\) +#pass diff --git a/gas/testsuite/gas/i386/x86-64-nops.s b/gas/testsuite/gas/i386/x86-64-nops.s new file mode 100644 index 0000000..e4eec09 --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-nops.s @@ -0,0 +1,12 @@ + .text + + .byte 0x0f, 0x1f, 0x0 + .byte 0x0f, 0x1f, 0x40, 0x0 + .byte 0x0f, 0x1f, 0x44, 0x0, 0x0 + .byte 0x66, 0x0f, 0x1f, 0x44, 0x0, 0x0 + .byte 0x0f, 0x1f, 0x80, 0x0, 0x0, 0x0, 0x0 + .byte 0x0f, 0x1f, 0x84, 0x0, 0x0, 0x0, 0x0, 0x0 + .byte 0x66, 0x0f, 0x1f, 0x84, 0x0, 0x0, 0x0, 0x0, 0x0 + .byte 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x0, 0x0, 0x0, 0x0, 0x0 + + .p2align 4 |