gcc: xtensa: implement bswapsi2, bswapdi2 and helpers
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 20 Dec 2020 10:23:12 +0000 (02:23 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Sun, 20 Dec 2020 22:02:26 +0000 (14:02 -0800)
commit18e86fae2a14f78e70aae06afce6bb9853068bb1
tree2d06b0068acea1f9ec4a2164a6b2a3b358eb045b
parent3621a7bb5795ad4e47b30e1a8a06f1abe2b3b036
gcc: xtensa: implement bswapsi2, bswapdi2 and helpers

2020-12-20  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
* config/xtensa/xtensa.md (bswapsi2, bswapdi2): New patterns.

gcc/testsuite/
* gcc.target/xtensa/bswap.c: New test.

libgcc/
* config/xtensa/lib1funcs.S (__bswapsi2, __bswapdi2): New
functions.
* config/xtensa/t-xtensa (LIB1ASMFUNCS): Add _bswapsi2 and
_bswapdi2.
gcc/config/xtensa/xtensa.md
gcc/testsuite/gcc.target/xtensa/bswap.c [new file with mode: 0644]
libgcc/config/xtensa/lib1funcs.S
libgcc/config/xtensa/t-xtensa