From: nasm-bot f. J. K. S. <jin...@in...> - 2013-09-21 12:30:21
|
Commit-ID: 4a6570616aa1fadf1544c0c099c4bf22683f367f Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=4a6570616aa1fadf1544c0c099c4bf22683f367f Author: Jin Kyu Song <jin...@in...> AuthorDate: Mon, 26 Aug 2013 20:28:39 -0700 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Wed, 28 Aug 2013 09:35:54 +0400 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...@in...> Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- assemble.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assemble.c b/assemble.c index 4f0cd9c..313ff8a 100644 --- a/assemble.c +++ b/assemble.c @@ -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; |