Skip to content

Commit

Permalink
fix default value for global floats in spectest
Browse files Browse the repository at this point in the history
  • Loading branch information
zapashcanon committed Jul 23, 2024
1 parent ad4a34d commit b0f6ae8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
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

0 comments on commit b0f6ae8

Please sign in to comment.