translate: zero extend result in Vpart when storing to lower part of vector
This commit is contained in:
parent
87ca63699f
commit
3acd9c9200
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ void TranslatorVisitor::Vpart(size_t bitsize, Vec vec, size_t part, IR::U128 val
|
||||||
ASSERT(part == 0 || part == 1);
|
ASSERT(part == 0 || part == 1);
|
||||||
if (part == 0) {
|
if (part == 0) {
|
||||||
ASSERT(bitsize == 64);
|
ASSERT(bitsize == 64);
|
||||||
V(128, vec, value);
|
V(128, vec, ir.VectorZeroExtend(bitsize, value));
|
||||||
} else {
|
} else {
|
||||||
ASSERT(bitsize == 64);
|
ASSERT(bitsize == 64);
|
||||||
V(128, vec, ir.VectorInterleaveLower(64, V(128, vec), value));
|
V(128, vec, ir.VectorInterleaveLower(64, V(128, vec), value));
|
||||||
|
|
Loading…
Reference in a new issue