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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs