Skip to content

Commit 8ada2fd

Browse files
committed
Fixing code review remarks
1 parent cb2197f commit 8ada2fd

File tree

2 files changed

+93
-115
lines changed

2 files changed

+93
-115
lines changed

src/coreclr/vm/riscv64/cgencpu.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ class StubLinkerCPU : public StubLinker
355355
static bool isValidSimm12(int value) {
356356
return -( ((int)1) << 11 ) <= value && value < ( ((int)1) << 11 );
357357
}
358+
static bool isValidSimm13(int value) {
359+
return -(((int)1) << 12) <= value && value < (((int)1) << 12);
360+
}
358361
static bool isValidUimm20(int value) {
359362
return (0 == (value >> 20));
360363
}

0 commit comments

Comments
 (0)