gcc: xtensa: add optimizations for shift operations
authorTakayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
Wed, 16 Dec 2020 20:53:56 +0000 (12:53 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 17 Dec 2020 01:53:17 +0000 (17:53 -0800)
commit40bf68bbe0bdba305fde4ab825a06c085ba486fc
tree102d8e711fc224404804ceb28fc26076c6efd15d
parenteefe499fdf772573342110185e131f8e4b998997
gcc: xtensa: add optimizations for shift operations

2020-12-16  Takayuki 'January June' Suwa  <jjsuwa_sys3175@yahoo.co.jp>
gcc/
* config/xtensa/xtensa.md (*ashlsi3_1, *ashlsi3_3x, *ashrsi3_3x)
(*lshrsi3_3x): New patterns.

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