From df80d4e6120edd441361bcf9e2e64045ec042c2c Mon Sep 17 00:00:00 2001 From: "J. Gareth \"Curious Kit\" Moreton" Date: Tue, 8 Nov 2022 00:28:47 +0000 Subject: [PATCH] * x86: CMOV optimisations now check optimizecputype rather than cputype --- compiler/x86/aoptx86.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/x86/aoptx86.pas b/compiler/x86/aoptx86.pas index 387a432280..a92160f22e 100644 --- a/compiler/x86/aoptx86.pas +++ b/compiler/x86/aoptx86.pas @@ -11712,7 +11712,7 @@ unit aoptx86; Result:=true; exit; end - else if (CPUX86_HAS_CMOV in cpu_capabilities[current_settings.cputype]) and + else if (CPUX86_HAS_CMOV in cpu_capabilities[current_settings.optimizecputype]) and MatchInstruction(hp1,A_MOV,[S_W,S_L{$ifdef x86_64},S_Q{$endif x86_64}]) then begin { check for