1 /* { dg-options "-O2 -ffast-math -fdump-tree-optimized" } */ 2 /* { dg-do compile } */ f(float x)3float f(float x) 4 { 5 float t = __builtin_copysignf (1.0f, x); 6 return x * t; 7 } f1(float x)8float f1(float x) 9 { 10 float t = __builtin_copysignf (1.0f, -x); 11 return x * t; 12 } 13 /* { dg-final { scan-tree-dump-times "ABS" 2 "optimized"} } */ 14