public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] Add testcase for PR rtl-optimization/81020
@ 2017-11-28 10:56 Jakub Jelinek
  2017-11-28 16:05 ` Christophe Lyon
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2017-11-28 10:56 UTC (permalink / raw)
  To: Segher Boessenkool; +Cc: gcc-patches

Hi!

This testcase was fixed by Segher's r254875:
https://gcc.gnu.org/ml/gcc-patches/2017-11/msg00340.html
on the trunk, so I've committed it to trunk as obvious.
On release branches it still needs fixing.

2017-11-28  Jakub Jelinek  <jakub@redhat.com>

	PR rtl-optimization/81020
	* gcc.dg/pr81020.c: New test.

--- gcc/testsuite/gcc.dg/pr81020.c.jj	2017-11-27 18:49:06.659907687 +0100
+++ gcc/testsuite/gcc.dg/pr81020.c	2017-11-27 18:49:00.431982443 +0100
@@ -0,0 +1,23 @@
+/* PR rtl-optimization/81020 */
+/* { dg-do run } */
+/* { dg-options "-O -fno-tree-bit-ccp -fno-tree-coalesce-vars -fno-tree-vrp" } */
+
+unsigned v = 4;
+
+unsigned long long __attribute__((noipa))
+foo (unsigned x)
+{
+  unsigned a = v;
+  a &= 1;
+  x |= 0 < a;
+  a >>= 31;
+  return x + a;
+}
+
+int
+main ()
+{
+  if (foo (2) != 2)
+    __builtin_abort ();
+  return 0;
+}

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [committed] Add testcase for PR rtl-optimization/81020
  2017-11-28 10:56 [committed] Add testcase for PR rtl-optimization/81020 Jakub Jelinek
@ 2017-11-28 16:05 ` Christophe Lyon
  0 siblings, 0 replies; 2+ messages in thread
From: Christophe Lyon @ 2017-11-28 16:05 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Segher Boessenkool, gcc-patches

Hi,

On 28 November 2017 at 11:24, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
> This testcase was fixed by Segher's r254875:
> https://gcc.gnu.org/ml/gcc-patches/2017-11/msg00340.html
> on the trunk, so I've committed it to trunk as obvious.
> On release branches it still needs fixing.
>
> 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
>
>         PR rtl-optimization/81020
>         * gcc.dg/pr81020.c: New test.
>

I'm seeing:
FAIL:     gcc.dg/pr81020.c execution test
on aarch64

Is it expected?


> --- gcc/testsuite/gcc.dg/pr81020.c.jj   2017-11-27 18:49:06.659907687 +0100
> +++ gcc/testsuite/gcc.dg/pr81020.c      2017-11-27 18:49:00.431982443 +0100
> @@ -0,0 +1,23 @@
> +/* PR rtl-optimization/81020 */
> +/* { dg-do run } */
> +/* { dg-options "-O -fno-tree-bit-ccp -fno-tree-coalesce-vars -fno-tree-vrp" } */
> +
> +unsigned v = 4;
> +
> +unsigned long long __attribute__((noipa))
> +foo (unsigned x)
> +{
> +  unsigned a = v;
> +  a &= 1;
> +  x |= 0 < a;
> +  a >>= 31;
> +  return x + a;
> +}
> +
> +int
> +main ()
> +{
> +  if (foo (2) != 2)
> +    __builtin_abort ();
> +  return 0;
> +}
>
>         Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-28 15:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-28 10:56 [committed] Add testcase for PR rtl-optimization/81020 Jakub Jelinek
2017-11-28 16:05 ` Christophe Lyon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).