Commit b8d62ac8 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 6dc61b45
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
......
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment