mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00: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> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c0b3a0d31
commit
7fa9957b16
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user