Skip to content

Commit fbd612f

Browse files
CNClareChenyinshiyou
authored andcommitted
loongarch64: Add ic/zamin optimization functions.
1 parent d97272c commit fbd612f

File tree

5 files changed

+988
-0
lines changed

5 files changed

+988
-0
lines changed

common_loongarch64.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ static inline int WhereAmI(void){
133133

134134
#define XVFSUB xvfsub.d
135135
#define XVFADD xvfadd.d
136+
#define XVFMUL xvfmul.d
136137
#define XVFMADD xvfmadd.d
137138
#define XVFMIN xvfmin.d
138139
#define XVFMINA xvfmina.d
@@ -146,6 +147,7 @@ static inline int WhereAmI(void){
146147

147148
#define VFSUB vfsub.d
148149
#define VFADD vfadd.d
150+
#define VFMUL vfmul.d
149151
#define VFMADD vfmadd.d
150152
#define VFMIN vfmin.d
151153
#define VFMINA vfmina.d
@@ -185,6 +187,7 @@ static inline int WhereAmI(void){
185187

186188
#define XVFSUB xvfsub.s
187189
#define XVFADD xvfadd.s
190+
#define XVFMUL xvfmul.s
188191
#define XVFMADD xvfmadd.s
189192
#define XVFMIN xvfmin.s
190193
#define XVFMINA xvfmina.s
@@ -198,6 +201,7 @@ static inline int WhereAmI(void){
198201

199202
#define VFSUB vfsub.s
200203
#define VFADD vfadd.s
204+
#define VFMUL vfmul.s
201205
#define VFMADD vfmadd.s
202206
#define VFMIN vfmin.s
203207
#define VFMINA vfmina.s

kernel/loongarch64/KERNEL.LOONGSON2K1000

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ IZAMAXKERNEL = icamax_lsx.S
3838

3939
ISAMINKERNEL = iamin_lsx.S
4040
IDAMINKERNEL = iamin_lsx.S
41+
ICAMINKERNEL = icamin_lsx.S
42+
IZAMINKERNEL = icamin_lsx.S
4143

4244
SCOPYKERNEL = copy_lsx.S
4345
DCOPYKERNEL = copy_lsx.S

kernel/loongarch64/KERNEL.LOONGSON3R5

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ IZAMAXKERNEL = icamax_lasx.S
3838

3939
ISAMINKERNEL = iamin_lasx.S
4040
IDAMINKERNEL = iamin_lasx.S
41+
ICAMINKERNEL = icamin_lasx.S
42+
IZAMINKERNEL = icamin_lasx.S
4143

4244
SCOPYKERNEL = copy_lasx.S
4345
DCOPYKERNEL = copy_lasx.S

0 commit comments

Comments
 (0)