From cf86412832e81cd030c2574c849326d8c6fa8d78 Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Mon, 17 Jul 2006 13:54:49 +0000 Subject: [PATCH] * fixed regInInstruction to detect register usages in Ch_ALL instructions whereby the registers are explicitly named in operands (mainly for unsupported mmx/sse instructions) git-svn-id: trunk@4240 - --- compiler/i386/daopt386.pas | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/i386/daopt386.pas b/compiler/i386/daopt386.pas index 01e2b5c1df..94513d25a0 100644 --- a/compiler/i386/daopt386.pas +++ b/compiler/i386/daopt386.pas @@ -838,6 +838,13 @@ begin (supreg in [RS_EAX,RS_EDX]) else begin + for opcount := 0 to p.ops-1 do + if (p.oper[opCount]^.typ = top_ref) and + reginref(supreg,p.oper[opcount]^.ref^) then + begin + regInInstruction := true; + exit + end; for opcount := 1 to maxinschanges do case insprop[p.opcode].Ch[opCount] of CH_REAX..CH_MEDI: