[PATCH] D149579: [X86][MC] Fix parsing Intel syntax indirect branch with symbol only
Alvin Wong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 3 05:41:37 PDT 2023
alvinhochun added a comment.
In D149579#4313475 <https://reviews.llvm.org/D149579#4313475>, @MaskRay wrote:
> It looks we accept a case (`t2`, w/o or with the patch) that GNU as rejects.
>
> % as -msyntax=intel =(printf 'call qword ptr [rip + fn_ref]') -o gas.o
> /tmp/zshjfuv2e: Assembler messages:
> /tmp/zshjfuv2e: Warning: end of file not at end of a line; newline inserted
> /tmp/zshjfuv2e:1: Error: invalid operands (*UND* and *UND* sections) for `+'
It does work if you add `.intel_syntax noprefix` to the assembly or pass `-mnaked-reg` to `as`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149579/new/
https://reviews.llvm.org/D149579
More information about the llvm-commits
mailing list