Skip to content

Commit

Permalink
Fix default float_status struct initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Cauquil committed Jan 10, 2024
1 parent 3ab836f commit e527538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qemu/target/rh850/fpu_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ target_ulong helper_fclass_s(uint64_t frs1)
} else if (float32_is_zero_or_denormal(f)) {
return sign ? 1 << 2 : 1 << 5;
} else if (float32_is_any_nan(f)) {
float_status s = { }; /* for snan_bit_is_one */
float_status s = { 0 }; /* for snan_bit_is_one */
return float32_is_quiet_nan(f, &s) ? 1 << 9 : 1 << 8;
} else {
return sign ? 1 << 1 : 1 << 6;
Expand Down Expand Up @@ -815,7 +815,7 @@ target_ulong helper_fclass_d(uint64_t frs1)
} else if (float64_is_zero_or_denormal(f)) {
return sign ? 1 << 2 : 1 << 5;
} else if (float64_is_any_nan(f)) {
float_status s = { }; /* for snan_bit_is_one */
float_status s = { 0 }; /* for snan_bit_is_one */
return float64_is_quiet_nan(f, &s) ? 1 << 9 : 1 << 8;
} else {
return sign ? 1 << 1 : 1 << 6;
Expand Down

0 comments on commit e527538

Please sign in to comment.