diff mbox

XFAIL ipa/inline-5.c testcase for 32-bit hppa (PR testsuite/50803)

Message ID 20111216174524.GA1957@tyan-ft48-01.lab.bos.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Dec. 16, 2011, 5:45 p.m. UTC
Hi!

This testcase apparently fails on 32-bit hppa (both hpux and linux),
because the struct there is passed by callee copied reference
(unlike most other targets or even 64-bit hppa).
So "Will be eliminated" is printed 3 times instead of 4 times.

This patch just XFAILs it.

Tested with x86_64-linux -> hppa64-hp-hpux11.11,
x86_64-linux -> hppa2.0w-hp-hpux11.11 and
x86_64-linux -> hppa-unknown-linux-gnu crosses.

Ok for trunk?

2011-12-16  Jakub Jelinek  <jakub@redhat.com>

	PR testsuite/50803
	* gcc.dg/ipa/inline-5.c: XFAIL for 32-bit hppa.


	Jakub

Comments

Richard Biener Dec. 19, 2011, 9 a.m. UTC | #1
On Fri, Dec 16, 2011 at 6:45 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
> This testcase apparently fails on 32-bit hppa (both hpux and linux),
> because the struct there is passed by callee copied reference
> (unlike most other targets or even 64-bit hppa).
> So "Will be eliminated" is printed 3 times instead of 4 times.
>
> This patch just XFAILs it.
>
> Tested with x86_64-linux -> hppa64-hp-hpux11.11,
> x86_64-linux -> hppa2.0w-hp-hpux11.11 and
> x86_64-linux -> hppa-unknown-linux-gnu crosses.
>
> Ok for trunk?

Ok.

Richard.

> 2011-12-16  Jakub Jelinek  <jakub@redhat.com>
>
>        PR testsuite/50803
>        * gcc.dg/ipa/inline-5.c: XFAIL for 32-bit hppa.
>
> --- gcc/testsuite/gcc.dg/ipa/inline-5.c.jj      2011-10-06 09:14:15.000000000 +0200
> +++ gcc/testsuite/gcc.dg/ipa/inline-5.c 2011-12-16 18:37:10.484707342 +0100
> @@ -31,6 +31,6 @@ accessreference (struct a *a)
>     /* Will be eliminated by inlining */
>  }
>
> -/* { dg-final { scan-ipa-dump-times "Will be eliminated" 4 "inline"  } } */
> +/* { dg-final { scan-ipa-dump-times "Will be eliminated" 4 "inline" { xfail { { hppa*-*-* } && { ! hppa*64*-*-* } } } } } */
>  /* { dg-final { scan-ipa-dump-times "50. will be eliminated" 1 "inline"  } } */
>  /* { dg-final { cleanup-ipa-dump "inline" } } */
>
>        Jakub
diff mbox

Patch

--- gcc/testsuite/gcc.dg/ipa/inline-5.c.jj	2011-10-06 09:14:15.000000000 +0200
+++ gcc/testsuite/gcc.dg/ipa/inline-5.c	2011-12-16 18:37:10.484707342 +0100
@@ -31,6 +31,6 @@  accessreference (struct a *a)
     /* Will be eliminated by inlining */
 }
 
-/* { dg-final { scan-ipa-dump-times "Will be eliminated" 4 "inline"  } } */
+/* { dg-final { scan-ipa-dump-times "Will be eliminated" 4 "inline" { xfail { { hppa*-*-* } && { ! hppa*64*-*-* } } } } } */
 /* { dg-final { scan-ipa-dump-times "50. will be eliminated" 1 "inline"  } } */
 /* { dg-final { cleanup-ipa-dump "inline" } } */