mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-16 16:20:49 +00:00
Remove debug files.
This commit is contained in:
parent
08a1dd3e8c
commit
ccc474bd5d
11
address.wat
11
address.wat
@ -1,11 +0,0 @@
|
||||
(module
|
||||
(memory 1)
|
||||
(data (i32.const 0) "abcdefghijklmnopqrstuvwxyz")
|
||||
|
||||
(func $f_8u_good1 (param $i i32) (result i64)
|
||||
(i64.load8_u offset=0 (local.get $i)) ;; 97 'a'
|
||||
)
|
||||
(func $main (export "main") (result i64)
|
||||
(call $f_8u_good1 (i32.const 0))
|
||||
)
|
||||
)
|
32
br_if.wat
32
br_if.wat
@ -1,32 +0,0 @@
|
||||
(module
|
||||
(func $dummy)
|
||||
(func $as_block_mid_value (param i32) (result i32)
|
||||
(block (result i32)
|
||||
(call $dummy)
|
||||
(drop (br_if 0 (i32.const 20) (local.get 0)))
|
||||
(return (i32.const 21))
|
||||
)
|
||||
)
|
||||
(func $nested_br_table_loop_block (param i32) (result i32)
|
||||
(local.set 0
|
||||
(loop (result i32)
|
||||
(block
|
||||
(br_table 1 0 0 (local.get 0))
|
||||
)
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(loop (result i32)
|
||||
(block
|
||||
(br_table 0 1 1 (local.get 0))
|
||||
)
|
||||
(i32.const 3)
|
||||
)
|
||||
)
|
||||
;; (assert_return (invoke "nested-br_table-loop-block" (i32.const 1)) (i32.const 3))
|
||||
|
||||
(func $main (export "main") (result i32)
|
||||
;; (call $as_block_mid_value (i32.const 1))
|
||||
(call $nested_br_table_loop_block (i32.const 1))
|
||||
)
|
||||
)
|
22
f64.wat
22
f64.wat
@ -1,22 +0,0 @@
|
||||
(module
|
||||
(func $add (param $x f64) (param $y f64) (result f64) (f64.add (local.get $x) (local.get $y)))
|
||||
(func $sub (param $x f64) (param $y f64) (result f64) (f64.sub (local.get $x) (local.get $y)))
|
||||
(func $mul (param $x f64) (param $y f64) (result f64) (f64.mul (local.get $x) (local.get $y)))
|
||||
(func $div (param $x f64) (param $y f64) (result f64) (f64.div (local.get $x) (local.get $y)))
|
||||
(func $sqrt (param $x f64) (result f64) (f64.sqrt (local.get $x)))
|
||||
(func $min (param $x f64) (param $y f64) (result f64) (f64.min (local.get $x) (local.get $y)))
|
||||
(func $max (param $x f64) (param $y f64) (result f64) (f64.max (local.get $x) (local.get $y)))
|
||||
(func (export "ceil") (param $x f64) (result f64) (f64.ceil (local.get $x)))
|
||||
(func (export "floor") (param $x f64) (result f64) (f64.floor (local.get $x)))
|
||||
(func (export "trunc") (param $x f64) (result f64) (f64.trunc (local.get $x)))
|
||||
(func (export "nearest") (param $x f64) (result f64) (f64.nearest (local.get $x)))
|
||||
(func $main (export "main") (result f64)
|
||||
;; (call $add (f64.promote_f32 (f32.const 0x1p+0)) (f64.const 0x2p+0)) ;; 3.0
|
||||
;; (call $sub (f64.promote_f32 (f32.const 0x1p+0)) (f64.const 0x2p+0)) ;; -1.0
|
||||
;; (call $mul (f64.promote_f32 (f32.const 0x2p+0)) (f64.const 0x3p+0)) ;; 6.0
|
||||
;; (call $div (f64.promote_f32 (f32.const 0xap+0)) (f64.const 0x2p+0)) ;; 5.0
|
||||
;; (call $sqrt (f64.const 0x10p+0)) ;; 4.0
|
||||
;; (call $min (f64.promote_f32 (f32.const 0x1p+0)) (f64.const 0x2p+0)) ;; 1.0
|
||||
;; (call $max (f64.promote_f32 (f32.const 0x1p+0)) (f64.const 0x2p+0)) ;; 2.0
|
||||
)
|
||||
)
|
24
fac.wat
24
fac.wat
@ -1,24 +0,0 @@
|
||||
(module
|
||||
(func $fac_iter (param i64) (result i64)
|
||||
(local i64 i64)
|
||||
(local.set 1 (local.get 0))
|
||||
(local.set 2 (i64.const 1))
|
||||
(block
|
||||
(loop
|
||||
(if
|
||||
(i64.eq (local.get 1) (i64.const 0))
|
||||
(then (br 2))
|
||||
(else
|
||||
(local.set 2 (i64.mul (local.get 1) (local.get 2)))
|
||||
(local.set 1 (i64.sub (local.get 1) (i64.const 1)))
|
||||
)
|
||||
)
|
||||
(br 0)
|
||||
)
|
||||
)
|
||||
(local.get 2)
|
||||
)
|
||||
(func $main (export "main") (result i64)
|
||||
(call $fac_iter (i64.const 25))
|
||||
)
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user