]> granicus.if.org Git - llvm/commit
[mips][ias] Handle more complicated expressions for memory operands
authorSimon Dardis <simon.dardis@imgtec.com>
Tue, 18 Oct 2016 15:17:17 +0000 (15:17 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Tue, 18 Oct 2016 15:17:17 +0000 (15:17 +0000)
commit4ec176ab25c16b01a57489d2bed4f109af434f9b
tree2e5e2547643b75e12ed275006653e81dddea4a9e
parent8e2c689fe908e8ea548082b64ab4cce520a07be9
[mips][ias] Handle more complicated expressions for memory operands

This patch teaches ias for mips to handle expressions such as
(8*4)+(8*31)($sp). Such expression typically occur from the expansion
of multiple macro definitions.

This partially resolves PR/30383.

Thanks to Sean Bruno for reporting the issue!

Reviewers: zoran.jovanovic, vkalintiris

Differential Revision: https://reviews.llvm.org/D24667

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284485 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
test/MC/Mips/memory-offsets.s [new file with mode: 0644]