diff options
author | Jonathan Wright <jonathan.wright@arm.com> | 2021-10-11 23:02:16 +0100 |
---|---|---|
committer | Jonathan Wright <jonathan.wright@arm.com> | 2021-11-04 14:51:09 +0000 |
commit | 4e5929e4575922015ff4634af4dea59c59a44f10 (patch) | |
tree | d8e3a95b4faed8b7c545c7f3f4e0869b6ef085ba /gcc/genmodes.c | |
parent | 2fc20260619b9f68044b7a3eb042726a382b5002 (diff) | |
download | gcc-4e5929e4575922015ff4634af4dea59c59a44f10.zip gcc-4e5929e4575922015ff4634af4dea59c59a44f10.tar.gz gcc-4e5929e4575922015ff4634af4dea59c59a44f10.tar.bz2 |
gcc/expmed.c: Ensure vector modes are tieable before extraction
Extracting a bitfield from a vector can be achieved by casting the
vector to a new type whose elements are the same size as the desired
bitfield, before generating a subreg. However, this is only an
optimization if the original vector can be accessed in the new
machine mode without first being copied - a condition denoted by the
TARGET_MODES_TIEABLE_P hook.
This patch adds a check to make sure that the vector modes are
tieable before attempting to generate a subreg. This is a necessary
prerequisite for a subsequent patch that will introduce new machine
modes for Arm Neon vector-tuple types.
gcc/ChangeLog:
2021-10-11 Jonathan Wright <jonathan.wright@arm.com>
* expmed.c (extract_bit_field_1): Ensure modes are tieable.
Diffstat (limited to 'gcc/genmodes.c')
0 files changed, 0 insertions, 0 deletions