Skip to content

Commit 2960f1f

Browse files
committed
[LSFE] Correct change 9f262a0 to preserve S1 (val) in example code
Amend change 9f262a0 to preserve S1 (`val`) in the example code, which was overwritten if the final write failed. Also format the change history correctly.
1 parent 9f262a0 commit 2960f1f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

atomicsabi64/atomicsabi64.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ changes to the content of the document for that release.
217217
| Issue | Date | Change |
218218
+=========+==============================+===================================================================+
219219
| 00alp0 | 5\ :sup:`th` September 2024 | Alpha Release. |
220+
+---------+------------------------------+-------------------------------------------------------------------+
220221
| 00alp1 | 5\ :sup:`th` February 2025 | Added table for floating-point atomic `fetch_add` operations |
221222
+---------+------------------------------+-------------------------------------------------------------------+
222223

@@ -1079,8 +1080,8 @@ contains ``val``. The value initially loaded from memory is returned in
10791080
| | | loop: |
10801081
| | | LDXR W0, [X1] |
10811082
| | | FMOV S0, W0 |
1082-
| | | FADD S1, S1, S0 |
1083-
| | | FMOV W0, S1 |
1083+
| | | FADD S2, S1, S0 |
1084+
| | | FMOV W0, S2 |
10841085
| | | STXR W3, W0, [X1] |
10851086
| | | CBNZ W3, loop |
10861087
| +---------------+--------------------------------------+
@@ -1093,8 +1094,8 @@ contains ``val``. The value initially loaded from memory is returned in
10931094
| | | loop: |
10941095
| | | LDAXR W0, [X1] |
10951096
| | | FMOV S0, W0 |
1096-
| | | FADD S1, S1, S0 |
1097-
| | | FMOV W0, S1 |
1097+
| | | FADD S2, S1, S0 |
1098+
| | | FMOV W0, S2 |
10981099
| | | STXR W3, W0, [X1] |
10991100
| | | CBNZ W3, loop |
11001101
| +---------------+--------------------------------------+
@@ -1107,8 +1108,8 @@ contains ``val``. The value initially loaded from memory is returned in
11071108
| | | loop: |
11081109
| | | LDXR W0, [X1] |
11091110
| | | FMOV S0, W0 |
1110-
| | | FADD S1, S1, S0 |
1111-
| | | FMOV W0, S1 |
1111+
| | | FADD S2, S1, S0 |
1112+
| | | FMOV W0, S2 |
11121113
| | | STLXR W3, W0, [X1] |
11131114
| | | CBNZ W3, loop |
11141115
| +---------------+--------------------------------------+
@@ -1121,8 +1122,8 @@ contains ``val``. The value initially loaded from memory is returned in
11211122
| | | loop: |
11221123
| | | LDAXR W0, [X1] |
11231124
| | | FMOV S0, W0 |
1124-
| | | FADD S1, S1, S0 |
1125-
| | | FMOV W0, S1 |
1125+
| | | FADD S2, S1, S0 |
1126+
| | | FMOV W0, S2 |
11261127
| | | STLXR W3, W0, [X1] |
11271128
| | | CBNZ W3, loop |
11281129
| +---------------+--------------------------------------+

0 commit comments

Comments
 (0)