A64: Implement SSHL (scalar)
This commit is contained in:
parent
ef1e69a1e3
commit
e71612d394
2 changed files with 14 additions and 1 deletions
|
@ -447,7 +447,7 @@ INST(ADDP_pair, "ADDP (scalar)", "01011
|
|||
//INST(SQSUB_1, "SQSUB", "01011110zz1mmmmm001011nnnnnddddd")
|
||||
INST(CMGT_reg_1, "CMGT (register)", "01011110zz1mmmmm001101nnnnnddddd")
|
||||
INST(CMGE_reg_1, "CMGE (register)", "01011110zz1mmmmm001111nnnnnddddd")
|
||||
//INST(SSHL_1, "SSHL", "01011110zz1mmmmm010001nnnnnddddd")
|
||||
INST(SSHL_1, "SSHL", "01011110zz1mmmmm010001nnnnnddddd")
|
||||
//INST(SQSHL_reg_1, "SQSHL (register)", "01011110zz1mmmmm010011nnnnnddddd")
|
||||
//INST(SRSHL_1, "SRSHL", "01011110zz1mmmmm010101nnnnnddddd")
|
||||
//INST(SQRSHL_1, "SQRSHL", "01011110zz1mmmmm010111nnnnnddddd")
|
||||
|
|
|
@ -130,6 +130,19 @@ bool TranslatorVisitor::CMTST_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd) {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::SSHL_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd) {
|
||||
if (size != 0b11) {
|
||||
return ReservedValue();
|
||||
}
|
||||
|
||||
const IR::U128 operand1 = V(64, Vn);
|
||||
const IR::U128 operand2 = V(64, Vm);
|
||||
const IR::U128 result = ir.VectorLogicalVShiftSigned(64, operand1, operand2);
|
||||
|
||||
V(64, Vd, result);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TranslatorVisitor::SUB_1(Imm<2> size, Vec Vm, Vec Vn, Vec Vd) {
|
||||
if (size != 0b11) {
|
||||
return ReservedValue();
|
||||
|
|
Loading…
Reference in a new issue