diff options
Diffstat (limited to 'target/loongarch/vec_helper.c')
-rw-r--r-- | target/loongarch/vec_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/loongarch/vec_helper.c b/target/loongarch/vec_helper.c index f749800880..1a602ee548 100644 --- a/target/loongarch/vec_helper.c +++ b/target/loongarch/vec_helper.c @@ -941,13 +941,13 @@ void HELPER(vmsknz_b)(void *vd, void *vj, uint32_t desc) } } -void HELPER(vnori_b)(void *vd, void *vj, uint64_t imm, uint32_t v) +void HELPER(vnori_b)(void *vd, void *vj, uint64_t imm, uint32_t desc) { int i; VReg *Vd = (VReg *)vd; VReg *Vj = (VReg *)vj; - for (i = 0; i < LSX_LEN/8; i++) { + for (i = 0; i < simd_oprsz(desc); i++) { Vd->B(i) = ~(Vj->B(i) | (uint8_t)imm); } } |