[PATCH][testsuite] Enable vect_usad_char effective target for non-SVE aarch64

Kyrill Tkachov kyrylo.tkachov@foss.arm.com
Tue Dec 18 11:40:00 GMT 2018


Hi all,

In GCC 9 the aarch64 port learned how to do V16QImode SAD operations on signed and unsigned chars.
But I had missed enabling the effective target for that.
This patch enables that target for non-SVE aarch64.
Two new tests now PASS on aarch64:
gcc.dg/vect/slp-reduc-sad.c
gcc.dg/vect/vect-reduc-sad.c

Ok for trunk?

Thanks,
Kyrill

P.S. I notice that powerpc and mips also implement the necessary optabs.
Perhaps the maintainers would like to check that the tests above pass on their appropriate (sub)targets and
enable this effective target appropriately.

2018-12-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * lib/target-supports.exp (check_effective_target_vect_usad_char):
     Add non-SVE aarch64 to supported list.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-usad.patch
Type: text/x-patch
Size: 696 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181218/be35d370/attachment.bin>


More information about the Gcc-patches mailing list