Hi Jakub, > On Fri, Dec 08, 2017 at 01:47:35PM +0100, Rainer Orth wrote: >> >> the new testcase FAILs on Solaris/x86 with /bin/as: >> >> >> >> +FAIL: g++.dg/opt/pr83252.C -std=gnu++11 execution test >> >> +FAIL: g++.dg/opt/pr83252.C -std=gnu++14 execution test >> >> +FAIL: g++.dg/opt/pr83252.C -std=gnu++98 execution test >> >> >> >> ld.so.1: pr83252.exe: fatal: pr83252.exe: hardware capability >> >> (CA_SUNW_HW_2) unsupported: 0x80 [ BMI2 ] >> >> >> >> Inside gcc.target/i386, clearcap.exp takes care of that. >> > >> > This can't be in gcc.target/i386/, because the test has to be C++ (doesn't >> > fail in C). >> >> I see; hadn't checked... >> >> > So dg-skip-if on Solaris, or { target { bmi2 && { ! *-*-solaris* } } } for >> > the -mbmi2 option? >> >> ... or { dg-additional-options "-mclear-hwcap" { *-*-solaris* } } > > If it works, sure. I can't test it though.
it does if you add a "target" in the right place ;-) Tested on i386-pc-solaris2.11, sparc-sun-solaris2.11, and x86_64-pc-linux-gnu, installed on mainline. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University 2017-12-08 Rainer Orth <r...@cebitec.uni-bielefeld.de> * g++.dg/opt/pr83252.C: Add -mclear-hwcap on *-*-solaris*.
# HG changeset patch # Parent a1d6e5b19ac25366630bf95a1d1d9b333b0b47ca Disable hwcap on Solaris in g++.dg/opt/pr83252.C diff --git a/gcc/testsuite/g++.dg/opt/pr83252.C b/gcc/testsuite/g++.dg/opt/pr83252.C --- a/gcc/testsuite/g++.dg/opt/pr83252.C +++ b/gcc/testsuite/g++.dg/opt/pr83252.C @@ -2,6 +2,7 @@ // { dg-do run } // { dg-options "-O3" } // { dg-additional-options "-mbmi2 -mtune=intel" { target bmi2 } } +// { dg-additional-options "-mclear-hwcap" { target *-*-solaris* } } #if __SIZEOF_INT__ == 4 && __SIZEOF_LONG_LONG__ == 8 && __CHAR_BIT__ == 8