[MIPS GlobalISel] Select sub
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>
Mon, 28 Jan 2019 12:10:17 +0000 (12:10 +0000)
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>
Mon, 28 Jan 2019 12:10:17 +0000 (12:10 +0000)
commit7cecadb9afdff13b6e2e23b3a3966de9e94af05d
tree6c117eac69ad482866500ccef0d99c7e86e7c475
parent8ebffb4b82ef5b4ae230fc3893e56314c3dede95
[MIPS GlobalISel] Select sub

Lower G_USUBO and G_USUBE. Add narrowScalar for G_SUB.
Legalize and select G_SUB for MIPS 32.

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

llvm-svn: 352351
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp
llvm/test/CodeGen/Mips/GlobalISel/instruction-select/sub.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/legalizer/sub.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/sub.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/regbankselect/sub.mir [new file with mode: 0644]