File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1066,7 +1066,7 @@ static inline bool op_fp(struct riscv_t *rv, uint32_t insn)
1066
1066
}
1067
1067
case 0b0010100 :
1068
1068
switch (rm ) {
1069
- case 0b000 : /* FMIN */
1069
+ case 0b000 : { /* FMIN */
1070
1070
/*
1071
1071
In IEEE754-201x, fmin(x, y) return
1072
1072
- min(x,y) if both numbers are not NaN
@@ -1107,8 +1107,9 @@ static inline bool op_fp(struct riscv_t *rv, uint32_t insn)
1107
1107
}
1108
1108
}
1109
1109
break ;
1110
- case 0b001 : /* FMAX */
1111
-
1110
+ }
1111
+ case 0b001 :{ /* FMAX */
1112
+ uint32_t x , y ;
1112
1113
memcpy (& x , rv -> F + rs1 , 4 );
1113
1114
memcpy (& y , rv -> F + rs2 , 4 );
1114
1115
if (is_nan (x ) || is_nan (y )) {
@@ -1142,6 +1143,7 @@ static inline bool op_fp(struct riscv_t *rv, uint32_t insn)
1142
1143
1143
1144
1144
1145
break ;
1146
+ }
1145
1147
default :
1146
1148
rv_except_illegal_insn (rv , insn );
1147
1149
return false;
You can’t perform that action at this time.
0 commit comments