[mips] Make isel select the correct DEXT variant up front.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 29 Feb 2016 15:26:54 +0000 (15:26 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 29 Feb 2016 15:26:54 +0000 (15:26 +0000)
commit611eb829532da35c19f6ac85818eae06e5534b5e
tree6a051d6da2fc59249e0fcf811dab54b73ff1f512
parent2c7cdd25ee6e1f3f6ff67aa035f1b5174581c132
[mips] Make isel select the correct DEXT variant up front.

Summary:
Previously, it would always select DEXT and substitute any invalid matches
for DEXTU/DEXTM during MipsMCCodeEmitter::encodeInstruction(). This works
but causes problems when adding range checked immediates to IAS.

Now isel selects the correct variant up front.

Reviewers: vkalintiris

Subscribers: dsanders, llvm-commits

Differential Revision: http://reviews.llvm.org/D16810

llvm-svn: 262229
llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
llvm/lib/Target/Mips/MicroMips64r6InstrInfo.td
llvm/lib/Target/Mips/MicroMipsInstrInfo.td
llvm/lib/Target/Mips/Mips64InstrInfo.td
llvm/lib/Target/Mips/MipsInstrInfo.td
llvm/test/CodeGen/Mips/fcopysign-f32-f64.ll
llvm/test/CodeGen/Mips/fcopysign.ll
llvm/test/CodeGen/Mips/mips64extins.ll
llvm/test/MC/Mips/micromips64r6/invalid.s
llvm/test/MC/Mips/mips64r2/invalid.s