[testsuite] skip ARM neon-fp16 tests for other -mcpu values

Janis Johnson janisjo@codesourcery.com
Wed Jun 8 01:29:00 GMT 2011

These tests fail when multilib options use -mfpu=xxxx and override the
-mfpu=neon-fp16 used for the test:


The option -mfpu-neon-fp16 is added via "dg-add-options arm_neon_fp16"
after an earlier "dg-require-effective-target arm_neon_fp16_ok".
This patch modifies check_effective_target_arm_neon_fp16_ok_nocache to
return 0 (causing the test to be skipped) if multilib flags include
-mfpu= with a value other than neon-fp16.

Tested on arm-none-linux-gnueabi for several multilibs; these tests
are compile-only so it didn't matter that I didn't have runtime
support for them.

OK for trunk and 4.6 branch?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-20110607-3
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110608/7a68ebbb/attachment.ksh>

More information about the Gcc-patches mailing list