Parcourir la source

* only sparc v7 and v8 require an instruction between FCMP and the branch

git-svn-id: trunk@36737 -
florian il y a 8 ans
Parent
commit
a7d127cf08
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      compiler/sparcgen/ncpuadd.pas

+ 5 - 1
compiler/sparcgen/ncpuadd.pas

@@ -262,8 +262,12 @@ interface
           op:=A_FCMPs;
         current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(op,
              left.location.register,right.location.register));
+
+{$ifdef SPARC32}
         { Delay slot (can only contain integer operation) }
-        current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
+        if current_settings.cputype in [cpu_SPARC_V7,cpu_SPARC_V8] then
+          current_asmdata.CurrAsmList.concat(taicpu.op_none(A_NOP));
+{$endif SPARC32}
       end;