[PATCH] D114167: [asm] Allow block address operands in `asm inteldialect`
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 18 08:41:12 PST 2021
thakis created this revision.
thakis added a reviewer: hans.
Herald added subscribers: pengfei, hiraditya.
thakis requested review of this revision.
Herald added a project: LLVM.
This makes the following program build with -masm=intel:
int foo(int count) {
asm goto ("dec %0; jb %l[stop]" : "+r" (count) : : : stop);
return count;
stop:
return 0;
}
It's also is another step towards merging EmitGCCInlineAsmStr() and
EmitMSInlineAsmStr().
https://reviews.llvm.org/D114167
Files:
llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
llvm/test/CodeGen/X86/callbr-asm.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114167.388218.patch
Type: text/x-patch
Size: 5563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211118/f32c8192/attachment.bin>
More information about the llvm-commits
mailing list