Skip to content

Support "assert_return_arithmetic_nan" and "assert_return_canonical_nan" for SIMD #187

@Honry

Description

@Honry

Tests:

(assert_return_canonical_nan (invoke "f32x4.add" 
(v128.const f32x4 -0x0p+0 -0x0p+0 -0x0p+0 -0x0p+0) 
(v128.const f32x4 –nan –nan –nan -nan)))
(assert_return_arithmetic_nan (invoke "f32x4.add"
(v128.const f32x4 -0x0p+0 -0x0p+0 -0x0p+0 -0x0p+0)
(v128.const f32x4 -nan:0x200000 -nan:0x200000 -nan:0x200000 -nan:0x200000)))

Errors:

f32x4_arith.wast:5:2: expected canonical float NaN but got v128.const i32x4 0xffc00000 0xffc00000 0xffc00000 0xffc00000
(assert_return_canonical_nan (invoke "f32x4.add" 
(v128.const f32x4 -0x0p+0 -0x0p+0 -0x0p+0 -0x0p+0) 
(v128.const f32x4 -nan -nan -nan -nan)))
 ^
f32x4_arith.wast:6:2: expected float NaN but got v128.const i32x4 0xffe00000 0xffe00000 0xffe00000 0xffe00000
(assert_return_arithmetic_nan (invoke "f32x4.add" 
(v128.const f32x4 -0x0p+0 -0x0p+0 -0x0p+0 -0x0p+0)
(v128.const f32x4 -nan:0x200000 -nan:0x200000 -nan:0x200000 -nan:0x200000)))
 ^
Testing failed with 2 error(s) 

@AndrewScheidecker, need your support. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions