Moving byte order/memory access to poly.
This commit is contained in:
@@ -1343,7 +1343,9 @@ int InstrEmit_vsldoi_(PPCHIRBuilder& f, uint32_t vd, uint32_t va, uint32_t vb,
|
||||
// (ABCD ABCD) << 4b = (BCDA)
|
||||
// (VA << SH) OR (VB >> (16 - SH))
|
||||
vec128_t shift = *((vec128_t*)(__vsldoi_table[sh]));
|
||||
for (int i = 0; i < 4; ++i) shift.i4[i] = XESWAP32BE(shift.i4[i]);
|
||||
for (int i = 0; i < 4; ++i) {
|
||||
shift.i4[i] = poly::byte_swap(shift.i4[i]);
|
||||
}
|
||||
Value* control = f.LoadConstant(shift);
|
||||
Value* v = f.Permute(control, f.LoadVR(va), f.LoadVR(vb), INT8_TYPE);
|
||||
f.StoreVR(vd, v);
|
||||
|
||||
Reference in New Issue
Block a user