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:
Lioncash 2018-04-12 08:03:46 -04:00 committed by MerryMage
parent 20d2491267
commit e268b110f0

View file

@ -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);