Debian Codegraph @

gcc/testsuite/gcc.dg/pr55152-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O -ffinite-math-only -fno-signed-zeros -fstrict-overflow -fdump-tree-optimized" } */
3 /* { dg-additional-options "-msse -mfpmath=sse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
4
5 double g (double a)
6 {
7 return (a<-a)?a:-a;
8 }
9 int f(int a)
10 {
11 return (a<-a)?a:-a;
12 }
13
14 /* { dg-final { scan-tree-dump-times "\.COPYSIGN" 1 "optimized" { target ifn_copysign } } } */
15 /* { dg-final { scan-tree-dump-times "ABS_EXPR" 1 "optimized" { target ifn_copysign } } } */
16 /* { dg-final { scan-tree-dump-times "ABS_EXPR" 2 "optimized" { target { ! ifn_copysign } } } } */