[llvm-bugs] [Bug 41053] New: Recursive use of .set crashes the MIPS backend

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 13 07:59:37 PDT 2019


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

            Bug ID: 41053
           Summary: Recursive use of .set crashes the MIPS backend
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: MIPS
          Assignee: unassignedbugs at nondot.org
          Reporter: arichardson.kde at gmail.com
                CC: llvm-bugs at lists.llvm.org

.set A, A + 1
.word A # <- causes an infinite recursion and a stack overflow
dli $a0, A  # same here

It only breaks if you forget to initialize A. This works for example:
.set A, 0
.set A, A+1
dli $a0, A

The first should probably be an error.

I noticed that this only fails with `llvm-mc -triple mips-unknown-linux-gnu
-show-inst %s` but `llvm-mc -triple x86_64-unknown-linux-gnu -show-inst %s`
gives me the following: error: Recursive use of 'A' in '.set' directive

-- 
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/20190313/016d6399/attachment-0001.html>


More information about the llvm-bugs mailing list