A64: Implement SRSRA (vector)
This commit is contained in:
parent
bc6016cad7
commit
e3d9bf55e7
2 changed files with 14 additions and 1 deletions
|
@ -792,7 +792,7 @@ INST(UnallocatedEncoding, "Unallocated SIMD modified immediate", "0--01
|
||||||
INST(SSHR_2, "SSHR", "0Q0011110IIIIiii000001nnnnnddddd")
|
INST(SSHR_2, "SSHR", "0Q0011110IIIIiii000001nnnnnddddd")
|
||||||
INST(SSRA_2, "SSRA", "0Q0011110IIIIiii000101nnnnnddddd")
|
INST(SSRA_2, "SSRA", "0Q0011110IIIIiii000101nnnnnddddd")
|
||||||
INST(SRSHR_2, "SRSHR", "0Q0011110IIIIiii001001nnnnnddddd")
|
INST(SRSHR_2, "SRSHR", "0Q0011110IIIIiii001001nnnnnddddd")
|
||||||
//INST(SRSRA_2, "SRSRA", "0Q0011110IIIIiii001101nnnnnddddd")
|
INST(SRSRA_2, "SRSRA", "0Q0011110IIIIiii001101nnnnnddddd")
|
||||||
INST(SHL_2, "SHL", "0Q0011110IIIIiii010101nnnnnddddd")
|
INST(SHL_2, "SHL", "0Q0011110IIIIiii010101nnnnnddddd")
|
||||||
//INST(SQSHL_imm_2, "SQSHL (immediate)", "0Q0011110IIIIiii011101nnnnnddddd")
|
//INST(SQSHL_imm_2, "SQSHL (immediate)", "0Q0011110IIIIiii011101nnnnnddddd")
|
||||||
INST(SHRN, "SHRN, SHRN2", "0Q0011110IIIIiii100001nnnnnddddd")
|
INST(SHRN, "SHRN, SHRN2", "0Q0011110IIIIiii100001nnnnnddddd")
|
||||||
|
|
|
@ -80,6 +80,19 @@ bool TranslatorVisitor::SRSHR_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool TranslatorVisitor::SRSRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd) {
|
||||||
|
if (immh == 0b0000) {
|
||||||
|
return DecodeError();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!Q && immh.Bit<3>()) {
|
||||||
|
return ReservedValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
SignedRoundingShiftRight(*this, Q, immh, immb, Vn, Vd, ShiftExtraBehavior::Accumulate);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool TranslatorVisitor::SSRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd) {
|
bool TranslatorVisitor::SSRA_2(bool Q, Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd) {
|
||||||
if (immh == 0b0000) {
|
if (immh == 0b0000) {
|
||||||
return DecodeError();
|
return DecodeError();
|
||||||
|
|
Loading…
Reference in a new issue