gcc: xtensa: fix PR target/98285
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 12 Dec 2020 20:14:40 +0000 (12:14 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 15 Dec 2020 06:29:50 +0000 (22:29 -0800)
commit06ff8708f0b834cf1b35afa46113c6c973905cad
tree7f1f311382e21e64a3fa2da3d5c2c1fe614395d1
parent773a4106bbbd20e2f8bd840607f3e2f74fd00ce5
gcc: xtensa: fix PR target/98285

2020-12-14  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
* config/xtensa/predicates.md (addsubx_operand): Change accepted
values from 2/4/8 to 1..3.
* config/xtensa/xtensa.md (*addx, *subx): Change RTL pattern
to use 'ashift' instead of 'mult'. Update operands[3] value.

gcc/testsuite/
* gcc.target/xtensa/pr98285.c: New test.
gcc/config/xtensa/predicates.md
gcc/config/xtensa/xtensa.md
gcc/testsuite/gcc.target/xtensa/pr98285.c [new file with mode: 0644]