[llvm-bugs] [Bug 40728] New: AsmParser: Basename is not correct for atomic.notify

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 13 18:34:30 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40728

            Bug ID: 40728
           Summary: AsmParser: Basename is not correct for atomic.notify
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedbugs at nondot.org
          Reporter: aheejin at gmail.com
                CC: llvm-bugs at lists.llvm.org

For `atomic.notify` instruction from the thread proposal, the routine that
computes the basename of an instruction seems incorrect:
https://github.com/llvm/llvm-project/blob/c18e9ecd4fc1f8bce7cf1ad0a63cb64a3fc40040/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp#L408-L410

Here, if there's a '.' in the name, it assumes the second part to be the
basename, which does not work for 'atomic.notify', causing it unable to be
parsed by AsmParser. Possibly there can be other instructions that triggers the
same bug, but haven't checked.

-- 
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/20190214/2400c478/attachment.html>


More information about the llvm-bugs mailing list