summaryrefslogtreecommitdiff
path: root/test/roundtrip/generate-local-names.txt
blob: d1c2df2e166c742bae3689ab62b56c0306964aaf (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
;;; TOOL: run-roundtrip
;;; ARGS: --stdout --generate-names
(module
  (func (param i32) (param f32)
    (local f64)
    (local i64)
    local.get 0
    drop
    local.get 1
    drop
    local.get 2
    drop
    local.get 3
    drop
    i32.const 1
    local.set 0
    f32.const 1
    local.set 1
    f64.const 1
    local.set 2
    i64.const 1
    local.set 3))
(;; STDOUT ;;;
(module
  (type $t0 (func (param i32 f32)))
  (func $f0 (type $t0) (param $p0 i32) (param $p1 f32)
    (local $l2 f64) (local $l3 i64)
    local.get $p0
    drop
    local.get $p1
    drop
    local.get $l2
    drop
    local.get $l3
    drop
    i32.const 1
    local.set $p0
    f32.const 0x1p+0 (;=1;)
    local.set $p1
    f64.const 0x1p+0 (;=1;)
    local.set $l2
    i64.const 1
    local.set $l3))
;;; STDOUT ;;)