Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/pr94524-2.c

raw
1 /* PR tree-optimization/94524 */
2
3 typedef signed char __attribute__ ((__vector_size__ (16))) V;
4
5 static __attribute__ ((__noinline__, __noclone__)) V
6 foo (V c)
7 {
8 c %= (signed char) -128;
9 return (V) c;
10 }
11
12 int
13 main ()
14 {
15 V x = foo ((V) { -128 });
16 if (x[0] != 0)
17 __builtin_abort ();
18 x = foo ((V) { -127 });
19 if (x[0] != -127)
20 __builtin_abort ();
21 x = foo ((V) { 127 });
22 if (x[0] != 127)
23 __builtin_abort ();
24 return 0;
25 }