summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:26:38 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:26:38 +0000
commit70d0bceed6519d1b481c79f493e99f8ceab44ad9 (patch)
treecfeeeb1b42cbaff34e17a2ec2d437de9ec8e16db /llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
parent573fab1879d5a472fad4493b32e7c6a367dfb1e5 (diff)
downloadbcm5719-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.cpp6
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) {
OpenPOWER on IntegriCloud