OSDN Git Service

[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)
commit2ac1bfd36616bab1c0d26bd03e2b4886e3ca2c69
tree33d8f62001a1c86e837b2b1b6242309c74d2df1f
parent13d322459aba24ea374aca998b814ea904587b70
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352351 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
lib/Target/Mips/MipsLegalizerInfo.cpp
lib/Target/Mips/MipsRegisterBankInfo.cpp
test/CodeGen/Mips/GlobalISel/instruction-select/sub.mir [new file with mode: 0644]
test/CodeGen/Mips/GlobalISel/legalizer/sub.mir [new file with mode: 0644]
test/CodeGen/Mips/GlobalISel/llvm-ir/sub.ll [new file with mode: 0644]
test/CodeGen/Mips/GlobalISel/regbankselect/sub.mir [new file with mode: 0644]