[testsuite] Clear hardware capabilities for gcc.dg/vect/vect-simd-clone-*.c

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Mon Jan 6 13:50:00 GMT 2014

The new gcc.dg/vect/vect-simd-clone-*.c tests were FAILing on Solaris
10+/x86 with Sun as:

FAIL: gcc.dg/vect/vect-simd-clone-1.c execution test

ld.so.1: vect-simd-clone-1.exe: fatal: vect-simd-clone-1.exe: hardware capability (CA_SUNW_HW_2) unsupported: 0x40  [ 0x40 ]

As can be seen in <sys/auxv_386.h>, this is:

#define AV2_386_AVX2            0x00040 /* Intel AVX2 insns */

Since the tests check for avx2 support at runtime, we need the same
solution as in gcc.target/i386: clear the hardware capabilities when
linking the executable.

Tested on i386-pc-solaris2.10 and x86_64-unknown-linux-gnu, installed on


2014-01-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.dg/vect/vect.exp: Add clearcap_ldflags to DEFAULT_VECTCFLAGS
	if supported.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: solx86-testsuite-vect-simd-clone.patch
Type: text/x-patch
Size: 1294 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140106/65ceaa9b/attachment.bin>
-------------- next part --------------

Rainer Orth, Center for Biotechnology, Bielefeld University

More information about the Gcc-patches mailing list