https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104456

            Bug ID: 104456
           Summary: nvptx: prevent_branch_around_nothing doesn't handle
                    asm ("")
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Testing on a GT 1030, with driver 510.x, GOMP_NVPTX_JIT=-00 and -mptx=3.1, I
run into:
...
FAIL: libgomp.oacc-c/../libgomp.oacc-c-c++-common/acc_prof-version-1.c
-DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0 -foffload=nvptx-none  -O2 
execution test
...

The test-case runs into the warp divergence check, because we have:
...
@ %r23 bra $L2;
$L2:
...

The prevent_branch_around_nothing is supposed to handle this, but it doesn't
trigger for 'asm ("")'.

Reply via email to