From c6153010d1b280e6166f9e4eb1cb10af6e793df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1roly=20Balogh?= Date: Sun, 15 Jun 2014 12:28:51 +0000 Subject: [PATCH] m68k: plain 68000 doesn't support index scaling at all (020+ and CF only) git-svn-id: trunk@27967 - --- compiler/m68k/n68kmem.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/m68k/n68kmem.pas b/compiler/m68k/n68kmem.pas index d67b7533ad..6f34189ab6 100644 --- a/compiler/m68k/n68kmem.pas +++ b/compiler/m68k/n68kmem.pas @@ -69,6 +69,7 @@ implementation hreg:=cg.getintregister(current_asmdata.CurrAsmList,OS_32); { if we have a possibility, setup a scalefactor instead of the MUL } if (location.reference.base=NR_NO) or (location.reference.index<>NR_NO) or + (current_settings.cputype in [cpu_m68000]) or ((current_settings.cputype in cpu_coldfire) and not (l in [2,4])) or not (l in [2,4,8]) then cg.a_op_const_reg_reg(current_asmdata.CurrAsmList,OP_IMUL,OS_ADDR,l,maybe_const_reg,hreg)