diff options
| author | Richard Biener <rguenther@suse.de> | 2025-11-06 14:24:34 +0100 |
|---|---|---|
| committer | Richard Biener <rguenther@suse.de> | 2025-11-07 14:20:26 +0100 |
| commit | bc10ba9c33bb0cef335e8e0072e638fd4d404337 (patch) | |
| tree | ca16b39fbdccbef4295e43e1f9cf743b2fa247cf /gcc/c-family/c-warn.cc | |
| parent | 0376ac1da3d9125276c427dcb17b2d7db2cbe18f (diff) | |
| download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 | |
We are currently overly restrictive with rejecting conversions from
bit-precision entities to mode precision ones. Similar to RTL expansion
we can focus on non-bit operations producing bit-precision results
which we currently do not properly handle by masking. Such checks
should be already present. The following relaxes vectorizable_conversion.
Actual bitfield accesses are catched and rejected by vectorizer dataref
analysis and converted during if-conversion into mode-size accesses
with appropriate sign- or zero-extension.
PR tree-optimization/122577
* tree-vect-stmts.cc (vectorizable_conversion): Allow conversions
from non-mode-precision types.
* gcc.dg/vect/vect-bool-3.c: New testcase.
Diffstat (limited to 'gcc/c-family/c-warn.cc')
0 files changed, 0 insertions, 0 deletions
