]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[nvptx, libgomp] Update pr85381-{2,4}.c test-cases
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Jun 2019 12:01:30 +0000 (12:01 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Jun 2019 12:01:30 +0000 (12:01 +0000)
After the fix for "PR tree-optimization/89713 - Assume loop with an exit is
finite" ( r272234 ) empty oacc loops are removed before expand.

Update pr85381-{2,4}.c accordingly.

2019-06-15  Tom de Vries  <tdevries@suse.de>

PR tree-optimization/89713
* testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
* testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@272324 138bc75d-0d04-0410-961f-82ee72b054a4

libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/pr85381-2.c
libgomp/testsuite/libgomp.oacc-c-c++-common/pr85381-4.c

index bc8647be2137cc9ee9677b95b872b51e05bde394..131a415cb48ee53165770db8993fa6fba1277814 100644 (file)
@@ -1,3 +1,9 @@
+2019-06-15  Tom de Vries  <tdevries@suse.de>
+
+       PR tree-optimization/89713
+       * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
+       * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
+
 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/90779
index 6570c64afff5442396dfd1a2ac12f32a3f77491d..2cb5b95949deaf7c4b2619da773817bcdf18be92 100644 (file)
@@ -15,22 +15,4 @@ main (void)
   return 0;
 }
 
-/* Todo: Boths bar.syncs can be removed.
-   Atm we generate this dead code inbetween forked and joining:
-
-                     mov.u32 %r28, %ntid.y;
-                     mov.u32 %r29, %tid.y;
-                     add.u32 %r30, %r29, %r29;
-                     setp.gt.s32     %r31, %r30, 19;
-             @%r31   bra     $L2;
-                     add.u32 %r25, %r28, %r28;
-                     mov.u32 %r24, %r30;
-     $L3:
-                     add.u32 %r24, %r24, %r25;
-                     setp.le.s32     %r33, %r24, 19;
-             @%r33   bra     $L3;
-     $L2:
-
-   so the loop is not recognized as empty loop (which we detect by seeing if
-   joining immediately follows forked).  */
-/* { dg-final { scan-assembler-times "bar.sync" 2 } } */
+/* { dg-final { scan-assembler-times "bar.sync" 0 } } */
index d955d79718dfb9a590467ad49235f14034b434c4..e8a433ffc0a5bc644b889620d5a50594852b19c3 100644 (file)
@@ -21,7 +21,4 @@ main (void)
   return 0;
 }
 
-/* Atm, %ntid.y is broadcast from one loop to the next, so there are 2 bar.syncs
-   for that (the other two are there for the same reason as in pr85381-2.c).
-   Todo: Recompute %ntid.y instead of broadcasting it. */
-/* { dg-final { scan-assembler-times "bar.sync" 4 } } */
+/* { dg-final { scan-assembler-times "bar.sync" 0 } } */