This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add testcase for PR83252 (was Re: patch to fix PR80818)
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Vladimir Makarov <vmakarov at redhat dot com>, "gcc-patches\@gcc.gnu.org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 08 Dec 2017 13:47:35 +0100
- Subject: Re: [PATCH] Add testcase for PR83252 (was Re: patch to fix PR80818)
- Authentication-results: sourceware.org; auth=none
- References: <c5cb9cb6-be94-2472-563c-e3234c7bfb70@redhat.com> <20171204105201.GM2353@tucnak> <ydd4lp1gzsj.fsf@CeBiTec.Uni-Bielefeld.DE> <20171208124341.GS2353@tucnak>
Hi Jakub,
>> 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* } }
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University