2002-11-01 H.J. Lu * gas/i386/i386.exp: Add "sub". * gas/i386/sub.d: New. * gas/i386/sub.s: New. --- gas/testsuite/gas/i386/i386.exp.sub Wed Sep 18 21:48:32 2002 +++ gas/testsuite/gas/i386/i386.exp Fri Nov 1 10:33:14 2002 @@ -55,6 +55,7 @@ if [expr ([istarget "i*86-*-*"] || [ist run_dump_test "sse2" run_dump_test "absrel" run_dump_test "pcrel" + run_dump_test "sub" # PIC is only supported on ELF targets. if { ([istarget "*-*-elf*"] || [istarget "*-*-linux*"] ) --- gas/testsuite/gas/i386/sub.d.sub Fri Nov 1 10:33:14 2002 +++ gas/testsuite/gas/i386/sub.d Fri Nov 1 12:00:10 2002 @@ -0,0 +1,10 @@ +#objdump: -drw +#name: i386 sub + +.*: +file format .*i386.* + +Disassembly of section .text: + +0+000 : + 0: 66 be (0|1)(0|2) 00[ ]+mov[ ]+\$0x(1)?(0|2),%si[ ]+2:[ ]+(R_386_PC|DISP)16[ ]+.data(\+0xfffffff0)? +.* --- gas/testsuite/gas/i386/sub.s.sub Fri Nov 1 10:33:14 2002 +++ gas/testsuite/gas/i386/sub.s Fri Nov 1 11:22:50 2002 @@ -0,0 +1,11 @@ + .text + .global foo +foo: + movw $bar-foo,%si + + # Force a good alignment. + .p2align 4,0 + + .data +bar: + .long 0