Commit 66cf1c5
committed
Add atomic intrinsics
We need this when optimizing some locks' implementation, but using
inline assembly will stop some optimizations. For example, if we use
inline assembly, the compiler doesn't know `lr.w` will sign-extend the
result.
ARM provides similar intrinsics like `__builtin_arm_ldaex`.
Currently, we only add intrinsics for `Zawrs`.1 parent fbf5f4e commit 66cf1c5
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
488 | 499 | | |
489 | 500 | | |
490 | 501 | | |
| |||
0 commit comments