[nvptx] add select
Nathan Sidwell
nathan_sidwell@mentor.com
Tue Jun 23 13:11:00 GMT 2015
I've committed this PTX patch to add support for the selp instruction. It's
pretty much a direct implementation of 'r = a ? b : c'. This is sufficient for
combine(?) to generate selp instructions such as:
selp.u32 %r22, %r25, %r26, %r28;
selp.u32 %r22, %r25, 4, %r27;
selp.f32 %r22, %r25, %r26, %r28;
selp.f32 %r22, %r25, 0f40a00000, %r27;
Approved by Bernd off list.
--
Nathan Sidwell - Director, Sourcery Services - Mentor Embedded
-------------- next part --------------
A non-text attachment was scrubbed...
Name: select.patch
Type: text/x-patch
Size: 3618 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150623/271c6ee3/attachment.bin>
More information about the Gcc-patches
mailing list