diff options
author | Richard Biener <rguenther@suse.de> | 2020-09-18 13:36:24 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-09-18 14:48:42 +0200 |
commit | 9c9b88fdcff3520b2c4fb520c5d3b422eaa9a72f (patch) | |
tree | d4ddf6cfb0bcd6d65a75c889ee527c041c141bb8 /gcc/objc | |
parent | 2f8022873c72e4abed7987cfa6b8ab9de6e53971 (diff) | |
download | gcc-9c9b88fdcff3520b2c4fb520c5d3b422eaa9a72f.zip gcc-9c9b88fdcff3520b2c4fb520c5d3b422eaa9a72f.tar.gz gcc-9c9b88fdcff3520b2c4fb520c5d3b422eaa9a72f.tar.bz2 |
tree-optimization/97081 - fix wrong-code with vectorized shift
This corrects the mask for creation of x << s | x >> (-x & mask)
from a rotate x <<r s to use the precision of x.
2020-09-18 Richard Biener <rguenther@suse.de>
PR tree-optimization/97081
* tree-vect-patterns.c (vect_recog_rotate_pattern): Use the
precision of the shifted operand to determine the mask.
* gcc.dg/vect/pr97081.c: New testcase.
Diffstat (limited to 'gcc/objc')
0 files changed, 0 insertions, 0 deletions