From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25417 invoked by alias); 1 Nov 2002 20:04:54 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 25375 invoked from network); 1 Nov 2002 20:04:54 -0000 Received: from unknown (HELO sccrmhc01.attbi.com) (204.127.202.61) by sources.redhat.com with SMTP; 1 Nov 2002 20:04:54 -0000 Received: from lucon.org ([12.234.88.146]) by sccrmhc01.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20021101200453.NBEH8743.sccrmhc01.attbi.com@lucon.org> for ; Fri, 1 Nov 2002 20:04:53 +0000 Received: by lucon.org (Postfix, from userid 1000) id 1AD3B2C4EC; Fri, 1 Nov 2002 12:04:53 -0800 (PST) Date: Fri, 01 Nov 2002 12:04:00 -0000 From: "H. J. Lu" To: binutils@sources.redhat.com Subject: PATCH: A new i386 testcase Message-ID: <20021101120453.A31051@lucon.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-SW-Source: 2002-11/txt/msg00012.txt.bz2 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 89 Alan made the change for i386 gas. I will check in this testcase for that change. H.J. --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gas-i386.patch" Content-length: 1144 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 --NzB8fVQJ5HfG6fxh--