simd_sha512: Simplify RAX1
Now that the vector rotation helpers are in, replace the explicit shifting with the relevant helper function that does the same thing. Simply tidies up code; no behavioral changes are made.
This commit is contained in:
parent
20d2491267
commit
e268b110f0
1 changed files with 1 additions and 2 deletions
|
@ -12,8 +12,7 @@ bool TranslatorVisitor::RAX1(Vec Vm, Vec Vn, Vec Vd) {
|
|||
const IR::U128 m = ir.GetQ(Vm);
|
||||
const IR::U128 n = ir.GetQ(Vn);
|
||||
|
||||
const IR::U128 rotated_m = ir.VectorOr(ir.VectorLogicalShiftLeft(64, m, 1),
|
||||
ir.VectorLogicalShiftRight(64, m, 63));
|
||||
const IR::U128 rotated_m = ir.VectorRotateLeft(64, m, 1);
|
||||
const IR::U128 result = ir.VectorEor(n, rotated_m);
|
||||
|
||||
ir.SetQ(Vd, result);
|
||||
|
|
Loading…
Reference in a new issue