Skip to content

Commit f7bffcb

Browse files
authored
fix build break of riscv (#114394)
1 parent a27c3cd commit f7bffcb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/coreclr/jit/emitriscv64.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3812,6 +3812,7 @@ void emitter::emitDispInsName(
38123812
switch (funct6)
38133813
{
38143814
case 0b011000:
3815+
{
38153816
static const char* names[] = {"clz", "ctz", "cpop"};
38163817
// shift amount is treated as additional funct opcode
38173818
if (shamt >= ARRAY_SIZE(names))
@@ -3820,7 +3821,7 @@ void emitter::emitDispInsName(
38203821
printLength = printf("%s", names[shamt]);
38213822
hasImmediate = false;
38223823
break;
3823-
3824+
}
38243825
case 0b000000:
38253826
printLength = printf("slli");
38263827
imm12 = shamt;
@@ -3910,14 +3911,15 @@ void emitter::emitDispInsName(
39103911
switch (funct7)
39113912
{
39123913
case 0b0110000:
3914+
{
39133915
static const char* names[] = {"clzw ", "ctzw ", "cpopw"};
39143916
// shift amount is treated as funct additional opcode bits
39153917
if (shamt >= ARRAY_SIZE(names))
39163918
return emitDispIllegalInstruction(code);
39173919

39183920
printf("%s %s, %s\n", names[shamt], rd, rs1);
39193921
return;
3920-
3922+
}
39213923
case 0b0000000:
39223924
printf("slliw %s, %s, %d\n", rd, rs1, shamt);
39233925
return;

0 commit comments

Comments
 (0)