From: Jakub Jelinek Date: Wed, 28 Jun 2017 08:05:20 +0000 (+0200) Subject: cmov7.c (sgn): Renamed to ... X-Git-Tag: basepoints/gcc-9~6316 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8d62ac8265fc701425d9046d5ed2b6d832b71ef;p=thirdparty%2Fgcc.git cmov7.c (sgn): Renamed to ... * gcc.target/i386/cmov7.c (sgn): Renamed to ... (foo): ... this. Change constants such that it isn't matched as __builtin_copysign, yet tests the combiner the same. From-SVN: r249729 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 178b23666a88..b5d359673992 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-06-28 Jakub Jelinek + + * gcc.target/i386/cmov7.c (sgn): Renamed to ... + (foo): ... this. Change constants such that it isn't matched + as __builtin_copysign, yet tests the combiner the same. + 2017-06-28 Martin Liska PR sanitizer/81224 diff --git a/gcc/testsuite/gcc.target/i386/cmov7.c b/gcc/testsuite/gcc.target/i386/cmov7.c index 8d637504fd74..e648fed8b2a2 100644 --- a/gcc/testsuite/gcc.target/i386/cmov7.c +++ b/gcc/testsuite/gcc.target/i386/cmov7.c @@ -10,7 +10,7 @@ (set (reg:DF) (float_extend:DF (mem:SF (symbol_ref...)))). */ double -sgn (double __x) +foo (double __x) { - return __x >= 0.0 ? 1.0 : -1.0; + return __x >= 1.0 ? 0.0 : -1.0; }