libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / abs-1.c
blobce4041111033f51bcefcac0da6338902b209fa72
1 /* PR tree-optimization/109722 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fdump-tree-gimple -fdump-tree-optimized" } */
5 int g(signed char x){
6 x = x < 0 ? -x : x;
7 return x == 0;
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"} } */