[llvm] [BOLT][Tests] Use AT&T assembler syntax only for X86 tests (PR #169541)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 25 10:06:00 PST 2025
https://github.com/maksfb created https://github.com/llvm/llvm-project/pull/169541
Enabling AT&T syntax for all tests is broken when X86 target is not enabled as reported in #167225.
>From 1974c2c2f9cddd418636f05c97e08336575509c7 Mon Sep 17 00:00:00 2001
From: Maksim Panchenko <maks at fb.com>
Date: Tue, 25 Nov 2025 09:59:57 -0800
Subject: [PATCH] [BOLT][Tests] Use AT&T assembler syntax only for X86 tests
Enabling AT&T syntax for all tests is broken when X86 target is not
enabled as reported in #167225.
---
bolt/test/X86/lit.local.cfg | 2 +-
bolt/test/lit.local.cfg | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bolt/test/X86/lit.local.cfg b/bolt/test/X86/lit.local.cfg
index ea9928d191884..680ebdd1eb6bf 100644
--- a/bolt/test/X86/lit.local.cfg
+++ b/bolt/test/X86/lit.local.cfg
@@ -1,7 +1,7 @@
if not "X86" in config.root.targets:
config.unsupported = True
-flags = "--target=x86_64-unknown-linux-gnu -nostdlib"
+flags = "--target=x86_64-unknown-linux-gnu -nostdlib -mllvm -x86-asm-syntax=att"
config.substitutions.insert(0, ("%cflags", f"%cflags {flags}"))
config.substitutions.insert(0, ("%cxxflags", f"%cxxflags {flags}"))
diff --git a/bolt/test/lit.local.cfg b/bolt/test/lit.local.cfg
index 78cc73e53b680..8a61d11f5825f 100644
--- a/bolt/test/lit.local.cfg
+++ b/bolt/test/lit.local.cfg
@@ -5,7 +5,7 @@ if not "linux" in host_triple:
host_triple = host_triple.split("-")[0] + "-unknown-linux-gnu"
common_linker_flags = "-fuse-ld=lld -Wl,--unresolved-symbols=ignore-all -Wl,--build-id=none -pie"
-flags = f"--target={host_triple} -fPIE {common_linker_flags} -mllvm -x86-asm-syntax=att"
+flags = f"--target={host_triple} -fPIE {common_linker_flags}"
config.substitutions.insert(0, ("%cflags", f"%cflags {flags}"))
config.substitutions.insert(0, ("%cxxflags", f"%cxxflags {flags}"))
More information about the llvm-commits
mailing list