PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-minus-1.c
blobb3f096afc04b98af0a8217586e649dd83414c1b5
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"} } */