PR c/64856
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-minus-1.c
blobc0fb89a01ae1dedc7192d26bb9ccf229f127b498
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-gimple" } */
4 typedef int vec __attribute__((vector_size(2*sizeof(int))));
6 void f(vec*x,vec*y){
7 *x -= *x / *y * *y;
9 void g(vec*x,vec*y,vec*z){
10 *x = -1 - *x;
11 *y = -*y - 1;
12 *z = -*z - 13;
15 /* { dg-final { scan-tree-dump-times "%" 1 "gimple"} } */
16 /* { dg-final { scan-tree-dump-times "~" 2 "gimple"} } */
17 /* { dg-final { scan-tree-dump-not "/" "gimple"} } */
18 /* { dg-final { scan-tree-dump-not "\\\+" "gimple"} } */
19 /* { dg-final { scan-tree-dump "{ -13, -13 }" "gimple"} } */
20 /* { dg-final { cleanup-tree-dump "gimple" } } */