Skip to content

Commit 542f122

Browse files
committed
Revert to prefer-vector-width since Intel dropped avx10-256
1 parent 0f8e7f9 commit 542f122

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ ifeq ($(COMP),gcc)
5353
CFLAGS += -m64 -march=x86-64-v3 -DUSE_GAS_X64 -DPOPCOUNT
5454
endif
5555
ifeq ($(ARCH),x86-64-v4)
56-
# use -mprefer-vector-width=256 instead of -mno-evex512 for gcc-13 and earlier
57-
CFLAGS += -m64 -march=x86-64-v4 -mno-evex512 -DUSE_GAS_X64 -DPOPCOUNT
56+
CFLAGS += -m64 -march=x86-64-v4 -mprefer-vector-width=256 -DUSE_GAS_X64 -DPOPCOUNT
5857
endif
5958
ifeq ($(ARCH),x86-64-v2)
6059
CFLAGS += -m64 -mpopcnt -mtune=generic -DUSE_GAS_X64 -DPOPCOUNT
@@ -178,8 +177,7 @@ ifeq ($(COMP),clang)
178177
CFLAGS += -m64 -march=x86-64-v3 -DUSE_GAS_X64 -DPOPCOUNT
179178
endif
180179
ifeq ($(ARCH),x86-64-v4)
181-
# use -mprefer-vector-width=256 instead of -mno-evex512 for clang-17 and earlier
182-
CFLAGS += -m64 -march=x86-64-v4 -mno-evex512 -DUSE_GAS_X64 -DPOPCOUNT
180+
CFLAGS += -m64 -march=x86-64-v4 -mprefer-vector-width=256 -DUSE_GAS_X64 -DPOPCOUNT
183181
endif
184182
ifeq ($(ARCH),x86-64-v2)
185183
CFLAGS += -m64 -mpopcnt -DUSE_GAS_X64 -DPOPCOUNT

0 commit comments

Comments
 (0)