Skip to content

test/interp/simd-unary.txt fails on ARM and POWER8 #1043

Closed

Description

@rathann

Running the testsuite from 1.0.10 on ARM (armv7hl and aarch64) and POWER8 (ppc64le) fails:

- test/interp/simd-unary.txt
  STDOUT MISMATCH:
  --- expected
  +++ actual
  @@ -25,8 +25,8 @@
   f32x4_abs_0() => v128:0x00000000 0x7fc00000 0x449a5000 0x3f800000
   f64x2_abs_0() => v128:0x00000000 0x00000000 0x00000000 0x7ff80000
   f64x2_abs_1() => v128:0x00000000 0x40934a00 0x00000000 0x3ff00000
  -f32x4_sqrt_0() => v128:0xffc00000 0xffc00000 0x40000000 0x40400000
  -f64x2_sqrt_0() => v128:0x00000000 0xfff80000 0x00000000 0xfff80000
  +f32x4_sqrt_0() => v128:0x7fc00000 0xffc00000 0x40000000 0x40400000
  +f64x2_sqrt_0() => v128:0x00000000 0x7ff80000 0x00000000 0xfff80000
   f64x2_sqrt_1() => v128:0x00000000 0x40000000 0x00000000 0x40080000
   f32x4_convert_i32x4_s_0() => v128:0x3f800000 0xbf800000 0x00000000 0x40400000
   f32x4_convert_i32x4_u_0() => v128:0x3f800000 0x40000000 0x00000000 0x40400000
...
**** FAILED ******************************************************************
- test/interp/simd-unary.txt
    /builddir/build/BUILD/wabt-1.0.10/bin/wasm-interp out/test/interp/simd-unary/simd-unary.wasm --run-all-exports --enable-simd

This is the only failing test on ARM.

There are more test failures on POWER8 (ppc64le) and other architectures, but I'll open separate issues for that.

Activity

  1. binji commented on Mar 15, 2019

    @binji
    Member

    I see, looks like sqrt(-1) is +nan on these architectures.

  2. rathann commented on Apr 15, 2019

    @rathann
    ContributorAuthor

    I can confirm #1046 fixes this and several others.

  3. binji commented on Apr 15, 2019

    @binji
    Member

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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