diff options
author | Jakub Jelinek <jakub@redhat.com> | 2020-12-04 18:44:31 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2020-12-04 18:44:31 +0100 |
commit | ac2a6962b91128e700ee52db686dcdb2bab93790 (patch) | |
tree | cf15a76a7c3fff60cad9088ca46693240a9ad595 /gcc/print-rtl-function.c | |
parent | 33be07be9e46f15b9556521050356c47460651ee (diff) | |
download | gcc-ac2a6962b91128e700ee52db686dcdb2bab93790.zip gcc-ac2a6962b91128e700ee52db686dcdb2bab93790.tar.gz gcc-ac2a6962b91128e700ee52db686dcdb2bab93790.tar.bz2 |
i386: Add combine splitters to allow combining multiple insns into reg1 = const; reg2 = rotate (reg1, reg3 & cst) [PR96226]
As mentioned in the PR, we can combine ~(1 << x) into -2 r<< x, but we give
up in the ~(1 << (x & 31)) cases, as *<rotate_insn><mode>3_mask* don't allow
immediate operand 1 and find_split_point prefers to split (x & 31) instead
of the constant.
With these combine splitters we help combine decide how to split those
insns.
2020-12-04 Jakub Jelinek <jakub@redhat.com>
PR target/96226
* config/i386/i386.md (splitter after *<rotate_insn><mode>3_mask,
splitter after *<rotate_insn><mode>3_mask_1): New combine splitters.
* gcc.target/i386/pr96226.c: New test.
Diffstat (limited to 'gcc/print-rtl-function.c')
0 files changed, 0 insertions, 0 deletions