https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589
--- Comment #8 from Tom de Vries ---
Created attachment 43209
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43209=edit
Patch inserting fake_nop only in case of branch-around-nothing
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589
--- Comment #7 from Tom de Vries ---
(In reply to Jakub Jelinek from comment #6)
> (In reply to Tom de Vries from comment #4)
> > Using this rudimentary workaround, I got the failing tests of this PR
> > passing again:
> Shouldn't it be
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589
--- Comment #6 from Jakub Jelinek ---
(In reply to Tom de Vries from comment #4)
> Using this rudimentary workaround, I got the failing tests of this PR
> passing again:
> ...
> diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589
--- Comment #5 from Tom de Vries ---
Using the workaround, I get pretty good results:
...
Running /home/vries/openacc/trunk/source-gcc/libgomp/testsuite/libgomp.c/c.exp
...
FAIL: libgomp.c/target-32.c (test for excess errors)
FAIL:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589
--- Comment #4 from Tom de Vries ---
Using this rudimentary workaround, I got the failing tests of this PR passing
again:
...
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index afb0e4dd185..3ac28b3d903 100644
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589
--- Comment #3 from Tom de Vries ---
(In reply to Tom de Vries from comment #2)
> This looks like another nvidia driver problem (with driver version 384.111).
Confirmed.
The empty branch
> @ %r36 bra $L5;
> $L5:
is translated into:
...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589
--- Comment #2 from Tom de Vries ---
I've minimized mode-transitions.c to:
...
#define n 32
int
main (void)
{
int arr_a[n];
#pragma acc parallel copyout(arr_a) num_gangs(1) num_workers(1)
vector_length(32)
{
#pragma acc loop vector
for
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83589
--- Comment #1 from Tom de Vries ---
Using the patch from PR83920 comment 3 and testing libgomp.oacc-c/c.exp makes
the libgomp.oacc-c/c.exp failures of this PR go away.
So, this might be a duplicate.