mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
AVX-512: Find the correct position of the last SIMD op
Since embedded rounding mode is following the last SIMD op, GPR op should be skipped when finding the last SIMD op. Signed-off-by: Jin Kyu Song <jin.kyu.song@intel.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
c62bc20a0b
commit
4a6570616a
@ -1159,6 +1159,8 @@ static int64_t calcsize(int32_t segment, int64_t offset, int bits,
|
||||
rfield = nasm_regvals[opx->basereg];
|
||||
/* find the last SIMD operand where ER decorator resides */
|
||||
oplast = &ins->oprs[op1 > op2 ? op1 : op2];
|
||||
while (oplast && is_class(REG_CLASS_GPR, oplast->type))
|
||||
oplast--;
|
||||
} else {
|
||||
rflags = 0;
|
||||
rfield = c & 7;
|
||||
|
Loading…
Reference in New Issue
Block a user