PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / negminus.c
blobf857a007983ea78115b8710a26138ece6701e441
1 /* { dg-do compile } */
2 /* { dg-options "-O -fno-rounding-math -fno-signed-zeros -fdump-tree-optimized-raw" } */
4 double f(double a, double b){
5 double c = a - b;
6 return -c;
9 int g(unsigned x){
10 unsigned y = ~x;
11 int z = (int) y;
12 return -z;
15 unsigned h(unsigned a, unsigned b, unsigned c){
16 unsigned d = b - c;
17 unsigned e = a + d;
18 return -e;
21 /* { dg-final { scan-tree-dump-not "negate_expr" "optimized"} } */