Re: [PATCH] ranger: Fix up REALPART_EXPR/IMAGPART_EXPR handling [PR104604]

2022-02-21 Thread Richard Biener via Gcc-patches
> Am 21.02.2022 um 17:15 schrieb Jakub Jelinek via Gcc-patches > : > > Hi! > > The following testcase is miscompiled since r12-3328. > That change assumed that if rhs1 of a GIMPLE_ASSIGN is COMPLEX_CST, then > that is the value of the lhs of the stmt, but that is not the case always, > only

[PATCH] ranger: Fix up REALPART_EXPR/IMAGPART_EXPR handling [PR104604]

2022-02-21 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase is miscompiled since r12-3328. That change assumed that if rhs1 of a GIMPLE_ASSIGN is COMPLEX_CST, then that is the value of the lhs of the stmt, but that is not the case always, only if it is a GIMPLE_SINGLE_RHS stmt. If it is e.g. GIMPLE_UNARY_RHS or GIMPLE_BINARY_RHS