Commit 4793d91
authored
[wasm] Implement Vector128.Abs intrinsics (#78067)
* [wasm] Implement Vector128.Abs intrinsics
C# code
iv = Vector128.Abs(Vector128.Create(System.Random.Shared.Next()));
fv = Vector128.Abs(Vector128.Create(System.Random.Shared.NextSingle()));
dv = Vector128.Abs(Vector128.Create(System.Random.Shared.NextDouble()));
is emitted as:
...
i32x4.splat [SIMD]
i32x4.abs [SIMD]
v128.store offset:16 [SIMD]
...
f32x4.splat [SIMD]
f32x4.abs [SIMD]
v128.store [SIMD]
...
f64x2.splat [SIMD]
f64x2.abs [SIMD]
v128.store offset:80 [SIMD]
...
* Review feedback1 parent dd7fdb7 commit 4793d91
File tree
3 files changed
+22
-12
lines changed- src/mono/mono/mini
3 files changed
+22
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
| 265 | + | |
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9289 | 9289 | | |
9290 | 9290 | | |
9291 | 9291 | | |
9292 | | - | |
9293 | | - | |
9294 | | - | |
9295 | | - | |
9296 | | - | |
9297 | | - | |
9298 | | - | |
9299 | | - | |
9300 | | - | |
9301 | | - | |
9302 | | - | |
9303 | | - | |
9304 | 9292 | | |
9305 | 9293 | | |
9306 | 9294 | | |
| |||
9605 | 9593 | | |
9606 | 9594 | | |
9607 | 9595 | | |
| 9596 | + | |
| 9597 | + | |
| 9598 | + | |
| 9599 | + | |
| 9600 | + | |
| 9601 | + | |
| 9602 | + | |
| 9603 | + | |
| 9604 | + | |
| 9605 | + | |
| 9606 | + | |
| 9607 | + | |
| 9608 | + | |
| 9609 | + | |
9608 | 9610 | | |
9609 | 9611 | | |
9610 | 9612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1157 | 1157 | | |
1158 | 1158 | | |
1159 | 1159 | | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
1160 | 1166 | | |
1161 | 1167 | | |
1162 | 1168 | | |
| |||
0 commit comments