2002-11-01 H.J. Lu <hjl@gnu.org>
* gas/i386/i386.exp: Add "sub". * gas/i386/sub.d: New. * gas/i386/sub.s: New.
This commit is contained in:
parent
4f3cafa2eb
commit
4dd8d67b6a
@ -1,3 +1,10 @@
|
||||
2002-11-01 H.J. Lu <hjl@gnu.org>
|
||||
|
||||
* gas/i386/i386.exp: Add "sub".
|
||||
|
||||
* gas/i386/sub.d: New.
|
||||
* gas/i386/sub.s: New.
|
||||
|
||||
2002-10-22 H.J. Lu <hjl@gnu.org>
|
||||
|
||||
* gas/mips/branch-misc-2.d: Updated.
|
||||
|
@ -55,6 +55,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
|
||||
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*"] )
|
||||
|
10
gas/testsuite/gas/i386/sub.d
Normal file
10
gas/testsuite/gas/i386/sub.d
Normal file
@ -0,0 +1,10 @@
|
||||
#objdump: -drw
|
||||
#name: i386 sub
|
||||
|
||||
.*: +file format .*i386.*
|
||||
|
||||
Disassembly of section .text:
|
||||
|
||||
0+000 <foo>:
|
||||
0: 66 be (0|1)(0|2) 00[ ]+mov[ ]+\$0x(1)?(0|2),%si[ ]+2:[ ]+(R_386_PC|DISP)16[ ]+.data(\+0xfffffff0)?
|
||||
.*
|
11
gas/testsuite/gas/i386/sub.s
Normal file
11
gas/testsuite/gas/i386/sub.s
Normal file
@ -0,0 +1,11 @@
|
||||
.text
|
||||
.global foo
|
||||
foo:
|
||||
movw $bar-foo,%si
|
||||
|
||||
# Force a good alignment.
|
||||
.p2align 4,0
|
||||
|
||||
.data
|
||||
bar:
|
||||
.long 0
|
Loading…
x
Reference in New Issue
Block a user