From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1643 invoked by alias); 14 Dec 2011 13:28:26 -0000 Received: (qmail 1633 invoked by uid 22791); 14 Dec 2011 13:28:24 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,TW_BJ X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Dec 2011 13:28:11 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 6B6A8CB18BF; Wed, 14 Dec 2011 14:28:11 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ogFkk7Wmm-El; Wed, 14 Dec 2011 14:28:11 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 58414CB07F3; Wed, 14 Dec 2011 14:28:11 +0100 (CET) Subject: Re: Rebased: [Patch mach-o/gas] provide a base test-suite entry for mach-o. Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Tristan Gingold In-Reply-To: Date: Wed, 14 Dec 2011 13:28:00 -0000 Cc: binutils@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <10E2670F-115D-4D0B-A24D-02E4DDB10437@adacore.com> References: <336A5A45-F6B8-4750-990A-B242530EFB1E@sandoe-acoustics.co.uk> To: Iain Sandoe X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00194.txt.bz2 On Dec 13, 2011, at 12:50 PM, Iain Sandoe wrote: > Rebased after the changes to objdump -P Now committed. Thanks, Tristan. >=20 > (doesn't affect this patch much - but I've elected to roll in a couple of= changes that kept needing repeating in dependent sub-trees). >=20 > On 12 Dec 2011, at 08:22, Tristan Gingold wrote: >=20 >>=20 >> On Dec 11, 2011, at 3:13 PM, Iain Sandoe wrote: >>=20 >>> This provides the basic entries for testing the mach-o additions to gas. >>> a couple of trivial tests are included - but the main motivation is to = provide a structure to add tests to for other pending patches. >>> cheers >>=20 >> Makes sense to me. I suppose cpu specific tests will go to the already = existing cpu subdirs. >>=20 >> I don't think I can approve this however. >=20 > Who should I ask? > thanks > Iain >=20 >>> gas/testsuite: >>>=20 >>> * gas/mach-o: New. >>> * gas/mach-o/mach-o.exp: New. >>> * gas/mach-o/warn-1.s: New. >>> * gas/mach-o/lcomm-1.s: New. >>> * gas/mach-o/lcomm-1.d: New. > * gas/mach-o/empty.s: New. >=20 > gas/testsuite/gas/mach-o/empty.s | 1 + > gas/testsuite/gas/mach-o/lcomm-1.d | 12 ++++++++++++ > gas/testsuite/gas/mach-o/lcomm-1.s | 11 +++++++++++ > gas/testsuite/gas/mach-o/mach-o.exp | 20 ++++++++++++++++++++ > gas/testsuite/gas/mach-o/warn-1.s | 5 +++++ > 5 files changed, 49 insertions(+), 0 deletions(-) >=20 > diff --git a/gas/testsuite/gas/mach-o/empty.s b/gas/testsuite/gas/mach-o/= empty.s > new file mode 100644 > index 0000000..b2a4ba5 > --- /dev/null > +++ b/gas/testsuite/gas/mach-o/empty.s > @@ -0,0 +1 @@ > +# nothing here > diff --git a/gas/testsuite/gas/mach-o/lcomm-1.d b/gas/testsuite/gas/mach-= o/lcomm-1.d > new file mode 100644 > index 0000000..a9e29bc > --- /dev/null > +++ b/gas/testsuite/gas/mach-o/lcomm-1.d > @@ -0,0 +1,12 @@ > +# nm: -B > +# > +# match for 32 and 64 bits. > +(00000000)?00008000 b align_max > +(00000000)?00000010 b another_align > +(00000000)?00000000 b column0 > +(00000000)?00000002 b column1 > +(00000000)?00000004 b local3_noalign > +(00000000)?00000008 b local4_aligned_2 > +(00000000)?00000020 b nospaces > +(00000000)?00000040 b trailingspace > +# > diff --git a/gas/testsuite/gas/mach-o/lcomm-1.s b/gas/testsuite/gas/mach-= o/lcomm-1.s > new file mode 100644 > index 0000000..2e44f37 > --- /dev/null > +++ b/gas/testsuite/gas/mach-o/lcomm-1.s > @@ -0,0 +1,11 @@ > + > +.lcomm column0,1,1 > + .lcomm column1, 2,1 > + .lcomm local3_noalign, 3,1 > + > + .lcomm local4_aligned_2, 4, 2 > + .lcomm another_align, 5, 4 > + .lcomm nospaces,6,5 > + .lcomm trailingspace,7,6=09=20=09 > + > + .lcomm align_max, 8, 15 > diff --git a/gas/testsuite/gas/mach-o/mach-o.exp b/gas/testsuite/gas/mach= -o/mach-o.exp > new file mode 100644 > index 0000000..854cb0c > --- /dev/null > +++ b/gas/testsuite/gas/mach-o/mach-o.exp > @@ -0,0 +1,20 @@ > +# > +# mach-o tests > +# > + > +# We're testing bits in obj-mach-o -- don't run on anything else. > + > +if {[istarget "*-*-darwin*"]} then { > + > +load_lib gas-dg.exp > + > +run_dump_tests [lsort [glob -nocomplain $srcdir/$subdir/*.d]] > + > +dg-init > + > +dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/err-*.s $srcdir/$sub= dir/warn-*.s]] "" "" > + > +dg-finish > + > +} > +# mach-o > diff --git a/gas/testsuite/gas/mach-o/warn-1.s b/gas/testsuite/gas/mach-o= /warn-1.s > new file mode 100644 > index 0000000..5ed9369 > --- /dev/null > +++ b/gas/testsuite/gas/mach-o/warn-1.s > @@ -0,0 +1,5 @@ > +# { dg-do assemble } > + > + .lcomm align_too_big,9,100 > + > +# { dg-warning "Warning: Alignment (100) too large: 15 assumed." "" { xf= ail *-*-darwin* } 3 } >=20 >=20 >=20