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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |openmp

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #1)
> Can you please help me how to run the single test on my machine w/o nvptx
> target?

This is the openmp variant:
...
/* { dg-additional-options "-ftree-switch-conversion" } */

#include <stdio.h>

int
main (void)
{
  int n[1];
  n[0] = 4;
#pragma omp target 
  {
    int a = n[0];
    switch (a & 3)
      {
      case 0: a = 4; break;
      case 1: a = 3; break;
      case 2: a = 2; break;
      default:
        a = 1; break;
      }
    n[0] = a;
  }

  printf ("n: %d\n", n[0]);

  return 0;
}
...

This might also reproduce with intelmic.

Reply via email to