From: "H. J. Lu" <hjl@lucon.org>
To: binutils@sources.redhat.com
Subject: PATCH: A new i386 testcase
Date: Fri, 01 Nov 2002 12:04:00 -0000 [thread overview]
Message-ID: <20021101120453.A31051@lucon.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 89 bytes --]
Alan made the change for i386 gas. I will check in this testcase for
that change.
H.J.
[-- Attachment #2: gas-i386.patch --]
[-- Type: text/plain, Size: 1144 bytes --]
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.
--- 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 <foo>:
+ 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
reply other threads:[~2002-11-01 20:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021101120453.A31051@lucon.org \
--to=hjl@lucon.org \
--cc=binutils@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).