[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple dg-do do not work.
From: |
Ben Elliston |
Subject: |
Re: Multiple dg-do do not work. |
Date: |
Wed, 9 Mar 2016 11:18:28 +1100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Mar 08, 2016 at 02:29:10PM +0100, Dominik Vogt wrote:
> However, multiple dg-do don't seem to work:
>
> dg-do run { condition }
> dg-do assemble { ! condition }
There are plenty of examples of this in the testsuite. You may wish to
investigate further:
$ grep -r dg-do . | awk -F: '{print $1}' | uniq -d
For example, the top of gcc.target/powerpc/altivec-3.c says:
/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
So compile awyas on powerpc-*-*, but only run if the taget has the
right hardware. It should certainly work. If it doesn't, please send
a patch!
Cheers, Ben
signature.asc
Description: Digital signature