summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZOperands.td
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-07-25 09:04:52 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-07-25 09:04:52 +0000
commitcf20e45cc4cb77bcb16363531e600883cd27ff80 (patch)
treecebffed322b6409d23f5b236e86b1faab811143a /lib/Target/SystemZ/SystemZOperands.td
parentb284e1bf08d24deb20b7deab71fce6f3034cc89a (diff)
downloadllvm-cf20e45cc4cb77bcb16363531e600883cd27ff80.tar.gz
llvm-cf20e45cc4cb77bcb16363531e600883cd27ff80.tar.bz2
llvm-cf20e45cc4cb77bcb16363531e600883cd27ff80.tar.xz
[SystemZ] Add LOC and LOCG
As with the stores, these instructions can trap when the condition is false, so they are only used for things like (cond ? x : *ptr). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZOperands.td')
-rw-r--r--lib/Target/SystemZ/SystemZOperands.td9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZOperands.td b/lib/Target/SystemZ/SystemZOperands.td
index 9d79439228..696ec4f15a 100644
--- a/lib/Target/SystemZ/SystemZOperands.td
+++ b/lib/Target/SystemZ/SystemZOperands.td
@@ -111,6 +111,15 @@ class BDLMode<string type, string bitsize, string dispsize, string suffix,
!cast<Immediate>("imm"##bitsize))>;
//===----------------------------------------------------------------------===//
+// Manipulating CC masks
+//===----------------------------------------------------------------------===//
+
+def INVCC : SDNodeXForm<imm, [{
+ unsigned Value = N->getZExtValue() ^ SystemZ::CCMASK_ANY;
+ return CurDAG->getTargetConstant(Value, MVT::i8);
+}]>;
+
+//===----------------------------------------------------------------------===//
// Extracting immediate operands from nodes
// These all create MVT::i64 nodes to ensure the value is not sign-extended
// when converted from an SDNode to a MachineOperand later on.