On 11/04/2022 13:03, Tamar Christina wrote:
They work fine in both GCC 11 and HEAD https://godbolt.org/z/Mxxz6qWbP
Did you actually enable the instructions?

Yes, as I said it uses the instructions, just not fully vectorized. Anyway, the problem was I needed -ffast-math to skip the NaN checks.

There are both SLP and LOOP variants in the testsuite. All the patterns are 
inside of a loop
The mul tests are generated from 
https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/gcc.dg/vect/complex/complex-mul-template.c

Where the tests that use of this template instructs the vectorizer to unroll 
some cases
and others they're kept as a loop. So both are tested in the testsuite.

Thanks. This is helpful. My grep skills clearly need work.

Andrew

Reply via email to