-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[threads] Add opcodes for fast interpreter (#182 from khagankhan/fast…
…-interpreter)
- Loading branch information
Showing
35 changed files
with
1,320 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(module binary | ||
"\00\61\73\6d\01\00\00\00\01\88\80\80\80\00\02\60" | ||
"\00\00\60\00\01\7f\03\85\80\80\80\00\04\00\01\01" | ||
"\01\05\83\80\80\80\00\01\00\01\07\d8\80\80\80\00" | ||
"\05\06\6d\65\6d\6f\72\79\02\00\04\6d\61\69\6e\00" | ||
"\00\13\74\65\73\74\5f\69\33\32\5f\61\74\6f\6d\69" | ||
"\63\5f\61\64\64\00\01\15\74\65\73\74\5f\69\33\32" | ||
"\5f\61\74\6f\6d\69\63\5f\61\64\64\5f\38\00\02\16" | ||
"\74\65\73\74\5f\69\33\32\5f\61\74\6f\6d\69\63\5f" | ||
"\61\64\64\5f\31\36\00\03\0a\da\80\80\80\00\04\92" | ||
"\80\80\80\00\00\41\00\41\05\36\02\00\41\00\41\03" | ||
"\fe\1e\02\00\1a\0b\91\80\80\80\00\00\41\00\41\05" | ||
"\36\02\00\41\00\41\03\fe\1e\02\00\0b\91\80\80\80" | ||
"\00\00\41\00\41\05\36\02\00\41\00\41\03\fe\20\00" | ||
"\00\0b\91\80\80\80\00\00\41\00\41\05\36\02\00\41" | ||
"\00\41\03\fe\21\01\00\0b" | ||
) | ||
(assert_return (invoke "test_i32_atomic_add") (i32.const 0x5)) | ||
(assert_return (invoke "test_i32_atomic_add_8") (i32.const 0x5)) | ||
(assert_return (invoke "test_i32_atomic_add_16") (i32.const 0x5)) | ||
(assert_return (invoke "main")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
(module | ||
(memory (export "memory") 1) | ||
(func (export "main") | ||
i32.const 0 | ||
i32.const 5 | ||
i32.store | ||
i32.const 0 | ||
i32.const 3 | ||
i32.atomic.rmw.add offset=0 align=4 drop | ||
) | ||
(func (export "test_i32_atomic_add") (result i32) | ||
i32.const 0 | ||
i32.const 5 | ||
i32.store | ||
i32.const 0 | ||
i32.const 3 | ||
i32.atomic.rmw.add offset=0 align=4 | ||
) | ||
(func (export "test_i32_atomic_add_8") (result i32) | ||
i32.const 0 | ||
i32.const 5 | ||
i32.store | ||
i32.const 0 | ||
i32.const 3 | ||
i32.atomic.rmw8.add_u offset=0 align=1 | ||
) | ||
(func (export "test_i32_atomic_add_16") (result i32) | ||
i32.const 0 | ||
i32.const 5 | ||
i32.store | ||
i32.const 0 | ||
i32.const 3 | ||
i32.atomic.rmw16.add_u offset=0 align=2 | ||
) | ||
) | ||
|
||
(assert_return (invoke "test_i32_atomic_add") (i32.const 5)) | ||
(assert_return (invoke "test_i32_atomic_add_8") (i32.const 5)) | ||
(assert_return (invoke "test_i32_atomic_add_16") (i32.const 5)) | ||
(assert_return (invoke "main")) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
(module binary | ||
"\00\61\73\6d\01\00\00\00\01\88\80\80\80\00\02\60" | ||
"\00\00\60\00\01\7e\03\86\80\80\80\00\05\00\01\01" | ||
"\01\01\05\83\80\80\80\00\01\00\01\07\f1\80\80\80" | ||
"\00\06\06\6d\65\6d\6f\72\79\02\00\04\6d\61\69\6e" | ||
"\00\00\13\74\65\73\74\5f\69\36\34\5f\61\74\6f\6d" | ||
"\69\63\5f\61\64\64\00\01\15\74\65\73\74\5f\69\36" | ||
"\34\5f\61\74\6f\6d\69\63\5f\61\64\64\5f\38\00\02" | ||
"\16\74\65\73\74\5f\69\36\34\5f\61\74\6f\6d\69\63" | ||
"\5f\61\64\64\5f\31\36\00\03\16\74\65\73\74\5f\69" | ||
"\36\34\5f\61\74\6f\6d\69\63\5f\61\64\64\5f\33\32" | ||
"\00\04\0a\f0\80\80\80\00\05\92\80\80\80\00\00\41" | ||
"\00\42\05\37\03\00\41\00\42\03\fe\1f\03\00\1a\0b" | ||
"\91\80\80\80\00\00\41\00\42\05\37\03\00\41\00\42" | ||
"\03\fe\1f\03\00\0b\91\80\80\80\00\00\41\00\42\05" | ||
"\37\03\00\41\00\42\03\fe\22\00\00\0b\91\80\80\80" | ||
"\00\00\41\00\42\05\37\03\00\41\00\42\03\fe\23\01" | ||
"\00\0b\91\80\80\80\00\00\41\00\42\05\37\03\00\41" | ||
"\00\42\03\fe\24\02\00\0b" | ||
) | ||
(assert_return (invoke "test_i64_atomic_add") (i64.const 0x5)) | ||
(assert_return (invoke "test_i64_atomic_add_8") (i64.const 0x5)) | ||
(assert_return (invoke "test_i64_atomic_add_16") (i64.const 0x5)) | ||
(assert_return (invoke "test_i64_atomic_add_32") (i64.const 0x5)) | ||
(assert_return (invoke "main")) |
Oops, something went wrong.