From d0bc68e1f40259230329e6709c72af187f72144c Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Wed, 11 Sep 2024 16:29:10 +0000 Subject: riscv64: Add node Rol, fix InstructionBuilder This reverts commit 744830cb242c82c4637e6fb303b36d0371c84979. Reason for revert: updated CHECKer test to use rolw instead of rol. Change-Id: I50e34c6ac69488a9c083f04c6382df4302e8e7d3 --- compiler/optimizing/nodes.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/nodes.cc') diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index 588f4d7ce2..32ae89eeea 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -1829,7 +1829,7 @@ HConstant* HBinaryOperation::TryStaticEvaluation(HInstruction* left, HInstructio } else if (left->IsLongConstant()) { if (right->IsIntConstant()) { // The binop(long, int) case is only valid for shifts and rotations. - DCHECK(IsShl() || IsShr() || IsUShr() || IsRor()) << DebugName(); + DCHECK(IsShl() || IsShr() || IsUShr() || IsRol() || IsRor()) << DebugName(); return Evaluate(left->AsLongConstant(), right->AsIntConstant()); } else if (right->IsLongConstant()) { return Evaluate(left->AsLongConstant(), right->AsLongConstant()); -- cgit v1.2.3-59-g8ed1b