aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.cc
diff options
context:
space:
mode:
authorRobin Dapp <rdapp@ventanamicro.com>2025-02-21 07:19:40 +0100
committerRobin Dapp <rdapp@ventanamicro.com>2025-02-24 13:11:15 +0100
commitf3d4208e798afafcba5246334004e9646e390681 (patch)
tree123f8fd9075160df42d18183bd47b5039da55ba6 /gcc/c/c-parser.cc
parent5806279610783805286ebcd0af3b455602a3a8f9 (diff)
downloadgcc-f3d4208e798afafcba5246334004e9646e390681.zip
gcc-f3d4208e798afafcba5246334004e9646e390681.tar.gz
gcc-f3d4208e798afafcba5246334004e9646e390681.tar.bz2
vect: Use original LHS type for gather pattern [PR118950].
In PR118950 we do not zero masked elements in a gather load. While recognizing a gather/scatter pattern we do not use the original type of the LHS. This matters because the type can differ with bool patterns (e.g. _Bool vs unsigned char) and we don't notice the need for zeroing out the padding bytes. This patch just uses the original LHS's type. PR middle-end/118950 gcc/ChangeLog: * tree-vect-patterns.cc (vect_recog_gather_scatter_pattern): Use original LHS's type. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/pr118950.c: New test.
Diffstat (limited to 'gcc/c/c-parser.cc')
0 files changed, 0 insertions, 0 deletions