[Webkit-unassigned] [Bug 214834] New: [wasm] Truncating slightly less than INT32_MIN is incorrect

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 27 10:43:07 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=214834

            Bug ID: 214834
           Summary: [wasm] Truncating slightly less than INT32_MIN is
                    incorrect
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebAssembly
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: alonzakai at gmail.com

(module
 (func (export "trunc")
  (drop
   (i32.trunc_f64_s
    (f64.const -2147483648.1)
   )
  )
 )
)

This should not trap - while the number is smaller than INT32_MIN, it rounds to a valid value.

See https://github.com/WebAssembly/spec/issues/1224 for details and https://github.com/WebAssembly/spec/pull/1225 for the spec + spec suite update (that will now test this).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200727/fb185dfe/attachment.htm>


More information about the webkit-unassigned mailing list