meson: fix AVX2 detection on x86
authorEll <ell_se@yahoo.com>
Tue, 30 Jul 2019 17:37:18 +0000 (20:37 +0300)
committerEll <ell_se@yahoo.com>
Tue, 30 Jul 2019 17:40:01 +0000 (20:40 +0300)
s/rax/eax/

meson.build

index 3a22e1b69a830cff30d494d6aedff9328aa0062b..9389b3f8001f52da09ad9a5c6372cce7ad514cfb 100644 (file)
@@ -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: