diff options
author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2020-12-04 22:43:55 +0000 |
---|---|---|
committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2020-12-04 22:43:55 +0000 |
commit | d81dc394d2db9ac39a395e07d6d241b181c84e7f (patch) | |
tree | f80f76d0eab38a6920939cad02768ac63bfa9ed8 /compiler/nadd.pas | |
parent | 6954d94458d250e31ae851cfb00baa796be8eae4 (diff) | |
download | fpc-d81dc394d2db9ac39a395e07d6d241b181c84e7f.tar.gz |
* don't do x*x -> optimziation for xtensa as it causes a recursive call in sqr(...)
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@47688 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/nadd.pas')
-rw-r--r-- | compiler/nadd.pas | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/nadd.pas b/compiler/nadd.pas index e30814d063..83b82fde05 100644 --- a/compiler/nadd.pas +++ b/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 |