aboutsummaryrefslogtreecommitdiff
path: root/gcc/final.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-12-05 14:20:38 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-12-05 14:20:38 +0000
commit56b4b16eb18e8af5615a9c7b56c6b5e7f9c3adf0 (patch)
tree5e41d9c2bd48e9c3b6f229b418d7f4fc32780b4d /gcc/final.c
parent5a784d350c57d670775471bec847370ed7677666 (diff)
downloadgcc-56b4b16eb18e8af5615a9c7b56c6b5e7f9c3adf0.zip
gcc-56b4b16eb18e8af5615a9c7b56c6b5e7f9c3adf0.tar.gz
gcc-56b4b16eb18e8af5615a9c7b56c6b5e7f9c3adf0.tar.bz2
Check for bitwise identity when encoding VECTOR_CSTs (PR 92768)
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. 2019-12-05 Richard Sandiford <richard.sandiford@arm.com> 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_vector_builder::equal_p): Pass it. gcc/testsuite/ PR middle-end/92768 * gcc.dg/pr92768.c: New test. From-SVN: r279002
Diffstat (limited to 'gcc/final.c')
0 files changed, 0 insertions, 0 deletions