Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/abs-1.c

raw
1 /* PR tree-optimization/109722 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fdump-tree-gimple -fdump-tree-optimized" } */
4
5 int g(signed char x){
6 x = x < 0 ? -x : x;
7 return x == 0;
8 }
9
10 /* This should work even if int is 16bits. */
11 /* { dg-final { scan-tree-dump "ABSU_EXPR" "gimple"} } */
12 /* { dg-final { scan-tree-dump-not "ABSU_EXPR" "optimized"} } */