commit | d34b353876d22071e2938d03bafeeb58d0b8fab4 | [log] [tgz] |
---|---|---|
author | Akira Baruah <akirabaruah@google.com> | Fri Dec 15 18:48:45 2023 +0000 |
committer | Akira Baruah <akirabaruah@google.com> | Fri Dec 15 23:35:22 2023 +0000 |
tree | 930988074114fcccfda5309095e01705b8c6bc1e | |
parent | b4f4b06d18d4931679f0132c5a0855546625278f [diff] |
Add Vsrl and Vsra (shift right) instructions Relies on compiler-defined right shift behavior based on unsigned and signed integral types, corresponding to logical and arithmetic right shifts, respectively. Tests rely on custom sources to ensure most significant bit is set. These inputs properly test differences between logical and arithmetic right shifts. Also renames MaskBits helper to MaskBitsForShift to clarify intention. Bug: 316602047 Test: berberis_host_tests Change-Id: I1d099b664d4f9a4bb263f40ccdd1409306bf1452
Berberis: dynamic binary translator to run Android apps with riscv64 native code on x86_64 devices or emulators.