aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 13:59:18 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 13:59:18 +0000
commit6c312736d93248cd8318ab3f9b0eb378146c0add (patch)
treed7a922826a4e02e1c63ceb6ede027893f95aee3b /lib
parent5a66c382a34e7718d60606fd4af545eaa7895dee (diff)
downloadexternal_llvm-6c312736d93248cd8318ab3f9b0eb378146c0add.zip
external_llvm-6c312736d93248cd8318ab3f9b0eb378146c0add.tar.gz
external_llvm-6c312736d93248cd8318ab3f9b0eb378146c0add.tar.bz2
Bunch of sext_inreg patterns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SystemZ/SystemZInstrInfo.td14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.td b/lib/Target/SystemZ/SystemZInstrInfo.td
index c194e75..1f38223 100644
--- a/lib/Target/SystemZ/SystemZInstrInfo.td
+++ b/lib/Target/SystemZ/SystemZInstrInfo.td
@@ -422,6 +422,20 @@ def MOV64mi16 : Pseudo<(outs), (ins riaddr:$dst, i64imm:$src),
"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}",