t; x cmp y.
> >> and is enabled with -funsafe-math-optimization and -fno-math-errno.
> >>
> >> Bootstrapped+tested on x86_64-unknown-linux-gnu.
> >> Cross-tested on arm*-*-*, aarch64*-*-*.
> >> OK for trunk ?
> >
> > + (cmp @0 { build_
-errno.
>>
>> Bootstrapped+tested on x86_64-unknown-linux-gnu.
>> Cross-tested on arm*-*-*, aarch64*-*-*.
>> OK for trunk ?
>
> + (cmp @0 { build_real (TREE_TYPE (@0), c2); })
> +
> + /* PR77644: Transform sqrt(x) cmp sqrt(y) -> x cmp y. */
> Cross-tested on arm*-*-*, aarch64*-*-*.
> OK for trunk ?
+ (cmp @0 { build_real (TREE_TYPE (@0), c2); })
+
+ /* PR77644: Transform sqrt(x) cmp sqrt(y) -> x cmp y. */
Do not reference PRs here please (and omit the vertical space before
the sub-pattern.
+ (sim
-09 Prathamesh Kulkarni
PR tree-optimization/77644
* match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
testsuite/
* gcc.dg/tree-ssa/pr77644.c: New test-case.
diff --git a/gcc/match.pd b/gcc/match.pd
index e3d98baa12f..9929f5a1c16 100644
--- a/gcc/match.pd
+++