[MIPS GlobalISel] Legalize constants
authorPetar Jovanovic <petar.jovanovic@mips.com>
Wed, 17 Oct 2018 10:30:03 +0000 (10:30 +0000)
committerPetar Jovanovic <petar.jovanovic@mips.com>
Wed, 17 Oct 2018 10:30:03 +0000 (10:30 +0000)
commit8a08412533536cf433097817e9f155a4ce68252b
tree7ddb176b2a565ebc1dba4c1b36e2ddcb4b636c5c
parent64cfb74a61e097e64bc393008f44be53f942110e
[MIPS GlobalISel] Legalize constants

Legalize s1, s8, s16 and s64 G_CONSTANT for MIPS32.

Patch by Petar Avramovic.

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

llvm-svn: 344684
llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
llvm/test/CodeGen/Mips/GlobalISel/legalizer/constants.mir [new file with mode: 0644]
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/constants.ll [new file with mode: 0644]