diff options
Diffstat (limited to 'test/example')
-rw-r--r-- | test/example/c-api-kitchen-sink.c | 2 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt | 6 | ||||
-rw-r--r-- | test/example/c-api-kitchen-sink.txt.txt | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/test/example/c-api-kitchen-sink.c b/test/example/c-api-kitchen-sink.c index f60b62785..77e7f0b05 100644 --- a/test/example/c-api-kitchen-sink.c +++ b/test/example/c-api-kitchen-sink.c @@ -209,7 +209,7 @@ void test_core() { BinaryenSetLocal(module, 0, makeInt32(module, 101)), BinaryenDrop(module, BinaryenTeeLocal(module, 0, makeInt32(module, 102))), BinaryenLoad(module, 4, 0, 0, 0, BinaryenInt32(), makeInt32(module, 1)), - BinaryenLoad(module, 1, 1, 2, 4, BinaryenInt64(), makeInt32(module, 8)), + BinaryenLoad(module, 2, 1, 2, 1, BinaryenInt64(), makeInt32(module, 8)), BinaryenLoad(module, 4, 0, 0, 0, BinaryenFloat32(), makeInt32(module, 2)), BinaryenLoad(module, 8, 0, 2, 8, BinaryenFloat64(), makeInt32(module, 9)), BinaryenStore(module, 4, 0, 0, temp13, temp14, BinaryenInt32()), diff --git a/test/example/c-api-kitchen-sink.txt b/test/example/c-api-kitchen-sink.txt index f4bfa19e7..6544f9f33 100644 --- a/test/example/c-api-kitchen-sink.txt +++ b/test/example/c-api-kitchen-sink.txt @@ -486,7 +486,7 @@ BinaryenFloat64: 4 ) ) (drop - (i64.load8_s offset=2 align=4 + (i64.load16_s offset=2 align=1 (i32.const 8) ) ) @@ -1528,7 +1528,7 @@ int main() { expressions[228] = BinaryenConst(the_module, BinaryenLiteralInt32(1)); expressions[229] = BinaryenLoad(the_module, 4, 0, 0, 0, 1, expressions[228]); expressions[230] = BinaryenConst(the_module, BinaryenLiteralInt32(8)); - expressions[231] = BinaryenLoad(the_module, 1, 1, 2, 4, 2, expressions[230]); + expressions[231] = BinaryenLoad(the_module, 2, 1, 2, 1, 2, expressions[230]); expressions[232] = BinaryenConst(the_module, BinaryenLiteralInt32(2)); expressions[233] = BinaryenLoad(the_module, 4, 0, 0, 0, 3, expressions[232]); expressions[234] = BinaryenConst(the_module, BinaryenLiteralInt32(9)); @@ -2077,7 +2077,7 @@ int main() { ) ) (drop - (i64.load8_s offset=2 align=4 + (i64.load16_s offset=2 align=1 (i32.const 8) ) ) diff --git a/test/example/c-api-kitchen-sink.txt.txt b/test/example/c-api-kitchen-sink.txt.txt index d564ce7ca..b37814f89 100644 --- a/test/example/c-api-kitchen-sink.txt.txt +++ b/test/example/c-api-kitchen-sink.txt.txt @@ -481,7 +481,7 @@ ) ) (drop - (i64.load8_s offset=2 align=4 + (i64.load16_s offset=2 align=1 (i32.const 8) ) ) |