[PATCH] Add testcase for PR83252 (was Re: patch to fix PR80818)

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Fri Dec 8 12:47:00 GMT 2017


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



More information about the Gcc-patches mailing list