Fix some cases in string comparision (#66)

This commit is contained in:
Max Graey
2018-04-05 18:44:17 +03:00
committed by Daniel Wirtz
parent 26601dcfb1
commit 70a0123554
5 changed files with 125 additions and 128 deletions

View File

@ -154,7 +154,7 @@
(call $abort
(i32.const 0)
(i32.const 72)
(i32.const 239)
(i32.const 234)
(i32.const 4)
)
(unreachable)
@ -264,7 +264,7 @@
(call $abort
(i32.const 0)
(i32.const 72)
(i32.const 100)
(i32.const 101)
(i32.const 4)
)
(unreachable)
@ -374,7 +374,7 @@
(call $abort
(i32.const 0)
(i32.const 72)
(i32.const 218)
(i32.const 213)
(i32.const 4)
)
(unreachable)
@ -1085,7 +1085,7 @@
(call $abort
(i32.const 0)
(i32.const 72)
(i32.const 563)
(i32.const 558)
(i32.const 10)
)
(unreachable)
@ -3171,7 +3171,7 @@
(call $abort
(i32.const 0)
(i32.const 72)
(i32.const 79)
(i32.const 77)
(i32.const 4)
)
(unreachable)
@ -3394,32 +3394,29 @@
(local $2 i32)
(local $3 i32)
(if
(i32.and
(if (result i32)
(tee_local $2
(i32.eqz
(get_local $0)
)
)
(get_local $2)
(i32.eqz
(get_local $1)
)
(get_local $0)
(if
(i32.eqz
(get_local $1)
)
(return
(i32.const 0)
)
(i32.const 1)
)
(return
(i32.const 0)
(i32.eqz
(get_local $1)
)
)
)
(set_local $3
(set_local $2
(i32.load
(get_local $1)
)
)
(if
(i32.eqz
(tee_local $2
(tee_local $3
(i32.load
(get_local $0)
)
@ -3427,13 +3424,13 @@
)
(return
(i32.eqz
(get_local $3)
(get_local $2)
)
)
)
(if
(i32.eqz
(get_local $3)
(get_local $2)
)
(return
(i32.const 1)
@ -3451,11 +3448,11 @@
)
(i32.shl
(select
(get_local $2)
(get_local $3)
(get_local $2)
(i32.lt_s
(get_local $2)
(get_local $3)
(get_local $2)
)
)
(i32.const 1)
@ -3540,22 +3537,19 @@
(local $2 i32)
(local $3 i32)
(if
(i32.and
(if (result i32)
(tee_local $2
(i32.eqz
(get_local $0)
)
)
(get_local $2)
(i32.eqz
(get_local $1)
)
(get_local $0)
(if
(i32.eqz
(get_local $1)
)
(return
(i32.const 0)
)
(i32.const 1)
)
(return
(i32.const 0)
(i32.eqz
(get_local $1)
)
)
)
(set_local $2