[llvm-bugs] [Bug 48159] New: Inline asm macros cannot replace	instructions
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Thu Nov 12 02:36:04 PST 2020
    
    
  
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: unassignedbugs at nondot.org
          Reporter: royger at freebsd.org
                CC: htmldeveloper at gmail.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201112/633636f5/attachment.html>
    
    
More information about the llvm-bugs
mailing list