[simd] Enable GCC avx2 target if HB_SIMD_AVX2 is defined
This commit is contained in:
parent
0033641189
commit
c799742ac1
|
@ -83,7 +83,6 @@
|
||||||
* = WHICH EXTENSIONS TO TARGET
|
* = WHICH EXTENSIONS TO TARGET
|
||||||
*
|
*
|
||||||
* There are four vector extensions that matter for integer work like we need:
|
* There are four vector extensions that matter for integer work like we need:
|
||||||
* On x86 those are:
|
|
||||||
*
|
*
|
||||||
* On x86 / x86_64 (Intel / AMD), those are (in order of introduction):
|
* On x86 / x86_64 (Intel / AMD), those are (in order of introduction):
|
||||||
*
|
*
|
||||||
|
@ -178,8 +177,11 @@
|
||||||
* Choose intrinsics set to use.
|
* Choose intrinsics set to use.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#if !defined(HB_NO_SIMD) && (defined(HB_SIMD_AVX2) || defined(__AVX2__))
|
#if !defined(HB_NO_SIMD) && (defined(HB_SIMD_AVX2) || defined(__AVX2__))
|
||||||
|
|
||||||
|
#pragma GCC target("avx2")
|
||||||
|
|
||||||
#include <x86intrin.h>
|
#include <x86intrin.h>
|
||||||
|
|
||||||
/* TODO: Test -mvzeroupper. */
|
/* TODO: Test -mvzeroupper. */
|
||||||
|
|
Loading…
Reference in New Issue