[MIPS GlobalISel] Select zero extending and sign extending load
commit7adf960acfc4b646749ae904227f1159d71ce263
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>
Thu, 24 Jan 2019 10:27:21 +0000 (24 10:27 +0000)
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>
Thu, 24 Jan 2019 10:27:21 +0000 (24 10:27 +0000)
tree55c5ff45480cad27ead3f4228b1875e5e15801f1
parent2e46a962e82297f2966c813c282d0c7ae7566792
[MIPS GlobalISel] Select zero extending and sign extending load

Select zero extending and sign extending load for MIPS32.
Use size from MachineMemOperand to determine number of bytes to load.

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

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