]> git.ipfire.org Git - thirdparty/gcc.git/commit
[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)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 18:07:36 +0000 (15:07 -0300)
commit64f4847779d982c3e10865f992c50d08347fdb3a
tree7d9d12ed289dce94fb3c9a08494aed819dd4da04
parent87a3c76d4674c5232acaa27698ce9d6b24566fdd
[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]