From be66c492b929a3b859cd7efffb692714b0a8e6ea Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 8 Jul 2002 10:40:37 +0000 Subject: [PATCH] * gas/i386/intel16.s: New. * gas/i386/intel16.d: New. * gas/i386/i386.exp: Run it. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/i386/i386.exp | 1 + gas/testsuite/gas/i386/intel16.d | 15 +++++++++++++++ gas/testsuite/gas/i386/intel16.s | 11 +++++++++++ 4 files changed, 33 insertions(+) create mode 100644 gas/testsuite/gas/i386/intel16.d create mode 100644 gas/testsuite/gas/i386/intel16.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 01d196f2151..e74003e35a5 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2002-07-08 Alan Modra + + * gas/i386/intel16.s: New. + * gas/i386/intel16.d: New. + * gas/i386/i386.exp: Run it. + 2002-07-03 Alan Modra * 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 23d654ccd2a..e45056a4c08 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 00000000000..fc74ad0bdaa --- /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 00000000000..bf78ad86211 --- /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 -- 2.34.1