This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Check AVX runtime support


On Thu, Jul 22, 2010 at 2:39 PM, Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
> "H.J. Lu" <hongjiu.lu@intel.com> writes:
>
>> -# Return 1 if avx instructions can be compiled.
>> +# Return 1 if avx instructions can be compiled and run.
>
> The corresponding sse/sse2 effective-target tests used separate sse and
> sse_runtime. ?AVX should be the same for symmetry.

check_effective_target_avx is used on runtime tests.

/* { dg-do run } */
/* { dg-require-effective-target avx } */

--
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-require-effective-target avx-runt-time } */
--

is redundant.

>> ?proc check_effective_target_avx { } {
>> - ? ?return [check_no_compiler_messages avx object {
>> - ? ? void _mm256_zeroall (void)
>> + ? ?return [check_runtime avx {
>> + ? ? #include <cpuid.h>
>> +
>> + ? ? /* Check if assembler accepts AVX instructons. ?*/
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?^ typo

I will fix it.

Thanks.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]