[RFC] Feedback on approach for adding support for V8QI->V8HI widening patterns

Joel Hutton Joel.Hutton@arm.com
Mon Feb 1 17:54:04 GMT 2021


Hi Richard(s),

I'm just looking to see if I'm going about this the right way, based on the discussion we had on IRC. I've managed to hack something together, I've attached a (very) WIP patch which gives the correct codegen for the testcase in question (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98772). It would obviously need to support other widening patterns and differentiate between big/little endian among other things.

I added a backend pattern because I wasn't quite clear which changes to make in order to allow the existing backend patterns to be used with a V8QI, or how to represent V16QI where we don't care about the top/bottom 8. I made some attempt in optabs.c, which is in the patch commented out, but I'm not sure if I'm going about this the right way.

Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rb14102(1).patch
Type: text/x-patch
Size: 12072 bytes
Desc: rb14102(1).patch
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210201/64f2cb64/attachment-0001.bin>


More information about the Gcc-patches mailing list