Skip to content

Backport fixes from musl's libc #1749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 27, 2021
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
240 changes: 141 additions & 99 deletions std/assembly/math.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/compiler/std/array.optimized.wat
Original file line number Diff line number Diff line change
Expand Up @@ -4202,7 +4202,7 @@
if
i32.const 0
i32.const 7264
i32.const 1399
i32.const 1417
i32.const 5
call $~lib/builtins/abort
unreachable
Expand Down
2 changes: 1 addition & 1 deletion tests/compiler/std/array.untouched.wat
Original file line number Diff line number Diff line change
Expand Up @@ -6622,7 +6622,7 @@
if
i32.const 0
i32.const 6240
i32.const 1399
i32.const 1417
i32.const 5
call $~lib/builtins/abort
unreachable
Expand Down
10 changes: 5 additions & 5 deletions tests/compiler/std/math.optimized.wat
Original file line number Diff line number Diff line change
Expand Up @@ -1515,9 +1515,9 @@
block $__inlined_func$~lib/math/NativeMathf.acosh (result f32)
local.get $0
i32.reinterpret_f32
local.tee $3
i32.const 2147483647
i32.and
local.tee $3
i32.const 1073741824
i32.lt_u
if
Expand Down Expand Up @@ -4616,9 +4616,9 @@
f32.const -1
return
end
local.get $0
f32.const 88.7216796875
f32.gt
local.get $4
i32.const 1118925335
i32.gt_u
if
local.get $0
f32.const 1701411834604692317316873e14
Expand Down Expand Up @@ -8219,7 +8219,7 @@
if
i32.const 0
i32.const 3648
i32.const 1399
i32.const 1417
i32.const 5
call $~lib/builtins/abort
unreachable
Expand Down
10 changes: 5 additions & 5 deletions tests/compiler/std/math.untouched.wat
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,7 @@
call $~lib/math/NativeMathf.log1p
return
end
local.get $2
local.get $1
i32.const 1065353216
i32.const 12
i32.const 23
Expand Down Expand Up @@ -6582,9 +6582,9 @@
f32.const -1
return
end
local.get $0
f32.const 88.7216796875
f32.gt
local.get $2
i32.const 1118925335
i32.gt_u
if
local.get $0
f32.const 1701411834604692317316873e14
Expand Down Expand Up @@ -11427,7 +11427,7 @@
if
i32.const 0
i32.const 13376
i32.const 1399
i32.const 1417
i32.const 5
call $~lib/builtins/abort
unreachable
Expand Down
4 changes: 2 additions & 2 deletions tests/compiler/wasi/seed.optimized.wat
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
(local $3 i32)
i32.const 5
local.set $2
i32.const 1399
i32.const 1417
local.set $1
i32.const 0
i32.const 12
Expand All @@ -318,7 +318,7 @@
local.tee $0
i32.const 40
i32.store8
i32.const 1399
i32.const 1417
call $~lib/util/number/decimalCount32
local.tee $3
local.get $0
Expand Down
2 changes: 1 addition & 1 deletion tests/compiler/wasi/seed.untouched.wat
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@
if
i32.const 0
i32.const 32
i32.const 1399
i32.const 1417
i32.const 5
call $~lib/wasi/index/abort
unreachable
Expand Down