https://bugs.llvm.org/show_bug.cgi?id=48159
Bug ID: 48159
Summary: Inline asm macros cannot replace instructions
Product: new-bugs
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedb...@nondot.org
Reporter: roy...@freebsd.org
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org
Hello,
Inline asm macros are not able to replace instructions, see:
void test(void) {
asm volatile (".macro ret; .error; .endm; .macro retq; .error; .endm");
}
Trying to build the following snippet with gcc will trigger the .error
directive, while it builds fine with all versions of clang I've tested with.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs