From 6706445cb408b02539e3803930bba89a82a0ea45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1roly=20Balogh?= Date: Thu, 26 May 2016 10:38:08 +0000 Subject: [PATCH] m68k: enable hardware divisions for all '020+, not only 020 itself git-svn-id: trunk@33810 - --- compiler/m68k/n68kmat.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/m68k/n68kmat.pas b/compiler/m68k/n68kmat.pas index f035200eb6..72d256e2ea 100644 --- a/compiler/m68k/n68kmat.pas +++ b/compiler/m68k/n68kmat.pas @@ -142,7 +142,7 @@ implementation function tm68kmoddivnode.first_moddivint: tnode; begin - if current_settings.cputype=cpu_MC68020 then + if current_settings.cputype in cpu_mc68020p then result:=nil else result:=inherited first_moddivint; @@ -151,7 +151,7 @@ implementation procedure tm68kmoddivnode.emit_div_reg_reg(signed: boolean;denum,num : tregister); begin - if current_settings.cputype=cpu_MC68020 then + if current_settings.cputype in cpu_mc68020p then begin if signed then current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_DIVS,S_L,denum,num)) @@ -167,7 +167,7 @@ implementation var tmpreg : tregister; begin - if current_settings.cputype=cpu_MC68020 then + if current_settings.cputype in cpu_mc68020p then begin tmpreg:=cg.getintregister(current_asmdata.CurrAsmList,OS_INT); { copy the numerator to the tmpreg, so we can use it as quotient, which