diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 13:59:18 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 13:59:18 +0000 |
| commit | ff1edc23ac3679f150c3f17a34261201044ea4f4 (patch) | |
| tree | 81a047c3b4beda44ea6062a56ddae54c8f421caf | |
| parent | c3170f52364e455dfbb185a88317a772ea45d6bf (diff) | |
| download | bcm5719-llvm-ff1edc23ac3679f150c3f17a34261201044ea4f4.tar.gz bcm5719-llvm-ff1edc23ac3679f150c3f17a34261201044ea4f4.zip | |
Bunch of sext_inreg patterns
llvm-svn: 75964
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZInstrInfo.td | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrInfo.td b/llvm/lib/Target/SystemZ/SystemZInstrInfo.td index c194e7505f7..1f3822307b1 100644 --- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.td +++ b/llvm/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}", |

