summaryrefslogtreecommitdiff
path: root/test/emcc_hello_world.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/emcc_hello_world.fromasm')
-rw-r--r--test/emcc_hello_world.fromasm90
1 files changed, 45 insertions, 45 deletions
diff --git a/test/emcc_hello_world.fromasm b/test/emcc_hello_world.fromasm
index f01ba2f5d..c314d887c 100644
--- a/test/emcc_hello_world.fromasm
+++ b/test/emcc_hello_world.fromasm
@@ -325,7 +325,7 @@
)
)
(if
- (i32.load8_u
+ (i32.load8_s
(get_local $0)
)
(block
@@ -1468,7 +1468,7 @@
)
(if
(i32.ne
- (i32.load8_u
+ (i32.load8_s
(i32.add
(get_local $0)
(tee_local $6
@@ -1864,12 +1864,15 @@
(loop $while-in
(if
(i32.eq
- (i32.load8_u
+ (i32.load8_s
(get_local $2)
)
- (i32.and
- (get_local $4)
- (i32.const 255)
+ (i32.shr_s
+ (i32.shl
+ (get_local $4)
+ (i32.const 24)
+ )
+ (i32.const 24)
)
)
(block
@@ -1938,14 +1941,20 @@
)
(if
(i32.ne
- (i32.load8_u
+ (i32.load8_s
(get_local $2)
)
- (tee_local $1
- (i32.and
- (get_local $1)
- (i32.const 255)
+ (i32.shr_s
+ (i32.shl
+ (tee_local $1
+ (i32.and
+ (get_local $1)
+ (i32.const 255)
+ )
+ )
+ (i32.const 24)
)
+ (i32.const 24)
)
)
(block
@@ -2026,12 +2035,15 @@
(loop $while-in5
(br_if $label$break$L8
(i32.eq
- (i32.load8_u
+ (i32.load8_s
(get_local $2)
)
- (i32.and
- (get_local $1)
- (i32.const 255)
+ (i32.shr_s
+ (i32.shl
+ (get_local $1)
+ (i32.const 24)
+ )
+ (i32.const 24)
)
)
)
@@ -2498,13 +2510,10 @@
)
(br_if $__rjti$9
(i32.eqz
- (i32.and
- (tee_local $7
- (i32.load8_s
- (get_local $5)
- )
+ (tee_local $7
+ (i32.load8_s
+ (get_local $5)
)
- (i32.const 255)
)
)
)
@@ -2556,7 +2565,7 @@
(loop $while-in
(br_if $label$break$L12
(i32.ne
- (i32.load8_u offset=1
+ (i32.load8_s offset=1
(get_local $6)
)
(i32.const 37)
@@ -2570,7 +2579,7 @@
)
(br_if $while-in
(i32.eq
- (i32.load8_u
+ (i32.load8_s
(tee_local $6
(i32.add
(get_local $6)
@@ -2656,7 +2665,7 @@
(get_local $10)
(tee_local $11
(i32.eq
- (i32.load8_u offset=2
+ (i32.load8_s offset=2
(get_local $6)
)
(i32.const 36)
@@ -2825,7 +2834,7 @@
)
(br_if $__rjti$0
(i32.ne
- (i32.load8_u offset=2
+ (i32.load8_s offset=2
(get_local $10)
)
(i32.const 36)
@@ -3057,7 +3066,7 @@
(set_local $6
(if i32
(i32.eq
- (i32.load8_u
+ (i32.load8_s
(get_local $10)
)
(i32.const 46)
@@ -3065,18 +3074,15 @@
(block i32
(if
(i32.ne
- (i32.and
- (tee_local $8
- (i32.load8_s
- (tee_local $6
- (i32.add
- (get_local $10)
- (i32.const 1)
- )
+ (tee_local $8
+ (i32.load8_s
+ (tee_local $6
+ (i32.add
+ (get_local $10)
+ (i32.const 1)
)
)
)
- (i32.const 255)
)
(i32.const 42)
)
@@ -3085,13 +3091,7 @@
(i32.lt_u
(tee_local $9
(i32.add
- (i32.shr_s
- (i32.shl
- (get_local $8)
- (i32.const 24)
- )
- (i32.const 24)
- )
+ (get_local $8)
(i32.const -48)
)
)
@@ -3175,7 +3175,7 @@
)
(if
(i32.eq
- (i32.load8_u offset=3
+ (i32.load8_s offset=3
(get_local $10)
)
(i32.const 36)
@@ -4201,7 +4201,7 @@
)
(if f64
(i32.eq
- (i32.load8_u
+ (i32.load8_s
(get_local $9)
)
(i32.const 45)
@@ -5261,7 +5261,7 @@
(block
(br_if $do-once83
(i32.ne
- (i32.load8_u
+ (i32.load8_s
(get_local $31)
)
(i32.const 45)