[libcxx-commits] [libcxxabi] [libunwind] [NFCI][test][asm] Enable AT&T syntax explicitly (PR #166818)

Raul Tambre via libcxx-commits libcxx-commits at lists.llvm.org
Sun Nov 9 04:12:18 PST 2025


tambry wrote:

@nico Unfortunately that also changes the default syntax for `asm()` blocks in code, which is untenable as too much existing software is written with no explicit declaration assuming AT&T syntax. I haven't tried but I'm fairly certain LLVM itself wouldn't build like that either.

Frankly `-mllvm -x86-asm-syntax=intel` isn't ideal either due to changing the default syntax for standalone assembly files to Intel, while ideally I'd just like Clang's output assembly when debugging issues (i.e. `clang -S`) to be Intel. But alas, this is the closest and the internals seem quite intertwined so fixing the few affected cases in LLVM tests is much easier (and one could argue anyway that being explicit is better).

https://github.com/llvm/llvm-project/pull/166818


More information about the libcxx-commits mailing list