[committed, amdgcn] Add sub-dword add/sub patterns

Andrew Stubbs ams@codesourcery.com
Thu Dec 19 14:06:00 GMT 2019


This patch add vector add and sub instruction patterns for V64QI and 
V64HI modes.

The instructions used are actually 32-bit as GCN does not support 
sub-dword operations in this way, but I believe it ought to be safe for 
these operations, provided that the excess bits are ignored properly 
elsewhere.

This results in 80 new test passes. There are a few regressions from 
vectorization tests that took a different code path and encountered 
another missing instruction.

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 191219-subdword-add-sub.patch
Type: text/x-patch
Size: 2674 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191219/efa7c542/attachment.bin>


More information about the Gcc-patches mailing list