Lines Matching +full:5 +full:vs2

218     void HELPER(NAME)(void *vd, void *vs2, CPURISCVState *env,            \
229 round_key.d[0] = *((uint64_t *)vs2 + H8(i * 2 + 0)); \
230 round_key.d[1] = *((uint64_t *)vs2 + H8(i * 2 + 1)); \
244 void HELPER(NAME)(void *vd, void *vs2, CPURISCVState *env, \
255 round_key.d[0] = *((uint64_t *)vs2 + H8(0)); \
256 round_key.d[1] = *((uint64_t *)vs2 + H8(1)); \
307 uint32_t *vs2 = vs2_vptr; local
326 rk[0] = vs2[i * 4 + H4(0)];
327 rk[1] = vs2[i * 4 + H4(1)];
328 rk[2] = vs2[i * 4 + H4(2)];
329 rk[3] = vs2[i * 4 + H4(3)];
337 rk[5] = rk[1] ^ rk[4];
338 rk[6] = rk[2] ^ rk[5];
342 vd[i * 4 + H4(1)] = rk[5];
355 uint32_t *vs2 = vs2_vptr; in HELPER() local
378 rk[4] = vs2[i * 4 + H4(0)]; in HELPER()
379 rk[5] = vs2[i * 4 + H4(1)]; in HELPER()
380 rk[6] = vs2[i * 4 + H4(2)]; in HELPER()
381 rk[7] = vs2[i * 4 + H4(3)]; in HELPER()
430 static inline void vsha2ms_e32(uint32_t *vd, uint32_t *vs1, uint32_t *vs2) in vsha2ms_e32() argument
433 res[0] = sig1_sha256(vs1[H4(2)]) + vs2[H4(1)] + sig0_sha256(vd[H4(1)]) + in vsha2ms_e32()
435 res[1] = sig1_sha256(vs1[H4(3)]) + vs2[H4(2)] + sig0_sha256(vd[H4(2)]) + in vsha2ms_e32()
438 sig1_sha256(res[0]) + vs2[H4(3)] + sig0_sha256(vd[H4(3)]) + vd[H4(2)]; in vsha2ms_e32()
440 sig1_sha256(res[1]) + vs1[H4(0)] + sig0_sha256(vs2[H4(0)]) + vd[H4(3)]; in vsha2ms_e32()
447 static inline void vsha2ms_e64(uint64_t *vd, uint64_t *vs1, uint64_t *vs2) in vsha2ms_e64() argument
450 res[0] = sig1_sha512(vs1[2]) + vs2[1] + sig0_sha512(vd[1]) + vd[0]; in vsha2ms_e64()
451 res[1] = sig1_sha512(vs1[3]) + vs2[2] + sig0_sha512(vd[2]) + vd[1]; in vsha2ms_e64()
452 res[2] = sig1_sha512(res[0]) + vs2[3] + sig0_sha512(vd[3]) + vd[2]; in vsha2ms_e64()
453 res[3] = sig1_sha512(res[1]) + vs1[0] + sig0_sha512(vs2[0]) + vd[3]; in vsha2ms_e64()
460 void HELPER(vsha2ms_vv)(void *vd, void *vs1, void *vs2, CPURISCVState *env, in HELPER()
473 ((uint32_t *)vs2) + i * 4); in HELPER()
477 ((uint64_t *)vs2) + i * 4); in HELPER()
510 static void vsha2c_64(uint64_t *vs2, uint64_t *vd, uint64_t *vs1) in vsha2c_64() argument
512 uint64_t a = vs2[3], b = vs2[2], e = vs2[1], f = vs2[0]; in vsha2c_64()
544 static void vsha2c_32(uint32_t *vs2, uint32_t *vd, uint32_t *vs1) in vsha2c_32() argument
546 uint32_t a = vs2[H4(3)], b = vs2[H4(2)], e = vs2[H4(1)], f = vs2[H4(0)]; in vsha2c_32()
578 void HELPER(vsha2ch32_vv)(void *vd, void *vs1, void *vs2, CPURISCVState *env, in HELPER()
588 vsha2c_32(((uint32_t *)vs2) + 4 * i, ((uint32_t *)vd) + 4 * i, in HELPER()
598 void HELPER(vsha2ch64_vv)(void *vd, void *vs1, void *vs2, CPURISCVState *env, in HELPER()
608 vsha2c_64(((uint64_t *)vs2) + 4 * i, ((uint64_t *)vd) + 4 * i, in HELPER()
618 void HELPER(vsha2cl32_vv)(void *vd, void *vs1, void *vs2, CPURISCVState *env, in HELPER()
628 vsha2c_32(((uint32_t *)vs2) + 4 * i, ((uint32_t *)vd) + 4 * i, in HELPER()
638 void HELPER(vsha2cl64_vv)(void *vd, void *vs1, void *vs2, CPURISCVState *env, in HELPER()
648 vsha2c_64(((uint64_t *)vs2) + 4 * i, ((uint64_t *)vd) + 4 * i, in HELPER()
677 uint32_t *vs2 = vs2_vptr; in HELPER() local
685 w[j + 8] = bswap32(vs2[H4((i * 8) + j)]); in HELPER()
739 static void sm3c(uint32_t *vd, uint32_t *vs1, uint32_t *vs2, uint32_t uimm) in sm3c() argument
744 x0 = vs2[0] ^ vs2[4]; in sm3c()
745 x1 = vs2[1] ^ vs2[5]; in sm3c()
750 tt2 = gg_j(vs1[4], vs1[5], vs1[6], j) + vs1[7] + ss1 + vs2[0]; in sm3c()
756 vd[7] = rol32(vs1[5], 19); in sm3c()
757 vs1[5] = vs1[4]; in sm3c()
758 vd[5] = p_0(tt2); in sm3c()
760 ss1 = rol32(rol32(vd[1], 12) + vd[5] + rol32(t_j(j), j % 32), 7); in sm3c()
763 tt2 = gg_j(vd[5], vs1[5], vd[7], j) + vs1[7] + ss1 + vs2[1]; in sm3c()
766 vd[6] = rol32(vs1[5], 19); in sm3c()
777 uint32_t *vs2 = vs2_vptr; in HELPER() local
785 v3[k] = bswap32(vs2[H4(i * 8 + k)]); in HELPER()
801 uint64_t *vs2 = vs2_vptr; in HELPER() local
809 uint64_t H[2] = {brev8(vs2[i * 2 + 0]), brev8(vs2[i * 2 + 1])}; in HELPER()
840 uint64_t *vs2 = vs2_vptr; in HELPER() local
848 uint64_t H[2] = {brev8(vs2[i * 2 + 0]), brev8(vs2[i * 2 + 1])}; in HELPER()
872 void HELPER(vsm4k_vi)(void *vd, void *vs2, uint32_t uimm5, CPURISCVState *env, in HELPER()
891 rk[j - vstart] = *((uint32_t *)vs2 + H4(j)); in HELPER()
932 void HELPER(vsm4r_vv)(void *vd, void *vs2, CPURISCVState *env, uint32_t desc) in HELPER()
949 rk[j - vstart] = *((uint32_t *)vs2 + H4(j)); in HELPER()
968 void HELPER(vsm4r_vs)(void *vd, void *vs2, CPURISCVState *env, uint32_t desc) in HELPER()
985 rk[j] = *((uint32_t *)vs2 + H4(j)); in HELPER()