Bug 164374 - WebAssembly: Add the following test
Summary: WebAssembly: Add the following test
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-03 12:23 PDT by Keith Miller
Modified: 2017-03-22 01:39 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Miller 2016-11-03 12:23:25 PDT
(module
 (func (export "if-then-both-fallthrough") (param $x i32) (param $y i32) (result i32)
       (block $block i32
         (if i32 (i32.eq (get_local $x) (i32.const 0))
           (then (i32.const 1))
           (else
            (i32.const 2)
            (i32.const 1)
            )
           )
         )
       )
 )

We can't add this yet since the current version of the ML prototype does not support the stack at block exit differing the expected return type.
Updating the ML-prototype version is a pain since we will need to update all the opcode numbers and regenerate all the existing tests.
Comment 1 JF Bastien 2017-03-22 01:39:45 PDT
Is this still something that we need to do?