1 /* PR tree-optimization/94524 */ 2 3 typedef signed char __attribute__ ((__vector_size__ (16))) V; 4 5 static __attribute__ ((__noinline__, __noclone__)) V foo(V c)6foo (V c) 7 { 8 c %= (signed char) -128; 9 return (V) c; 10 } 11 12 int main()13main () 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 } 26