mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 02:11:19 +00:00
[qfcc] Check load/store operand type before mangling
This fixes the incorrect use of assign64 for quaternions. All tests except return-postop pass \o/.
This commit is contained in:
parent
0fa9d0d256
commit
6fe72b0420
1 changed files with 5 additions and 2 deletions
|
@ -315,8 +315,11 @@ rua_opcode_find (const char *name, operand_t *op_a, operand_t *op_b,
|
|||
// lot of instructions, but this mapping scheme leaves a lot to be desired.
|
||||
const char *opname_a = "";
|
||||
const char *opname_c = "";
|
||||
if (!strcmp (name, "load") || !strcmp (name, "store")
|
||||
|| !strcmp (name, "assign")) {
|
||||
etype_t type;
|
||||
if ((!strcmp (name, "load") || !strcmp (name, "store")
|
||||
|| !strcmp (name, "assign"))
|
||||
&& ((type = low_level_type (op_c->type)) == ev_long
|
||||
|| type == ev_ulong || type == ev_double)) {
|
||||
opname_c = name;
|
||||
if (!strcmp (name, "assign")) {
|
||||
opname_a = name;
|
||||
|
|
Loading…
Reference in a new issue