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: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Current Trunk
- Replace the `BINARYEN_ROOT` environment variable (used by developers who are
doing out-of-tree builds of binaryen) with `BINARYEN_BIN` (#9023)
- Reject non-natural alignment for atomic memory operations at parse time (#8962)
- Note that fast-math mode can ignore the difference between negative zero and
zero (like clang and gcc). (#9056)

v132
----
Expand Down
3 changes: 2 additions & 1 deletion src/tools/optimization-options.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ struct OptimizationOptions : public ToolOptions {
.add(
"--fast-math",
"-ffm",
"Optimize floats without handling corner cases of NaNs and rounding",
"Optimize floats without handling corner cases of NaNs, rounding, and "
"negative zero",
OptimizationOptionsCategory,
Options::Arguments::Zero,
[this](Options*, const std::string&) { passOptions.fastMath = true; })
Expand Down
4 changes: 2 additions & 2 deletions test/lit/help/wasm-metadce.test
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@
;; CHECK-NEXT: application
;; CHECK-EMPTY:
;; CHECK-NEXT: --fast-math,-ffm Optimize floats without handling
;; CHECK-NEXT: corner cases of NaNs and
;; CHECK-NEXT: rounding
;; CHECK-NEXT: corner cases of NaNs, rounding,
;; CHECK-NEXT: and negative zero
;; CHECK-EMPTY:
;; CHECK-NEXT: --zero-filled-memory,-uim Assume that an imported memory
;; CHECK-NEXT: will be zero-initialized
Expand Down
4 changes: 2 additions & 2 deletions test/lit/help/wasm-opt.test
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,8 @@
;; CHECK-NEXT: application
;; CHECK-EMPTY:
;; CHECK-NEXT: --fast-math,-ffm Optimize floats without handling
;; CHECK-NEXT: corner cases of NaNs and
;; CHECK-NEXT: rounding
;; CHECK-NEXT: corner cases of NaNs, rounding,
;; CHECK-NEXT: and negative zero
;; CHECK-EMPTY:
;; CHECK-NEXT: --zero-filled-memory,-uim Assume that an imported memory
;; CHECK-NEXT: will be zero-initialized
Expand Down
4 changes: 2 additions & 2 deletions test/lit/help/wasm2js.test
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,8 @@
;; CHECK-NEXT: application
;; CHECK-EMPTY:
;; CHECK-NEXT: --fast-math,-ffm Optimize floats without handling
;; CHECK-NEXT: corner cases of NaNs and
;; CHECK-NEXT: rounding
;; CHECK-NEXT: corner cases of NaNs, rounding,
;; CHECK-NEXT: and negative zero
;; CHECK-EMPTY:
;; CHECK-NEXT: --zero-filled-memory,-uim Assume that an imported memory
;; CHECK-NEXT: will be zero-initialized
Expand Down
Loading