Re: Check for bitwise identity when encoding VECTOR_CSTs (PR 92768)

2019-12-05 Thread Jakub Jelinek
On Thu, Dec 05, 2019 at 10:26:34AM +, Richard Sandiford wrote: > 2019-12-05 Richard Sandiford > > gcc/ > PR middle-end/92768 > * tree-core.h (OEP_BITWISE): New flag. > * fold-const.c (operand_compare::operand_equal_p): Handle it. > * tree-vector-builder.h (tree_vecto

Re: Check for bitwise identity when encoding VECTOR_CSTs (PR 92768)

2019-12-05 Thread Richard Biener
On Thu, Dec 5, 2019 at 11:26 AM Richard Sandiford wrote: > > This PR shows that we weren't checking for bitwise-identical values > when trying to encode a VECTOR_CST, so -0.0 was treated the same as > 0.0 for -fno-signed-zeros. The patch adds a new OEP flag to select > that behaviour. > > Tested