Make sure to use the REGT_MULTIREG flags for opcodes that need it
This commit is contained in:
parent
8be7af41a9
commit
5643d6c692
2 changed files with 31 additions and 20 deletions
|
|
@ -291,14 +291,14 @@ struct VMReturn
|
|||
}
|
||||
void SetVector(const double val[3])
|
||||
{
|
||||
//assert(RegType == REGT_FLOAT);
|
||||
assert(RegType == (REGT_FLOAT|REGT_MULTIREG3));
|
||||
((double *)Location)[0] = val[0];
|
||||
((double *)Location)[1] = val[1];
|
||||
((double *)Location)[2] = val[2];
|
||||
}
|
||||
void SetVector2(const double val[2])
|
||||
{
|
||||
//assert(RegType == REGT_FLOAT);
|
||||
assert(RegType == (REGT_FLOAT|REGT_MULTIREG2));
|
||||
((double *)Location)[0] = val[0];
|
||||
((double *)Location)[1] = val[1];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue