aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr94524-1.c
blob: e7365ad97fd1c69614c5472223dbc42b8a1dfc55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR tree-optimization/94524 */

typedef signed char __attribute__ ((__vector_size__ (16))) V;

static __attribute__ ((__noinline__, __noclone__)) V
foo (V c)
{
  c %= (signed char) -19;
  return (V) c;
}

int
main ()
{
  V x = foo ((V) { 31 });
  if (x[0] != 12)
    __builtin_abort ();
  return 0;
}