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
This commit is contained in:
Jakub Jelinek 2017-06-28 10:05:20 +02:00 committed by Jakub Jelinek
parent 6dc61b4533
commit b8d62ac826
2 changed files with 8 additions and 2 deletions

View 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

View 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;
}