[llvm-commits] [llvm] r75982 - /llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td
Anton Korobeynikov
asl at math.spbu.ru
Thu Jul 16 07:07:07 PDT 2009
Author: asl
Date: Thu Jul 16 09:07:06 2009
New Revision: 75982
URL: http://llvm.org/viewvc/llvm-project?rev=75982&view=rev
Log:
Implement 64 bit immediates
Modified:
llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td
Modified: llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td?rev=75982&r1=75981&r2=75982&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td Thu Jul 16 09:07:06 2009
@@ -703,6 +703,10 @@
// FIXME: use add/sub tricks with 32678/-32768
+// Arbitrary immediate support. Implement in terms of LLIHF/OILF.
+def : Pat<(i64 imm:$imm),
+ (OR64rilo32 (MOV64rihi32 (HI32 imm:$imm)), (LO32 imm:$imm))>;
+
// trunc patterns
def : Pat<(i32 (trunc GR64:$src)),
(EXTRACT_SUBREG GR64:$src, subreg_32bit)>;
More information about the llvm-commits
mailing list