mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-05 12:31:46 +00:00
Fix predicate for imm1_32
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137865 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5a1cd045cd
commit
ef3bf64bf8
@ -583,7 +583,10 @@ def imm1_32_XFORM: SDNodeXForm<imm, [{
|
||||
return CurDAG->getTargetConstant((int)N->getZExtValue() - 1, MVT::i32);
|
||||
}]>;
|
||||
def Imm1_32AsmOperand: AsmOperandClass { let Name = "Imm1_32"; }
|
||||
def imm1_32 : Operand<i32>, PatLeaf<(imm), [{ return Imm > 0 && Imm <= 32; }],
|
||||
def imm1_32 : Operand<i32>, PatLeaf<(imm), [{
|
||||
uint64_t Imm = N->getZExtValue();
|
||||
return Imm > 0 && Imm <= 32;
|
||||
}],
|
||||
imm1_32_XFORM> {
|
||||
let PrintMethod = "printImmPlusOneOperand";
|
||||
let ParserMatchClass = Imm1_32AsmOperand;
|
||||
|
Loading…
x
Reference in New Issue
Block a user