From 816b7b1279325462f75733b0f30f7337d4236dc0 Mon Sep 17 00:00:00 2001 From: Frank Barchard Date: Thu, 29 Mar 2018 18:47:14 -0700 Subject: [PATCH] Add __attribute__ ((__target__ ("avx512vbmi"))) Bug: libyuv:789 Test: builds locally on linux with clang Change-Id: I3000494d4b0b18f59d7852bc1bc0c9e422d2d63a Reviewed-on: https://chromium-review.googlesource.com/987331 Reviewed-by: richard winterton --- source/row_gcc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/row_gcc.cc b/source/row_gcc.cc index 8d3cb81ce..1af5e8a21 100644 --- a/source/row_gcc.cc +++ b/source/row_gcc.cc @@ -569,7 +569,8 @@ static const ulvec8 kPermARGBToRGB24_2 = { 36u, 37u, 38u, 40u, 41u, 42u, 44u, 45u, 46u, 48u, 49u, 50u, 52u, 53u, 54u, 56u, 57u, 58u, 60u, 61u, 62u}; -void ARGBToRGB24Row_AVX512VBMI(const uint8_t* src, uint8_t* dst, int width) { +void __attribute__ ((__target__ ("avx512vbmi"))) + ARGBToRGB24Row_AVX512VBMI(const uint8_t* src, uint8_t* dst, int width) { asm volatile( "vmovdqa %3,%%ymm5 \n" "vmovdqa %4,%%ymm6 \n"