[llvm-commits] [llvm] r143988 - /llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td
Akira Hatanaka
ahatanaka at mips.com
Mon Nov 7 10:57:41 PST 2011
Author: ahatanak
Date: Mon Nov 7 12:57:41 2011
New Revision: 143988
URL: http://llvm.org/viewvc/llvm-project?rev=143988&view=rev
Log:
Add 64-bit to 32-bit trunc pattern.
Modified:
llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td
Modified: llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td?rev=143988&r1=143987&r2=143988&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td (original)
+++ llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td Mon Nov 7 12:57:41 2011
@@ -172,3 +172,8 @@
defm : SetgtPats<CPU64Regs, SLT64, SLTu64>;
defm : SetgePats<CPU64Regs, SLT64, SLTu64>;
defm : SetgeImmPats<CPU64Regs, SLTi64, SLTiu64>;
+
+// truncate
+def : Pat<(i32 (trunc CPU64Regs:$src)),
+ (SLL (EXTRACT_SUBREG CPU64Regs:$src, sub_32), 0)>, Requires<[IsN64]>;
+
More information about the llvm-commits
mailing list