From: Christian Konig Date: Thu, 21 Feb 2013 15:16:49 +0000 (+0000) Subject: R600/SI: add constant for inline zero operand X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7fa9957b16ee314b294da8abbec70bd2f1dfa608;p=oota-llvm.git R600/SI: add constant for inline zero operand Signed-off-by: Christian König Reviewed-by: Tom Stellard Reviewed-by: Michel Dänzer git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175747 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/R600/SIInstrInfo.td b/lib/Target/R600/SIInstrInfo.td index cf0d5b936ae..8b90d45645c 100644 --- a/lib/Target/R600/SIInstrInfo.td +++ b/lib/Target/R600/SIInstrInfo.td @@ -49,9 +49,8 @@ class InlineImm : ImmLeaf : Operand { - let EncoderMethod = "encodeOperand"; - let MIOperandInfo = opInfo; +def SIOperand { + int ZERO = 0x80; } class GPR4Align : Operand { @@ -201,7 +200,7 @@ multiclass VOPC_Helper op, RegisterClass vrc, RegisterClass arc, InstFlag:$omod, InstFlag:$neg), opName, pattern > { - let SRC2 = 0x80; + let SRC2 = SIOperand.ZERO; } }