Patchwork [trunk,4.5] PR testsuite/44195, Limit x86 specific lto test case to x86

login
register
mail settings
Submitter Peter Bergner
Date July 1, 2010, 6:49 p.m.
Message ID <1278010191.3681.5.camel@otta>
Download mbox | patch
Permalink /patch/57569/
State New
Headers show

Comments

Peter Bergner - July 1, 2010, 6:49 p.m.
The 20100518_0.c test case uses x86 specific inline asm instructions
(decl and jnz).  The following patch disables the test case unless
we're on x86.  Ok for mainline and 4.5?

Peter


	PR testsuite/44195
	* gcc.dg/lto/20100518_0.c: Limit to x86.
Richard Guenther - July 1, 2010, 9:15 p.m.
On Thu, Jul 1, 2010 at 8:49 PM, Peter Bergner <bergner@vnet.ibm.com> wrote:
> The 20100518_0.c test case uses x86 specific inline asm instructions
> (decl and jnz).  The following patch disables the test case unless
> we're on x86.  Ok for mainline and 4.5?

Ok.

Thanks,
Richard.

> Peter
>
>
>        PR testsuite/44195
>        * gcc.dg/lto/20100518_0.c: Limit to x86.
>
> Index: gcc.dg/lto/20100518_0.c
> ===================================================================
> --- gcc.dg/lto/20100518_0.c     (revision 161676)
> +++ gcc.dg/lto/20100518_0.c     (working copy)
> @@ -1,4 +1,5 @@
>  /* { dg-lto-do link } */
> +/* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } { "*" } { "" } } */
>  /* Forgot to steam in/out the number of labels for asm goto.  PR44184.  */
>
>  extern int printf (__const char *__restrict __format, ...);
>
>
>
Peter Bergner - July 6, 2010, 5:02 p.m.
On Thu, 2010-07-01 at 23:15 +0200, Richard Guenther wrote:
> On Thu, Jul 1, 2010 at 8:49 PM, Peter Bergner <bergner@vnet.ibm.com> wrote:
> > The 20100518_0.c test case uses x86 specific inline asm instructions
> > (decl and jnz).  The following patch disables the test case unless
> > we're on x86.  Ok for mainline and 4.5?
> 
> Ok.

Committed, thanks.

Peter

Patch

Index: gcc.dg/lto/20100518_0.c
===================================================================
--- gcc.dg/lto/20100518_0.c	(revision 161676)
+++ gcc.dg/lto/20100518_0.c	(working copy)
@@ -1,4 +1,5 @@ 
 /* { dg-lto-do link } */
+/* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } { "*" } { "" } } */
 /* Forgot to steam in/out the number of labels for asm goto.  PR44184.  */
 
 extern int printf (__const char *__restrict __format, ...);