aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-01-23 12:39:13 +0100
committerJakub Jelinek <jakub@redhat.com>2020-01-23 12:39:13 +0100
commit9592f639ff4655203f1cffb7c6752696e2721fb0 (patch)
tree949dba7cd858fa9cea9afc9746505573a3054489 /libgcc
parent8a990ffafaaa18981c6e91d4ed88f05ed74c5f3f (diff)
downloadgcc-9592f639ff4655203f1cffb7c6752696e2721fb0.zip
gcc-9592f639ff4655203f1cffb7c6752696e2721fb0.tar.gz
gcc-9592f639ff4655203f1cffb7c6752696e2721fb0.tar.bz2
i386: Use bzhi for x & ((1 << y) - 1) or x & ((1U << y) - 1) [PR93346]
The bzhi patterns are quite complicated because they need to accurately describe the behavior of the instruction for all input values. The following patterns are simple and make bzhi recognizable even for cases where not all input values are valid, because the user used a shift, in which case the low 8 bit of the last operand need to be in between 0 and precision-1. 2020-01-23 Jakub Jelinek <jakub@redhat.com> PR target/93346 * config/i386/i386.md (*bmi2_bzhi_<mode>3_2, *bmi2_bzhi_<mode>3_3): New define_insn patterns. * gcc.target/i386/pr93346.c: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions