Skip to content

Commit

Permalink
[LSFE] Correct change 9f262a0 to preserve S1 (val) in example code (#315
Browse files Browse the repository at this point in the history
)

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.
  • Loading branch information
jthackray authored Mar 4, 2025
1 parent 9f262a0 commit 2b220a5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions atomicsabi64/atomicsabi64.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ changes to the content of the document for that release.
| Issue | Date | Change |
+=========+==============================+===================================================================+
| 00alp0 | 5\ :sup:`th` September 2024 | Alpha Release. |
+---------+------------------------------+-------------------------------------------------------------------+
| 00alp1 | 5\ :sup:`th` February 2025 | Added table for floating-point atomic `fetch_add` operations |
+---------+------------------------------+-------------------------------------------------------------------+

Expand Down Expand Up @@ -1079,8 +1080,8 @@ contains ``val``. The value initially loaded from memory is returned in
| | | loop: |
| | | LDXR W0, [X1] |
| | | FMOV S0, W0 |
| | | FADD S1, S1, S0 |
| | | FMOV W0, S1 |
| | | FADD S2, S1, S0 |
| | | FMOV W0, S2 |
| | | STXR W3, W0, [X1] |
| | | CBNZ W3, loop |
| +---------------+--------------------------------------+
Expand All @@ -1093,8 +1094,8 @@ contains ``val``. The value initially loaded from memory is returned in
| | | loop: |
| | | LDAXR W0, [X1] |
| | | FMOV S0, W0 |
| | | FADD S1, S1, S0 |
| | | FMOV W0, S1 |
| | | FADD S2, S1, S0 |
| | | FMOV W0, S2 |
| | | STXR W3, W0, [X1] |
| | | CBNZ W3, loop |
| +---------------+--------------------------------------+
Expand All @@ -1107,8 +1108,8 @@ contains ``val``. The value initially loaded from memory is returned in
| | | loop: |
| | | LDXR W0, [X1] |
| | | FMOV S0, W0 |
| | | FADD S1, S1, S0 |
| | | FMOV W0, S1 |
| | | FADD S2, S1, S0 |
| | | FMOV W0, S2 |
| | | STLXR W3, W0, [X1] |
| | | CBNZ W3, loop |
| +---------------+--------------------------------------+
Expand All @@ -1121,8 +1122,8 @@ contains ``val``. The value initially loaded from memory is returned in
| | | loop: |
| | | LDAXR W0, [X1] |
| | | FMOV S0, W0 |
| | | FADD S1, S1, S0 |
| | | FMOV W0, S1 |
| | | FADD S2, S1, S0 |
| | | FMOV W0, S2 |
| | | STLXR W3, W0, [X1] |
| | | CBNZ W3, loop |
| +---------------+--------------------------------------+
Expand Down

0 comments on commit 2b220a5

Please sign in to comment.