]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cmov7.c (sgn): Renamed to ...
authorJakub Jelinek <jakub@redhat.com>
Wed, 28 Jun 2017 08:05:20 +0000 (10:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 28 Jun 2017 08:05:20 +0000 (10:05 +0200)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/cmov7.c

index 178b23666a889da5ebc34c9e084cf8a1d4b85e97..b5d359673992e0f80ec0101e5a05f27c117d2604 100644 (file)
@@ -1,3 +1,9 @@
+2017-06-28  Jakub Jelinek  <jakub@redhat.com>
+
+       * 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  <mliska@suse.cz>
 
        PR sanitizer/81224
index 8d637504fd740696ce791c340d89f23f25961c74..e648fed8b2a2c5e8ebb8590389057875bfc09807 100644 (file)
@@ -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;
 }