Skip to content

Commit 84908d6

Browse files
authored
Merge pull request #2269 from martin-frbg/ppc-fixes
Ppc fixes
2 parents 6b83079 + 596a223 commit 84908d6

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

kernel/power/caxpy_power8.S

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ caxpy_k:
3434
lfs 0,4(10)
3535
fmuls 10,2,10
3636
#ifdef CONJ
37-
fmsubs 11,11,1,10
38-
#else
3937
fmadds 11,11,1,10
38+
#else
39+
fmsubs 11,11,1,10
4040
#endif
4141
fadds 12,12,11
4242
stfs 12,0(10)
@@ -241,8 +241,13 @@ caxpy_k:
241241
lfsx 12,8,5
242242
lfsx 0,10,5
243243
fmuls 11,2,11
244+
#ifdef CONJ
244245
fmsubs 12,1,12,11
245246
fsubs 0,0,12
247+
#else
248+
fmadds 12,1,12,11
249+
fadds 0,0,12
250+
#endif
246251
stfsx 0,10,5
247252
ble 7,.L39
248253
sldi 6,6,2

kernel/power/cdot_power9.S

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
.file "cdot.c"
1+
#define ASSEMBLER
2+
#include "common.h"
3+
/*
4+
.file "cdot.c"
25
.abiversion 2
36
.section ".text"
47
.align 2
58
.p2align 4,,15
69
.globl cdot_k
710
.type cdot_k, @function
11+
*/
12+
PROLOGUE
13+
814
cdot_k:
915
.LCF0:
1016
0: addis 2,12,.TOC.-.LCF0@ha

0 commit comments

Comments
 (0)