From: Ana Pazos Date: Fri, 4 Oct 2019 23:42:07 +0000 (+0000) Subject: [RISCV] Added missing ImmLeaf predicates X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c866c44d66be8e330061867eca19858884373e46;p=llvm [RISCV] Added missing ImmLeaf predicates simm9_lsb0 and simm12_lsb0 operand types were missing predicates. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373812 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/RISCV/RISCVInstrInfoC.td b/lib/Target/RISCV/RISCVInstrInfoC.td index a8809a8fbad..fa0050f107b 100644 --- a/lib/Target/RISCV/RISCVInstrInfoC.td +++ b/lib/Target/RISCV/RISCVInstrInfoC.td @@ -137,7 +137,8 @@ def uimm8_lsb000 : Operand, } // A 9-bit signed immediate where the least significant bit is zero. -def simm9_lsb0 : Operand { +def simm9_lsb0 : Operand, + ImmLeaf(Imm);}]> { let ParserMatchClass = SImmAsmOperand<9, "Lsb0">; let EncoderMethod = "getImmOpValueAsr1"; let DecoderMethod = "decodeSImmOperandAndLsl1<9>"; @@ -196,7 +197,8 @@ def simm10_lsb0000nonzero : Operand, } // A 12-bit signed immediate where the least significant bit is zero. -def simm12_lsb0 : Operand { +def simm12_lsb0 : Operand, + ImmLeaf(Imm);}]> { let ParserMatchClass = SImmAsmOperand<12, "Lsb0">; let EncoderMethod = "getImmOpValueAsr1"; let DecoderMethod = "decodeSImmOperandAndLsl1<12>";