view gcc/testsuite/gcc.c-torture/compile/pr94488.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

/* PR target/94488 */

typedef unsigned long V __attribute__((__vector_size__(16)));
typedef long W __attribute__((__vector_size__(16)));

void
foo (V *x, unsigned long y)
{
  *x = *x >> (unsigned int) y;
}

void
bar (V *x, unsigned long y)
{
  *x = *x << (unsigned int) y;
}

void
baz (W *x, unsigned long y)
{
  *x = *x >> (unsigned int) y;
}