]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Eliminate use of r25.
authorNiels Möller <nisse@lysator.liu.se>
Sun, 17 Mar 2024 11:34:12 +0000 (12:34 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 11 May 2024 18:26:04 +0000 (20:26 +0200)
powerpc64/p8/gcm-aes-encrypt.asm

index 53d8a6b897537e6c36dc2fcc989fe62c9cfaf8a7..e6c4ba6c9f290680763f2c0ac95c6ba07597d9e6 100644 (file)
@@ -153,8 +153,7 @@ IF_BE(`vspltisb    LE_TEMP,0x03')
     lxvd2x         VSR(H4L),r11,HT
 
     addi HT, HT,  4048  C Advance to point to the 'CTR' field in the context
-
-    li r25,0x10
     li r26,0x20
     li r27,0x30
     li r28,0x40
@@ -223,7 +222,7 @@ Loop8x_en:
     xxlor vs8, VSR(S7), VSR(S7)
 
     lxvd2x VSR(S0),0,SSRC
-    lxvd2x VSR(S1),r25,SSRC
+    lxvd2x VSR(S1),r9,SSRC
     lxvd2x VSR(S2),r26,SSRC
     lxvd2x VSR(S3),r27,SSRC
     lxvd2x VSR(S4),r28,SSRC
@@ -262,7 +261,7 @@ IF_LE(`OPN_XXXY(vperm, LE_MASK, S4,S5,S6,S7)')
 IF_LE(`OPN_XXXY(vperm, LE_MASK, S0,S1,S2,S3)')
 
     stxvd2x VSR(S0),0,SDST
-    stxvd2x VSR(S1),r25,SDST
+    stxvd2x VSR(S1),r9,SDST
     stxvd2x VSR(S2),r26,SDST
     stxvd2x VSR(S3),r27,SDST
 
@@ -340,7 +339,7 @@ do_ghash:
     xxlor vs8, VSR(S7), VSR(S7)
 
     lxvd2x VSR(S0),0,SSRC
-    lxvd2x VSR(S1),r25,SSRC
+    lxvd2x VSR(S1),r9,SSRC
     lxvd2x VSR(S2),r26,SSRC
     lxvd2x VSR(S3),r27,SSRC
     lxvd2x VSR(S4),r28,SSRC
@@ -377,7 +376,7 @@ IF_LE(`OPN_XXXY(vperm, LE_MASK, S4,S5,S6,S7)')
 IF_LE(`OPN_XXXY(vperm, LE_MASK, S0,S1,S2,S3)')
 
     stxvd2x VSR(S0),0,SDST
-    stxvd2x VSR(S1),r25,SDST
+    stxvd2x VSR(S1),r9,SDST
     stxvd2x VSR(S2),r26,SDST
     stxvd2x VSR(S3),r27,SDST