mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 20:44:37 +03:00
In addition to LEA, allow CL* and PREFETCH* instructions to have memory operand of any size
This commit is contained in:
@@ -1675,8 +1675,8 @@ class InstSignatureTable extends core.Task {
|
||||
}
|
||||
if (mem) {
|
||||
op.flags[mem] = true;
|
||||
// HACK: Allow LEA to use any memory size.
|
||||
if (inst.name === "lea") {
|
||||
// HACK: Allow LEA|CL*|PREFETCH* to use any memory size.
|
||||
if (/^(cldemote|clwb|clflush\w*|lea|prefetch\w*)$/.test(inst.name)) {
|
||||
op.flags.mem = true;
|
||||
Object.assign(op.flags, MemOp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user