瀏覽代碼

* don't do x*x -> optimziation for xtensa as it causes a recursive call in sqr(...)

git-svn-id: trunk@47688 -
florian 4 年之前
父節點
當前提交
4f3a21eeec
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/nadd.pas

+ 3 - 0
compiler/nadd.pas

@@ -1549,6 +1549,9 @@ implementation
                (current_settings.fputype<>fpu_soft) and
                not(cs_fp_emulation in current_settings.moduleswitches) and
 {$endif cpufpemu}
+{$ifdef xtensa}
+               (FPUXTENSA_DOUBLE in fpu_capabilities[current_settings.fputype]) and
+{$endif xtensa}
                (nodetype=muln) and
                is_real(left.resultdef) and is_real(right.resultdef) and
                left.isequal(right) and