summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 13:33:57 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 13:33:57 +0000
commit89edcd0927aa56584686c94bbb6914ce9f445e3a (patch)
tree54cebd14bffa4c22f6a3a66e17fea4855a900229 /lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
parentc79629536a15673eecfa40ed34985a6d08aca757 (diff)
downloadllvm-89edcd0927aa56584686c94bbb6914ce9f445e3a.tar.gz
llvm-89edcd0927aa56584686c94bbb6914ce9f445e3a.tar.bz2
llvm-89edcd0927aa56584686c94bbb6914ce9f445e3a.tar.xz
Provide masked reg-imm 'or' and 'and'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZISelDAGToDAG.cpp')
-rw-r--r--lib/Target/SystemZ/SystemZISelDAGToDAG.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp b/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
index 9b9eeb2abe..e4df02be06 100644
--- a/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
+++ b/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
@@ -50,8 +50,14 @@ namespace {
return "SystemZ DAG->DAG Pattern Instruction Selection";
}
+ /// getI16Imm - Return a target constant with the specified value, of type
+ /// i16.
+ inline SDValue getI16Imm(uint64_t Imm) {
+ return CurDAG->getTargetConstant(Imm, MVT::i16);
+ }
+
// Include the pieces autogenerated from the target description.
- #include "SystemZGenDAGISel.inc"
+ #include "SystemZGenDAGISel.inc"
private:
SDNode *Select(SDValue Op);