Skip to content
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

fix default value for global floats in spectest #384

Merged
merged 1 commit into from
Jul 23, 2024
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
4 changes: 2 additions & 2 deletions src/script/spectest.ml
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ let m =
}
; MGlobal
{ typ = (Const, Num_type F32)
; init = [ F32_const Float32.zero ]
; init = [ F32_const (Float32.of_float 666.6) ]
; id = Some "global_f32"
}
; MGlobal
{ typ = (Const, Num_type F64)
; init = [ F64_const Float64.zero ]
; init = [ F64_const (Float64.of_float 666.6) ]
; id = Some "global_f64"
}
; MExport { name = "func"; desc = Export_func (Some (Text "func")) }
Expand Down
4 changes: 0 additions & 4 deletions test/script/reference.t
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@
24
24
13
got: f32.const 0
expected: (f32.const 666.599_975_585_937_5)
bad result
[3]
$ owi script --no-exhaustion reference/inline-module.wast
$ owi script --no-exhaustion reference/int_exprs.wast
$ owi script --no-exhaustion reference/int_literals.wast
Expand Down
4 changes: 0 additions & 4 deletions test/script/reference_opt.t
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@
24
24
13
got: f32.const 0
expected: (f32.const 666.599_975_585_937_5)
bad result
[3]
$ owi script --no-exhaustion --optimize reference/inline-module.wast
$ owi script --no-exhaustion --optimize reference/int_exprs.wast
$ owi script --no-exhaustion --optimize reference/int_literals.wast
Expand Down
Loading