A64: Zero upper 64 bits in ORN if using the 64-bit variant
Resolves a TODO
This commit is contained in:
parent
07930f0253
commit
792cb91753
@ -123,9 +123,12 @@ bool TranslatorVisitor::ORN_asimd(bool Q, Vec Vm, Vec Vn, Vec Vd) {
|
||||
auto operand1 = V(datasize, Vn);
|
||||
auto operand2 = V(datasize, Vm);
|
||||
|
||||
// TODO: This does not zero the upper 64 bits when datasize == 64. This may break future optimization passes.
|
||||
auto result = ir.VectorOr(operand1, ir.VectorNot(operand2));
|
||||
|
||||
if (datasize == 64) {
|
||||
result = ir.VectorZeroUpper(result);
|
||||
}
|
||||
|
||||
V(datasize, Vd, result);
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user