1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

R600/SI: add constant for inline zero operand

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
llvm-svn: 175747
This commit is contained in:
Christian Konig 2013-02-21 15:16:49 +00:00
parent b5291fd25d
commit 3d59611438

View File

@ -49,9 +49,8 @@ class InlineImm <ValueType vt> : ImmLeaf <vt, [{
// SI assembler operands
//===----------------------------------------------------------------------===//
class SIOperand <ValueType vt, dag opInfo>: Operand <vt> {
let EncoderMethod = "encodeOperand";
let MIOperandInfo = opInfo;
def SIOperand {
int ZERO = 0x80;
}
class GPR4Align <RegisterClass rc> : Operand <vAny> {
@ -201,7 +200,7 @@ multiclass VOPC_Helper <bits<8> op, RegisterClass vrc, RegisterClass arc,
InstFlag:$omod, InstFlag:$neg),
opName, pattern
> {
let SRC2 = 0x80;
let SRC2 = SIOperand.ZERO;
}
}