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

Attachment: signature.asc
Description: Digital signature

_______________________________________________
DejaGnu mailing list
DejaGnu@gnu.org
https://lists.gnu.org/mailman/listinfo/dejagnu

Reply via email to