Explorar o código

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

git-svn-id: trunk@36737 -
florian %!s(int64=8) %!d(string=hai) anos
pai
achega
a7d127cf08
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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;