]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Avoid using lxvb16x instruction in powerpc64/p8 files.
authorNiels Möller <nisse@lysator.liu.se>
Sat, 1 Mar 2025 14:15:34 +0000 (15:15 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 1 Mar 2025 14:15:34 +0000 (15:15 +0100)
powerpc64/p8/gcm-aes-decrypt.asm
powerpc64/p8/gcm-aes-encrypt.asm

index f3c4b125fa6f693bf6802fe022ac2daa6972bea6..10ac072e0f3da93bf19b397ea6cf56771f5fb289 100644 (file)
@@ -151,7 +151,8 @@ IF_LE(`
     vperm          D,D,D,LE_MASK
 ')
 
-    lxvb16x VSR(S0), 0, HT             C Load 'CTR'
+    lxvd2x VSR(S0), 0, HT              C Load 'CTR'
+IF_LE(`vperm S0, S0, S0, LE_MASK')
 
     addi LOOP, LOOP, -1
 
index 3cac6967e944ad0e0ad7243e0b2eaa9660c7303b..e326fbedf6b50babed29733a94945057890b8359 100644 (file)
@@ -151,7 +151,8 @@ IF_LE(`
     vperm          D,D,D,LE_MASK
 ')
 
-    lxvb16x VSR(S0), 0, HT             C Load 'CTR'
+    lxvd2x VSR(S0), 0, HT              C Load 'CTR'
+IF_LE(`vperm S0, S0, S0, LE_MASK')
 
     addi LOOP, LOOP, -1