This patch adds a predicate to existing mips32 and mips64 so that those
authorAkira Hatanaka <ahatanaka@mips.com>
Tue, 22 May 2012 03:10:09 +0000 (03:10 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Tue, 22 May 2012 03:10:09 +0000 (03:10 +0000)
commit18f3c7809292fe6ebdce47d551f23d6ee216023f
tree5c81076eade0a78b0bcc4f4d4db78b0c2673c954
parenta7a2a3635f2fbe46d7d9074798e79e853f69d40b
This patch adds a predicate to existing mips32 and mips64 so that those
instruction encodings can be excluded during mips16 processing.

This revision fixes the issue raised by Jim Grosbach.

bool hasStandardEncoding() const { return !inMips16Mode(); }

When micromips is added it will be

bool StandardEncoding() const { return !inMips16Mode()&&  !inMicroMipsMode(); }

No additional testing is needed other than to assure that there is no regression
from this patch.

Patch by Reed Kotler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157234 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Mips64InstrInfo.td
lib/Target/Mips/MipsCondMov.td
lib/Target/Mips/MipsInstrFPU.td
lib/Target/Mips/MipsInstrFormats.td
lib/Target/Mips/MipsInstrInfo.td
lib/Target/Mips/MipsSubtarget.h