diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:26:38 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:26:38 +0000 |
| commit | 70d0bceed6519d1b481c79f493e99f8ceab44ad9 (patch) | |
| tree | cfeeeb1b42cbaff34e17a2ec2d437de9ec8e16db /llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp | |
| parent | 573fab1879d5a472fad4493b32e7c6a367dfb1e5 (diff) | |
| download | bcm5719-llvm-70d0bceed6519d1b481c79f493e99f8ceab44ad9.tar.gz bcm5719-llvm-70d0bceed6519d1b481c79f493e99f8ceab44ad9.zip | |
Unbreak mvi and friends - emit only 'significant' part of the operand
llvm-svn: 76041
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp')
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp b/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp index 570d3548022..4fccbf25639 100644 --- a/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp +++ b/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp @@ -103,6 +103,12 @@ namespace { return "SystemZ DAG->DAG Pattern Instruction Selection"; } + /// getI8Imm - Return a target constant with the specified value, of type + /// i8. + inline SDValue getI8Imm(uint64_t Imm) { + return CurDAG->getTargetConstant(Imm, MVT::i8); + } + /// getI16Imm - Return a target constant with the specified value, of type /// i16. inline SDValue getI16Imm(uint64_t Imm) { |

