summaryrefslogtreecommitdiff
path: root/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
commitb6831cb044a7f3dccd5ad80cd36b98175b9646ad (patch)
treece428c7fa21d5eceb70356476b7677226cf0a1c9 /lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
parent98db78a28b73d01af809be71cbacc9f4093acd74 (diff)
downloadllvm-b6831cb044a7f3dccd5ad80cd36b98175b9646ad.tar.gz
llvm-b6831cb044a7f3dccd5ad80cd36b98175b9646ad.tar.bz2
llvm-b6831cb044a7f3dccd5ad80cd36b98175b9646ad.tar.xz
Unbreak mvi and friends - emit only 'significant' part of the operand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZISelDAGToDAG.cpp')
-rw-r--r--lib/Target/SystemZ/SystemZISelDAGToDAG.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp b/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
index 570d354802..4fccbf2563 100644
--- a/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
+++ b/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) {