[mips] Support the "o" inline asm constraint
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 17 Jul 2019 08:11:15 +0000 (08:11 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 17 Jul 2019 08:11:15 +0000 (08:11 +0000)
commit7f308af5eeea2d1b24aee0361d39dc43bac4cfe5
tree81f19b961fd128f884ae7a95c3c438c85b76d83d
parentfc1c8f5d7d47139492ed9d6ef0df3c47eb1fbfd4
[mips] Support the "o" inline asm constraint

As well as other LLVM targets we do not handle "offsettable"
memory addresses in any special way. In other words, the "o" constraint
is an exact equivalent of the "m" one. But some existing code require
the "o" constraint support.

This fixes PR42589.

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

llvm-svn: 366299
llvm/lib/Target/Mips/MipsISelLowering.h
llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
llvm/test/CodeGen/Mips/inlineasm_constraint_o.ll [new file with mode: 0644]