[llvm-commits] [llvm] r75964 - /llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td

Anton Korobeynikov asl at math.spbu.ru
Thu Jul 16 06:59:22 PDT 2009


Author: asl
Date: Thu Jul 16 08:59:18 2009
New Revision: 75964

URL: http://llvm.org/viewvc/llvm-project?rev=75964&view=rev
Log:
Bunch of sext_inreg patterns

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=75964&r1=75963&r2=75964&view=diff

==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZInstrInfo.td Thu Jul 16 08:59:18 2009
@@ -422,6 +422,20 @@
                        "mvghi\t{$dst, $src}",
                        [(store (i64 immSExt16:$src), riaddr:$dst)]>;
 
+// sexts
+def MOVSX32rr8  : Pseudo<(outs GR32:$dst), (ins GR32:$src),
+                         "lbr\t{$dst, $src}",
+                         [(set GR32:$dst, (sext_inreg GR32:$src, i8))]>;
+def MOVSX64rr8  : Pseudo<(outs GR64:$dst), (ins GR64:$src),
+                         "lgbr\t{$dst, $src}",
+                         [(set GR64:$dst, (sext_inreg GR64:$src, i8))]>;
+def MOVSX32rr16 : Pseudo<(outs GR32:$dst), (ins GR32:$src),
+                         "lhr\t{$dst, $src}",
+                         [(set GR32:$dst, (sext_inreg GR32:$src, i16))]>;
+def MOVSX64rr16 : Pseudo<(outs GR64:$dst), (ins GR64:$src),
+                         "lghr\t{$dst, $src}",
+                         [(set GR64:$dst, (sext_inreg GR64:$src, i16))]>;
+
 // extloads
 def MOVSX32rm8  : Pseudo<(outs GR32:$dst), (ins rriaddr:$src),
                          "lb\t{$dst, $src}",





More information about the llvm-commits mailing list