[PATCH] nvptx: Add support for PTX highpart multiplications (HI/SI)
authorRoger Sayle <roger@nextmovesoftware.com>
Tue, 4 Aug 2020 13:31:42 +0000 (15:31 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 4 Aug 2020 22:44:10 +0000 (00:44 +0200)
commit37a4c06f3dac9b0b831a8f34af73422aa4f42fbe
tree4138e044ce8fec52b2257ef0ef427a51f173768f
parent97def1f34c134d78d4423e9ac3e9b262417ea390
[PATCH] nvptx: Add support for PTX highpart multiplications (HI/SI)

This patch adds support for signed and unsigned, HImode and SImode highpart
multiplications to the nvptx backend.

This patch has been tested on nvptx-none hosted on x86_64-pc-linux-gnu
with a "make" and "make -k check" with no new failures with the
above patch.

2020-08-04  Roger Sayle  <roger@nextmovesoftware.com>

gcc/ChangeLog:

* config/nvptx/nvptx.md (smulhi3_highpart, smulsi3_highpart)
(umulhi3_highpart, umulsi3_highpart): New instructions.

gcc/testsuite/ChangeLog:

* gcc.target/nvptx/mul-hi.c: New test.
* gcc.target/nvptx/umul-hi.c: New test.
gcc/config/nvptx/nvptx.md
gcc/testsuite/gcc.target/nvptx/mul-hi.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nvptx/umul-hi.c [new file with mode: 0644]