[PATCH] D149579: [X86][MC] Fix parsing Intel syntax indirect branch with identifier only

Alvin Wong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 1 04:31:15 PDT 2023


alvinhochun created this revision.
alvinhochun added reviewers: epastor, hans, thakis, MaskRay, ayzhao.
Herald added subscribers: pengfei, mstorsjo, hiraditya.
Herald added a project: All.
alvinhochun requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Clang on Windows targets often requires indirect calls through the
import address table (IAT), and also .refptr stubs for MinGW target.
On 32-bit this generates assembly in the form of `call dword ptr
[__imp__func]`, which MC had failed to handle correctly. 64-bit targets
are not affected because rip-relative addressing is used.

Reported on: https://github.com/llvm/llvm-project/issues/62010


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149579

Files:
  llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
  llvm/test/MC/X86/intel-syntax-branch.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149579.518422.patch
Type: text/x-patch
Size: 3125 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230501/819c24a0/attachment.bin>


More information about the llvm-commits mailing list