Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/wasm/literal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void Literal::printDouble(std::ostream& o, double d) {
return;
}
if (!std::isfinite(d)) {
o << (std::signbit(d) ? "-infinity" : "infinity");
o << (std::signbit(d) ? "-inf" : "inf");
return;
}
const char* text = cashew::JSPrinter::numToString(d);
Expand Down
8 changes: 4 additions & 4 deletions test/llvm_autogenerated/immediates.wast
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@
)
(func $inf_f32 (result f32)
(return
(f32.const infinity)
(f32.const inf)
)
)
(func $neginf_f32 (result f32)
(return
(f32.const -infinity)
(f32.const -inf)
)
)
(func $custom_nan_f32 (result f32)
Expand Down Expand Up @@ -155,12 +155,12 @@
)
(func $inf_f64 (result f64)
(return
(f64.const infinity)
(f64.const inf)
)
)
(func $neginf_f64 (result f64)
(return
(f64.const -infinity)
(f64.const -inf)
)
)
(func $custom_nan_f64 (result f64)
Expand Down