arm64: Implement SIMD shift instructions

Copyright (c) 2020, Arm Limited.
This commit is contained in:
Joey Gouly
2020-07-03 16:47:43 +01:00
parent 08efcbd9d5
commit 3a67d25ed6
5 changed files with 158 additions and 17 deletions

View File

@@ -1352,6 +1352,8 @@ impl MachInstEmit for Inst {
debug_assert_ne!(I64X2, ty);
(0b010_01110_00_1 | enc_size << 1, 0b100111)
}
VecALUOp::Sshl => (0b010_01110_00_1 | enc_size << 1, 0b010001),
VecALUOp::Ushl => (0b011_01110_00_1 | enc_size << 1, 0b010001),
};
sink.put4(enc_vec_rrr(top11, rm, bit15_10, rn, rd));
}