[PATCH] D149579: [X86][MC] Fix parsing Intel syntax indirect branch with symbol only
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 2 13:20:55 PDT 2023
MaskRay added a comment.
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 gcc.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 `+'
We parse it as `callq *fn_ref(%rip)`.
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