Skip to content

Commit 2764bd5

Browse files
committed
Set AESNI flags on x86
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
1 parent 1897135 commit 2764bd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/bin/mtest

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def toolchain(target, exit_on_failure=True):
301301
c_flags += " -mcpu=cortex-a78 -march=armv8.2-a+simd+crypto"
302302
elif target.arch.startswith("armv"):
303303
c_flags += " -march=" + target.arch
304-
if target.arch == "x86_64":
304+
if target.arch in {"x86", "x86_64"}:
305305
# Support AESNI intrinsics
306306
c_flags += " -mpclmul -msse2 -maes"
307307

@@ -330,8 +330,8 @@ def toolchain(target, exit_on_failure=True):
330330
c_flags += " --target=arm-linux-gnueabihf -march=armv8-a -maarch64"
331331
elif target.arch.startswith("mips") and "64" in target.arch:
332332
c_flags += f" --target={target.arch}-linux-gnuabi64"
333-
elif target.arch == "x86":
334-
c_flags += " --target=i686-linux-gnu"
333+
elif target.arch in {"x86", "x86_64"}:
334+
c_flags += " --target=i686-linux-gnu -mpclmul -msse2 -maes"
335335
elif target.arch in ["mips", "mipsel", "x86_64", "powerpc64le", "s390x", "riscv64"]:
336336
c_flags += f" --target={target.arch}-linux-gnu"
337337
else:

0 commit comments

Comments
 (0)