[MIPS GlobalISel] NarrowScalar G_TRUNC
commite8918e11c1512a486001c53db92b46e6268bee85
authorPetar Avramovic <Petar.Avramovic@rt-rk.com>
Wed, 21 Aug 2019 09:26:39 +0000 (21 09:26 +0000)
committerPetar Avramovic <Petar.Avramovic@rt-rk.com>
Wed, 21 Aug 2019 09:26:39 +0000 (21 09:26 +0000)
treee618837bf5c355a63fe2fff2136e1935f57095d6
parent916ce6033a8cc2e52f17e675fa3cc40778e2f20a
[MIPS GlobalISel] NarrowScalar G_TRUNC

Add NarrowScalar for G_TRUNC when NarrowTy is half the size of source.
NarrowScalar G_TRUNC to s32 for MIPS32.

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

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