[PATCH] nvptx: Add support for popcount and widening multiply instructions
authorRoger Sayle <roger@nextmovesoftware.com>
Fri, 3 Jul 2020 11:56:29 +0000 (12:56 +0100)
committerRoger Sayle <roger@nextmovesoftware.com>
Fri, 3 Jul 2020 11:56:29 +0000 (12:56 +0100)
commitce0f842492c30a0cff85d8b9b44ee5502bff3f09
tree15d359367d375427ec63a75f219afc8f612c631c
parent6c9e35a569f5a46fed7c8de6ac22545cb845a913
[PATCH] nvptx: Add support for popcount and widening multiply instructions

2020-07-01  Roger Sayle  <roger@nextmovesoftware.com>

gcc/ChangeLog:
* config/nvptx/nvptx.md (popcount<mode>2): New instructions.
(mulhishi3, mulsidi3, umulhisi3, umulsidi3): New instructions.

gcc/testsuite/ChangeLog:
* gcc.target/nvptx/popc-1.c: New test.
* gcc.target/nvptx/popc-2.c: New test.
* gcc.target/nvptx/popc-3.c: New test.
* gcc.target/nvptx/mul-wide.c: New test.
* gcc.target/nvptx/umul-wide.c: New test.
gcc/config/nvptx/nvptx.md
gcc/testsuite/gcc.target/nvptx/mul-wide.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nvptx/popc-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nvptx/popc-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nvptx/popc-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nvptx/umul-wide.c [new file with mode: 0644]