Hi,

the test case gfortran.dg/vect/pr32380.f was found to fail on 
armv7l-unknown-linux-gnueabihf.
The reason for this is that one out of 6 loops does not get vectorized, because 
this target does
not support a vectorization of sqrtf.

The same test case is known to fail on powerpc-apple-darwin9 due to a different 
reason, see PR52229.
On that target 5 out of 6 loops do not get vectorized, because of an alignment 
issue. That was solved
at that time by declaring some targets xfail.

This patch tries to solve the problem in a more general way, by classifying the 
target's expected
result by using vect_element_align and vect_call_sqrtf attributes.

This patch has been tested on armv7l-unknown-linux-gnueabihf, 
x86_64-unknown-linux-gnu and
powerpc-apple-darwin9.

OK for trunk?

Regards
Bernd.


P.S.: Many thanks to Dominique d'Humieres for reg-testing on 
powerpc-apple-darwin9.                                       

Attachment: patch-pr60236.diff
Description: Binary data

Reply via email to