From: Chris Lattner Date: Fri, 3 Nov 2006 23:53:25 +0000 (+0000) Subject: Describe PPC predicates, which are a pair of CR# and condition. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0638b260dcf691752cbff29d5183e89bf01132d1;p=oota-llvm.git Describe PPC predicates, which are a pair of CR# and condition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31438 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td index e28295f6ba3..02b066f5825 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.td +++ b/lib/Target/PowerPC/PPCInstrInfo.td @@ -255,6 +255,10 @@ def memrix : Operand { // memri where the imm is shifted 2 bits. let MIOperandInfo = (ops i32imm, ptr_rc); } +// PowerPC Predicate operand. 20 = always, CR0 is a dummy reg that doesn't +// matter. +def pred : PredicateOperand<(ops imm, CRRC), (ops 20, CR0)>; + // Define PowerPC specific addressing mode. def iaddr : ComplexPattern; def xaddr : ComplexPattern;