-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wasm] Add PackedSimd bit shift intrinsics (#83896)
* Add bit shifts to PackedSimd class * [wasm] Add PackedSimd bit shift intrinsics Example of code generated for this method: void Snippet(Vector128<int> vector) { var v2 = PackedSimd.ShiftLeft (vector, 3); var v3 = PackedSimd.ShiftRightArithmetic (vector, 3); var v4 = PackedSimd.ShiftRightLogical (vector, 3); Print (vector, v2, v3, v4); } Relevant parts: (func Wasm_Browser_Bench_Sample_Sample_VectorTask_Add_Snippet_System_Runtime_Intrinsics_Vector128_1_int(param $0 i32, $1 i32, $2 i32)) ... local.tee $3 i32.const 3 i32x4.shr.u [SIMD] v128.store offset:96 align:4 [SIMD] local.get $0 local.get $3 i32.const 3 i32x4.shr.s [SIMD] v128.store offset:80 align:4 [SIMD] local.get $0 local.get $3 i32.const 3 i32x4.shl [SIMD] v128.store offset:64 align:4 [SIMD] ... * Fix build
- Loading branch information
1 parent
8d5f520
commit beb708f
Showing
7 changed files
with
278 additions
and
49 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
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
Oops, something went wrong.