shift-add is useful even with LD-ST-indexed-shifted
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 12 Apr 2023 20:37:47 +0000 (13:37 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Wed, 12 Apr 2023 20:37:47 +0000 (13:37 -0700)
openpower/sv/rfc/ls004.mdwn

index fe8c1513e2fb331c4f27c68e9e8a0bf061df057f..24c35769e0d7b467cc6684b459dcc963da22d416 100644 (file)
@@ -73,6 +73,10 @@ add shift-and-add.  Replaces a pair of explicit instructions in hot-loops.
    as the second operand is constrained to lower 32-bits
    and zero-extended.
 3. Both are 2-in 1-out instructions.
+4. shift-add operations are present in both x86 and aarch64,
+  since they are useful for both general arithmetic and for
+  computing addresses even when not immediately followed
+  with a load/store.
 
 TODO: signed 32-bit shift-and-add should be added, this needs to be addressed
 before submitting the RFC: <https://bugs.libre-soc.org/show_bug.cgi?id=996>