mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-01 20:24:36 +01:00
IR: Implement IR instructions A64{Get,Set}S
This commit is contained in:
parent
16fa2cd8f6
commit
b513b2ef05
6 changed files with 28 additions and 2 deletions
|
|
@ -124,6 +124,8 @@ void TranslatorVisitor::SP(size_t bitsize, IR::U32U64 value) {
|
|||
|
||||
IR::U128 TranslatorVisitor::V(size_t bitsize, Vec vec) {
|
||||
switch (bitsize) {
|
||||
case 32:
|
||||
return ir.GetS(vec);
|
||||
case 64:
|
||||
return ir.GetD(vec);
|
||||
case 128:
|
||||
|
|
@ -135,6 +137,9 @@ IR::U128 TranslatorVisitor::V(size_t bitsize, Vec vec) {
|
|||
|
||||
void TranslatorVisitor::V(size_t bitsize, Vec vec, IR::U128 value) {
|
||||
switch (bitsize) {
|
||||
case 32:
|
||||
ir.SetS(vec, value);
|
||||
return;
|
||||
case 64:
|
||||
ir.SetD(vec, value);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue