aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.cc
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2024-01-25 12:03:18 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2024-01-25 12:03:18 +0000
commitc3de14ba1ba0e77254118af64ed881f115ee42a0 (patch)
tree1cdb6a4f19dd5e12eae559a49269978bdaab8d6f /gcc/fold-const.cc
parent8eead1148cd0ac086b39a7abccea404041c85cb5 (diff)
downloadgcc-c3de14ba1ba0e77254118af64ed881f115ee42a0.zip
gcc-c3de14ba1ba0e77254118af64ed881f115ee42a0.tar.gz
gcc-c3de14ba1ba0e77254118af64ed881f115ee42a0.tar.bz2
aarch64: Fix out-of-bounds ENCODED_ELT access [PR113572]
When generalising vector_cst_all_same, I'd forgotten to update VECTOR_CST_ENCODED_ELT to VECTOR_CST_ELT. The check deliberately looks at implicitly encoded elements in some cases. gcc/ PR target/113572 * config/aarch64/aarch64-sve-builtins.cc (vector_cst_all_same): Check VECTOR_CST_ELT instead of VECTOR_CST_ENCODED_ELT gcc/testsuite/ PR target/113572 * gcc.target/aarch64/sve/pr113572.c: New test.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions