@@ -33,13 +33,54 @@ steps.push(new Invoker('8u_good3', [WASM.i32(0)], WASM.i32(98)));
3333// ✔ ((invoke "func-unwind-by-br"))
3434steps . push ( new Invoker ( 'func-unwind-by-br' , [ ] , undefined ) ) ;
3535
36+ // ✔ ((invoke "float_exprs_46"))
37+ steps . push ( new Invoker ( '' , [ ] , undefined ) ) ;
38+
39+
40+
3641spec . test ( {
3742 title : `Test with address_0.wast` ,
3843 program : 'tests/examples/address.wast' ,
3944 dependencies : [ ] ,
4045 steps : steps
4146} ) ;
4247
48+
49+ const floats = framework . suite ( 'Test float parsing' ) ; // must be called first
50+ floats . testee ( 'emulator[:8130]' , new EmulatorSpecification ( 8130 ) ) ;
51+ floats . test ( {
52+ title : `Test with float_exprs_46.wast` ,
53+ program : 'tests/examples/const_160.wast' ,
54+ dependencies : [ ] ,
55+ steps : [
56+ new Invoker ( 'f' , [ ] , WASM . f32 ( 8.88178631458362e-16 ) )
57+ ]
58+ } ) ;
59+
60+ const threethree = framework . suite ( 'Test float parsing' ) ; // must be called first
61+ threethree . testee ( 'emulator[:8180]' , new EmulatorSpecification ( 8180 ) ) ;
62+ threethree . test ( {
63+ title : `Test with float_exprs_46.wast` ,
64+ program : 'tests/examples/const_133.wast' ,
65+ dependencies : [ ] ,
66+ steps : [
67+ new Invoker ( 'f' , [ ] , WASM . f32 ( - 8.881785255792436e-16 ) )
68+ ]
69+ } ) ;
70+
71+
72+ // ✔ ((invoke "copysign" (f64.const -nan) (f64.const -0x0p+0)) (f64.const -nan))
73+ const copysign = framework . suite ( 'Test float parsing' ) ; // must be called first
74+ copysign . testee ( 'emulator[:8190]' , new EmulatorSpecification ( 8190 ) ) ;
75+ copysign . test ( {
76+ title : `Test copysign` ,
77+ program : 'tests/examples/f64_bitwise.wast' ,
78+ dependencies : [ ] ,
79+ steps : [
80+ new Invoker ( 'copysign' , [ WASM . f64 ( - NaN ) , WASM . f32 ( - 0 ) ] , WASM . f64 ( - NaN ) )
81+ ]
82+ } ) ;
83+
4384const debug = framework . suite ( 'Test Debugger interface' ) ;
4485debug . testee ( 'emulator[:8150]' , new EmulatorSpecification ( 8150 ) ) ;
4586
@@ -116,4 +157,4 @@ reverse.test({
116157} )
117158
118159framework . reporter . verbosity ( Verbosity . debug ) ;
119- framework . analyse ( [ spec , debug ] ) ;
160+ framework . analyse ( [ spec , debug , threethree , copysign ] ) ;
0 commit comments