mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 10:50:58 +00:00
[gamecode] Sort out shr's opname for easier searching
Since the operand types sort out the difference between asr and shr, no need to give them different opnames. Means qfcc doesn't need to worry about which one it's searching for.
This commit is contained in:
parent
766bf758ab
commit
7971bcd91c
1 changed files with 4 additions and 3 deletions
|
@ -361,13 +361,14 @@ scale_formats = {
|
|||
},
|
||||
}
|
||||
shiftops_formats = {
|
||||
"opcode": "OP_{op_shift[u*2+r].upper()}_{shift_type[u*2+t]}_{ss+1}",
|
||||
"mnemonic": "{op_shift[u*2+r]}.{shift_type[u*2+t]}",
|
||||
"opcode": "OP_{mn_shift[u*2+r].upper()}_{shift_type[u*2+t]}_{ss+1}",
|
||||
"mnemonic": "{mn_shift[u*2+r]}.{shift_type[u*2+t]}",
|
||||
"opname": "{op_shift[u*2+r]}",
|
||||
"widths": "{ss+1}, {ss+1}, {ss+1}",
|
||||
"types": "{shift_types[t][u]}, {shift_types[t][0]}, {shift_types[t][u]}",
|
||||
"args": {
|
||||
"op_shift": ["shl", "asr", "shl", "shr"],
|
||||
"mn_shift": ["shl", "asr", "shl", "shr"],
|
||||
"op_shift": ["shl", "shr", "shl", "shr"],
|
||||
"shift_type": ['I', 'L', 'u', 'U'],
|
||||
"shift_types": [
|
||||
["ev_int", "ev_uint"],
|
||||
|
|
Loading…
Reference in a new issue