[llvm-commits] [llvm] r144448 - /llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td

Akira Hatanaka ahatanaka at mips.com
Fri Nov 11 18:25:00 PST 2011


Author: ahatanak
Date: Fri Nov 11 20:25:00 2011
New Revision: 144448

URL: http://llvm.org/viewvc/llvm-project?rev=144448&view=rev
Log:
64-bit arbitrary immediate 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=144448&r1=144447&r2=144448&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td (original)
+++ llvm/trunk/lib/Target/Mips/Mips64InstrInfo.td Fri Nov 11 20:25:00 2011
@@ -215,6 +215,10 @@
 def : Pat<(i64 immZExt16:$in),
           (ORi64 ZERO_64, imm:$in)>;
 
+// Arbitrary immediates
+def : Pat<(i64 imm:$imm),
+          (ORi64 (LUi64 (HI16 imm:$imm)), (LO16 imm:$imm))>;
+
 // zextloadi32_u
 def : Pat<(zextloadi32_u addr:$a), (DSRL32 (DSLL32 (ULW64_P8 addr:$a), 0), 0)>,
       Requires<[IsN64]>;





More information about the llvm-commits mailing list