adjust some code order

This commit is contained in:
nihui 2024-02-23 21:15:59 +08:00 committed by GitHub
parent 097ec7d715
commit 4740d0ce06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

16
ruapu.h
View File

@ -232,6 +232,10 @@ RUAPU_INSTCODE(vsx, 0x104210c0) // vaddudm v2,v2,v2
#elif __s390x__
RUAPU_INSTCODE(zvector, 0xe7, 0x00, 0x02, 0x00, 0x00, 0x8f) // vfmasb v0,v0,v0,v0
#elif __loongarch__
RUAPU_INSTCODE(lsx, 0x700b0000) //vadd.w vr0, vr0, vr0
RUAPU_INSTCODE(lasx, 0x740b0000) //xvadd.w xr0, xr0, xr0
#elif __riscv
RUAPU_INSTCODE(i, 0x00a50533) // add a0,a0,a0
RUAPU_INSTCODE(m, 0x02a50533) // mul a0,a0,a0
@ -245,10 +249,6 @@ RUAPU_INSTCODE(zfhmin, 0xe4000553) // fmv.x.h a0, ft0
RUAPU_INSTCODE(zicsr, 0xc0102573); // csrr a0, time
RUAPU_INSTCODE(zifencei, 0x0000100f); // fence.i
#elif __loongarch__
RUAPU_INSTCODE(lsx, 0x700b0000) //vadd.w vr0, vr0, vr0
RUAPU_INSTCODE(lasx, 0x740b0000) //xvadd.w xr0, xr0, xr0
#endif
#undef RUAPU_INSTCODE
@ -321,6 +321,10 @@ RUAPU_ISAENTRY(vsx)
#elif __s390x__
RUAPU_ISAENTRY(zvector)
#elif __loongarch__
RUAPU_ISAENTRY(lsx)
RUAPU_ISAENTRY(lasx)
#elif __riscv
RUAPU_ISAENTRY(i)
RUAPU_ISAENTRY(m)
@ -334,10 +338,6 @@ RUAPU_ISAENTRY(zfhmin)
RUAPU_ISAENTRY(zicsr)
RUAPU_ISAENTRY(zifencei)
#elif __loongarch__
RUAPU_ISAENTRY(lsx)
RUAPU_ISAENTRY(lasx)
#endif
};