[LLVMbugs] [Bug 23697] New: ld/sd don't support some addressing modes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 29 09:07:47 PDT 2015


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

            Bug ID: 23697
           Summary: ld/sd don't support some addressing modes
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: MIPS
          Assignee: unassignedbugs at nondot.org
          Reporter: brooks at freebsd.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

FreeBSD's kernel exception handler code has fragments like:

REG_S   a3, CALLFRAME_RA + KERN_REG_SIZE(sp) # for debugging

which expands though a bunch of macros to this on mips64:

 sd $7, (((8 * 4) - 1 * 8) + (40 * 8))($29) # for debugging

clang with integrated assembler throws this error:

../../../mips/mips/exception.S:467:27: error: '(' expected
 sd $7, ((8 * 4) - 1 * 8) + (40 * 8)($29) # for debugging
                          ^
../../../mips/mips/exception.S:467:27: error: unexpected token in argument list
 sd $7, ((8 * 4) - 1 * 8) + (40 * 8)($29) # for debugging
                          ^
I've tried adding parenthesis around the macros, but the result is the same
failure to handle the +.

-- 
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/20150529/279fe2ea/attachment.html>


More information about the llvm-bugs mailing list