]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite/97688 - fix check_vect () with __AVX2__
authorRichard Biener <rguenther@suse.de>
Tue, 3 Nov 2020 09:24:02 +0000 (10:24 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 3 Nov 2020 10:16:56 +0000 (11:16 +0100)
commit725244355f83de56f8692abc6c0e1b3d4d248198
tree2447c5d1ae355e15f7d3b3cf977656e48ea63044
parent217fb4d4e59e7d6e03a3704f80f401e2a641dbe5
testsuite/97688 - fix check_vect () with __AVX2__

This fixes the cpuid check to always specify a subleaf zero
which is required to detect AVX2 and doesn't hurt for level one.
Without this fix we get zero runtime coverage when -mavx2 is
specified.

2020-11-03  Richard Biener  <rguenther@suse.de>

PR testsuite/97688
* gcc.dg/vect/tree-vect.h (check_vect): Fix the x86 cpuid
check to always specify subleaf zero.

(cherry picked from commit 8414529156e0bca37647c440c71beeca1d04ac86)
gcc/testsuite/gcc.dg/vect/tree-vect.h