[all-commits] [llvm/llvm-project] 9d4436: [llvm-mc] Default output assembly variant to Assem...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sat Mar 14 11:14:31 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9d4436e3f4dfecd9503e90fb4cba907c86103e1e
https://github.com/llvm/llvm-project/commit/9d4436e3f4dfecd9503e90fb4cba907c86103e1e
Author: Fangrui Song <i at maskray.me>
Date: 2026-03-14 (Sat, 14 Mar 2026)
Changed paths:
M llvm/test/MC/AArch64/cyclone-movi-bug.s
M llvm/test/MC/AsmParser/directive_seh.s
M llvm/test/MC/AsmParser/invalid-asm-variant.s
M llvm/test/MC/Disassembler/AArch64/arm64-crypto.txt
M llvm/test/MC/SystemZ/insn-good-zos-pcrel.s
M llvm/test/MC/X86/intel-syntax-32.s
M llvm/test/MC/X86/intel-syntax-branch.s
M llvm/test/MC/X86/intel-syntax-directional-label.s
M llvm/test/MC/X86/intel-syntax-hex.s
M llvm/test/MC/X86/intel-syntax-movabs-large.s
M llvm/test/MC/X86/intel-syntax-unsized-memory.s
M llvm/test/MC/X86/intel-syntax.s
M llvm/test/MC/X86/pr32530.s
M llvm/test/MC/X86/x86-32-ms-inline-asm.s
A llvm/test/tools/llvm-mc/x86-asm-syntax.test
M llvm/tools/llvm-mc/llvm-mc.cpp
Log Message:
-----------
[llvm-mc] Default output assembly variant to AssemblerDialect (#186317)
Previously, llvm-mc always defaulted to output assembly variant 0
regardless of the target's AssemblerDialect. This was inconsistent:
llvm-mc -x86-asm-syntax=intel changed the input parser to Intel syntax
but output stayed AT&T, unlike clang's -masm=intel which affects both.
When --output-asm-variant is not explicitly specified, fall back to
MAI->getAssemblerDialect() instead of hardcoding variant 0. This
makes the output match the target's configured dialect:
- X86: -x86-asm-syntax=intel now produces Intel output
- AArch64: Apple triples default to Apple syntax output
- SystemZ: z/OS triples default to HLASM syntax output
Tests that relied on a specific output variant now use explicit
--output-asm-variant=0.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list