From: Ell Date: Tue, 30 Jul 2019 17:37:18 +0000 (+0300) Subject: meson: fix AVX2 detection on x86 X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~11^2~40 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2fa0be1b3ba3f0256d12c6b37e2bb39baf237364;p=babl.git meson: fix AVX2 detection on x86 s/rax/eax/ --- diff --git a/meson.build b/meson.build index 3a22e1b..9389b3f 100644 --- a/meson.build +++ b/meson.build @@ -219,7 +219,7 @@ if cc.has_argument('-mmmx') and get_option('enable-mmx') # avx2 assembly if cc.has_argument('-mavx2') and get_option('enable-avx2') - if cc.compiles('asm ("vpgatherdd %ymm0,(%rax,%ymm1,4),%ymm2");') + if cc.compiles('asm ("vpgatherdd %ymm0,(%eax,%ymm1,4),%ymm2");') message('avx2 assembly available') avx2_cflags = '-mavx2' conf.set('USE_AVX2', 1, description: