diff options
author | Alan Modra <amodra@gmail.com> | 2002-07-08 10:40:37 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-07-08 10:40:37 +0000 |
commit | be66c492b929a3b859cd7efffb692714b0a8e6ea (patch) | |
tree | a4de3398e0b7f22376920e4738582cb4f283a9fb | |
parent | cd61ebfe13189cd946e02dd5b6a8a53ca2a6c018 (diff) | |
download | gdb-be66c492b929a3b859cd7efffb692714b0a8e6ea.zip gdb-be66c492b929a3b859cd7efffb692714b0a8e6ea.tar.gz gdb-be66c492b929a3b859cd7efffb692714b0a8e6ea.tar.bz2 |
* gas/i386/intel16.s: New.
* gas/i386/intel16.d: New.
* gas/i386/i386.exp: Run it.
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/i386.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/intel16.d | 15 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/intel16.s | 11 |
4 files changed, 33 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 01d196f..e74003e 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2002-07-08 Alan Modra <amodra@bigpond.net.au> + + * gas/i386/intel16.s: New. + * gas/i386/intel16.d: New. + * gas/i386/i386.exp: Run it. + 2002-07-03 Alan Modra <amodra@bigpond.net.au> * lib/gas-defs.exp (run_dump_test): Run objdump/nm/objcopy/readelf diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index 23d654c..e45056a 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -46,6 +46,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "naked" run_dump_test "opcode" run_dump_test "intel" + run_dump_test "intel16" run_dump_test "prefix" run_dump_test "amd" run_dump_test "katmai" diff --git a/gas/testsuite/gas/i386/intel16.d b/gas/testsuite/gas/i386/intel16.d new file mode 100644 index 0000000..fc74ad0 --- /dev/null +++ b/gas/testsuite/gas/i386/intel16.d @@ -0,0 +1,15 @@ +#objdump: -dw -mi8086 +#name: i386 intel16 + +.*: +file format .* + +Disassembly of section .text: + +0+000 <.text>: + 0: 66 0f bf 06 00 00 [ ]*movswl 0,%eax + 6: 66 0f be 06 00 00 [ ]*movsbl 0,%eax + c: 0f be 06 00 00 [ ]*movsbw 0,%ax + 11: 66 0f b7 06 00 00 [ ]*movzwl 0,%eax + 17: 66 0f b6 06 00 00 [ ]*movzbl 0,%eax + 1d: 0f b6 06 00 00 [ ]*movzbw 0,%ax + ... diff --git a/gas/testsuite/gas/i386/intel16.s b/gas/testsuite/gas/i386/intel16.s new file mode 100644 index 0000000..bf78ad8 --- /dev/null +++ b/gas/testsuite/gas/i386/intel16.s @@ -0,0 +1,11 @@ + .intel_syntax noprefix + .code16 + .text + + movsx eax,word ptr [0] + movsx eax,byte ptr [0] + movsx ax,byte ptr [0] + movzx eax,word ptr [0] + movzx eax,byte ptr [0] + movzx ax,byte ptr [0] + .p2align 4,0 |