[PATCH] nvptx: Add support for PTX highpart multiplications (e.g. mul.hi.s32)

Tom de Vries tdevries@suse.de
Tue Aug 4 22:48:02 GMT 2020


On 8/4/20 2:20 PM, Roger Sayle wrote:
> 
> This patch adds support for signed and unsigned, HImode, SImode and
> DImode highpart multiplications to the nvptx backend.  Without the
> middle-end patch that I've just posted, the middle-end is able to
> (easily) make use of the narrow four of the six instructions, but
> with that patch, all six of these instructions are generated in the
> provided test cases.
> 
> 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, and just the two failures to find mul.hi.?64 against
> current mainline.  I'd considered submitting this patch either without
> support for the 64bit variants, or without tests for them, but it
> seemed more reasonable to make both enhancements at the same time.
> 
> Ok for mainline (once the previous patch has been approved/pushed)?

I've committed the HImode/SImode part of the patches (as attached below).

DImode part is OK once the respective tests starts passing.

Thanks,
- Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PATCH-nvptx-Add-support-for-PTX-highpart-multiplications-HI-SI.patch
Type: text/x-patch
Size: 3830 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200805/a86fd055/attachment.bin>


More information about the Gcc-patches mailing list