A64: Implement SSRA (scalar)
This commit is contained in:
parent
255a33936d
commit
52cad2d9d0
2 changed files with 10 additions and 1 deletions
|
@ -468,7 +468,7 @@ INST(SUB_1, "SUB (vector)", "01111
|
||||||
|
|
||||||
// Data Processing - FP and SIMD - SIMD Scalar shift by immediate
|
// Data Processing - FP and SIMD - SIMD Scalar shift by immediate
|
||||||
INST(SSHR_1, "SSHR", "010111110IIIIiii000001nnnnnddddd")
|
INST(SSHR_1, "SSHR", "010111110IIIIiii000001nnnnnddddd")
|
||||||
//INST(SSRA_1, "SSRA", "010111110IIIIiii000101nnnnnddddd")
|
INST(SSRA_1, "SSRA", "010111110IIIIiii000101nnnnnddddd")
|
||||||
//INST(SRSHR_1, "SRSHR", "010111110IIIIiii001001nnnnnddddd")
|
//INST(SRSHR_1, "SRSHR", "010111110IIIIiii001001nnnnnddddd")
|
||||||
//INST(SRSRA_1, "SRSRA", "010111110IIIIiii001101nnnnnddddd")
|
//INST(SRSRA_1, "SRSRA", "010111110IIIIiii001101nnnnnddddd")
|
||||||
INST(SHL_1, "SHL", "010111110IIIIiii010101nnnnnddddd")
|
INST(SHL_1, "SHL", "010111110IIIIiii010101nnnnnddddd")
|
||||||
|
|
|
@ -48,6 +48,15 @@ bool TranslatorVisitor::SSHR_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool TranslatorVisitor::SSRA_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd) {
|
||||||
|
if (!immh.Bit<3>()) {
|
||||||
|
return ReservedValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
ShiftRight(*this, immh, immb, Vn, Vd, ShiftExtraBehavior::Accumulate, Signedness::Signed);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool TranslatorVisitor::SHL_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd) {
|
bool TranslatorVisitor::SHL_1(Imm<4> immh, Imm<3> immb, Vec Vn, Vec Vd) {
|
||||||
if (!immh.Bit<3>()) {
|
if (!immh.Bit<3>()) {
|
||||||
return ReservedValue();
|
return ReservedValue();
|
||||||
|
|
Loading…
Reference in a new issue