summaryrefslogtreecommitdiff
path: root/test/harness/wasm2c/floating_point.txt
blob: 8e4180be04665589e744e12da650499303fa9b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
;;; TOOL: run-spec-wasm2c
;;; ERROR: 1
;;; NOT-PLATFORMS: Windows
(module
  (func (export "f32") (param $x f32) (result f32) (local.get $x))
  (func (export "f64") (param $x f64) (result f64) (local.get $x))
)
(assert_return (invoke "f32" (f32.const 0.0)) (f32.const 123.4))
(assert_return (invoke "f32" (f32.const 123.4)) (f32.const 0.0))
(assert_return (invoke "f64" (f64.const 0.0)) (f64.const 123.4))
(assert_return (invoke "f64" (f64.const 123.4)) (f64.const 0.0))
(;; STDERR ;;;
Error running "out/test/harness/wasm2c/floating_point/floating_point" (1):
0/4 tests passed.

out/test/harness/wasm2c/floating_point/floating_point-main.c:384: assertion failed: in w2c_floating__point__0__wasm_f32(&floating__point__0__wasm_instance, 0.f): expected 123.400002, got 0.
out/test/harness/wasm2c/floating_point/floating_point-main.c:387: assertion failed: in w2c_floating__point__0__wasm_f32(&floating__point__0__wasm_instance, 123.400002f): expected 0, got 123.400002.
out/test/harness/wasm2c/floating_point/floating_point-main.c:390: assertion failed: in w2c_floating__point__0__wasm_f64(&floating__point__0__wasm_instance, 0.0000000000000000): expected 123.40000000000001, got 0.
out/test/harness/wasm2c/floating_point/floating_point-main.c:393: assertion failed: in w2c_floating__point__0__wasm_f64(&floating__point__0__wasm_instance, 123.40000000000001): expected 0, got 123.40000000000001.

;;; STDERR ;;)
(;; STDOUT ;;;
0/4 tests passed.
;;; STDOUT ;;)