Browse Source

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

git-svn-id: trunk@47688 -
florian 4 years ago
parent
commit
4f3a21eeec
1 changed files with 3 additions and 0 deletions
  1. 3 0
      compiler/nadd.pas

+ 3 - 0
compiler/nadd.pas

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