assemblyscript/tests/compiler/comma.untouched.wat

192 lines
3.1 KiB
Plaintext
Raw Normal View History

2018-01-05 01:55:59 +01:00
(module
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$v (func))
2019-06-05 23:15:39 +02:00
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(memory $0 1)
2019-06-05 23:15:39 +02:00
(data (i32.const 8) "\10\00\00\00\01\00\00\00\01\00\00\00\10\00\00\00c\00o\00m\00m\00a\00.\00t\00s\00")
(table $0 1 funcref)
(elem (i32.const 0) $null)
2018-01-05 01:55:59 +01:00
(global $comma/a (mut i32) (i32.const 0))
(global $comma/b (mut i32) (i32.const 0))
(export "memory" (memory $0))
(start $start)
(func $start:comma (; 1 ;) (type $FUNCSIG$v)
2018-01-05 01:55:59 +01:00
(local $0 i32)
(local $1 i32)
2019-06-11 12:52:16 +02:00
global.get $comma/a
local.tee $0
i32.const 1
i32.add
global.set $comma/a
local.get $0
global.set $comma/b
global.get $comma/a
drop
global.get $comma/a
i32.const 1
i32.eq
i32.eqz
if
i32.const 0
2019-06-05 23:15:39 +02:00
i32.const 24
i32.const 4
i32.const 0
2019-06-05 23:15:39 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $comma/b
i32.const 0
i32.eq
i32.eqz
if
i32.const 0
2019-06-05 23:15:39 +02:00
i32.const 24
i32.const 5
i32.const 0
2019-06-05 23:15:39 +02:00
call $~lib/builtins/abort
unreachable
end
2019-06-11 12:52:16 +02:00
global.get $comma/a
i32.const 1
i32.add
global.set $comma/a
global.get $comma/a
global.set $comma/b
global.get $comma/a
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
2019-06-05 23:15:39 +02:00
i32.const 24
i32.const 8
i32.const 0
2019-06-05 23:15:39 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $comma/b
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
2019-06-05 23:15:39 +02:00
i32.const 24
i32.const 9
i32.const 0
2019-06-05 23:15:39 +02:00
call $~lib/builtins/abort
unreachable
end
2019-06-11 12:52:16 +02:00
i32.const 0
global.set $comma/b
global.get $comma/b
global.set $comma/a
2019-06-11 12:52:16 +02:00
global.get $comma/a
i32.const 1
i32.add
global.set $comma/a
global.get $comma/a
global.set $comma/b
global.get $comma/a
i32.const 1
i32.eq
i32.eqz
if
i32.const 0
2019-06-05 23:15:39 +02:00
i32.const 24
i32.const 14
i32.const 0
2019-06-05 23:15:39 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $comma/b
i32.const 1
i32.eq
i32.eqz
if
i32.const 0
2019-06-05 23:15:39 +02:00
i32.const 24
i32.const 15
i32.const 0
2019-06-05 23:15:39 +02:00
call $~lib/builtins/abort
unreachable
end
2019-06-11 12:52:16 +02:00
global.get $comma/a
i32.const 1
i32.add
global.set $comma/a
global.get $comma/a
global.set $comma/b
global.get $comma/b
global.set $comma/a
global.get $comma/a
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
2019-06-05 23:15:39 +02:00
i32.const 24
i32.const 18
i32.const 0
2019-06-05 23:15:39 +02:00
call $~lib/builtins/abort
unreachable
end
global.get $comma/b
i32.const 2
i32.eq
i32.eqz
if
i32.const 0
2019-06-05 23:15:39 +02:00
i32.const 24
i32.const 19
i32.const 0
2019-06-05 23:15:39 +02:00
call $~lib/builtins/abort
unreachable
end
block $break|0
i32.const 0
local.set $1
2019-06-11 12:52:16 +02:00
loop $loop|0
local.get $1
global.get $comma/a
i32.lt_s
i32.eqz
br_if $break|0
nop
2019-06-11 12:52:16 +02:00
global.get $comma/a
i32.const 1
i32.sub
global.set $comma/a
local.get $1
i32.const 1
i32.add
local.set $1
br $loop|0
end
unreachable
end
local.get $1
i32.const 1
i32.eq
i32.eqz
if
i32.const 0
2019-06-05 23:15:39 +02:00
i32.const 24
i32.const 22
i32.const 0
2019-06-05 23:15:39 +02:00
call $~lib/builtins/abort
unreachable
end
2019-06-11 12:52:16 +02:00
i32.const 1
drop
i32.const 2
drop
i32.const 3
drop
2018-01-05 01:55:59 +01:00
)
(func $start (; 2 ;) (type $FUNCSIG$v)
call $start:comma
)
(func $null (; 3 ;) (type $FUNCSIG$v)
)
2018-01-05 01:55:59 +01:00
)