Open lhmouse opened 5 days ago
@llvm/issue-subscribers-clang-driver
Author: LIU Hao (lhmouse)
Created #109360 to allow AT&T input and Intel output using: echo 'asm("mov $1, %eax");' | clang -xc - -S -o - -Xclang --output-asm-variant=1
.
-x86-asm-syntax=intel
is for input assembly used for tools like llvm-mc, not Clang.
echo 'asm("mov $1, %eax");' | clang -x c - -mllvm --x86-asm-syntax=intel -S -o -
, which achieves a similar goal before Clang 19, was unintended.
@MaskRay Do you have any idea whether this has something to do with https://github.com/llvm/llvm-project/pull/85367 ?
I appreciate your comment.
Hello,
I personally use Clang to translate x86 assembly between AT&T syntax and Intel syntax. Clang 18- can compile AT&T syntax to Intel syntax, as in
but Clang 19 fails to parse the source. It seems to expect Intel syntax:
@MaskRay Do you have any idea whether this has something to do with #85367 ?