<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic GCC generating not implemented instructions in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/GCC-generating-not-implemented-instructions/m-p/845049#M12400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;currently I am developing for a MPC5777 board, with e200z7 cores. Most of the things are going well, but I am stuck with a problem that is really annoying me already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use floating point operations on portions of my code, using the embedded hardware support. My toolchain is GCC 6.3 (powerpc-gcc), for which I am using the following flags:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASFLAGS_BASE = -g -a32 -mbooke -me500 --fatal-warnings&lt;/P&gt;&lt;P&gt;ARCH_FLAGS &lt;SPAN&gt; &lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;= -mpowerpc-gpopt -mfprnd -misel -m32 -mhard-float -mabi=spe -mmfpgpr &lt;STRONG&gt;-mfloat-gprs=single&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please notice the -mfloat-gprs=single flag. That is the one that is giving problems.&lt;/P&gt;&lt;P&gt;When I use&amp;nbsp;&lt;STRONG&gt;-mfloat-gprs=single&lt;/STRONG&gt;, I am not able to compile things properly, as some functions are not implemented:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;undefined reference to `__extendsfdf2',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;undefined reference to `__adddf3',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;undefined reference to `__divdf3',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;among others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if I compile using&amp;nbsp;&lt;STRONG&gt;-mfloat-gprs=double,&amp;nbsp;&lt;/STRONG&gt;it goes till the end and generate all my execution files. BUT, using this flag also generates extra functions, not implemented by the e200z7. I can't tell for sure all of them, as the code is getting bigger and it is mostly impossible to track all generated assembly. For instance, at the moment my execution gets stuck when it reaches the&amp;nbsp;&lt;STRONG&gt;efscfd&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;instruction, which is implemented by the e500 core, that has double precision floating point support, but not for the e200, that has single precision support only.#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, any piece of advice here would be amazingly welcome!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Nov 2018 20:53:54 GMT</pubDate>
    <dc:creator>felipe-gm</dc:creator>
    <dc:date>2018-11-16T20:53:54Z</dc:date>
    <item>
      <title>GCC generating not implemented instructions</title>
      <link>https://community.nxp.com/t5/MPC5xxx/GCC-generating-not-implemented-instructions/m-p/845049#M12400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;currently I am developing for a MPC5777 board, with e200z7 cores. Most of the things are going well, but I am stuck with a problem that is really annoying me already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use floating point operations on portions of my code, using the embedded hardware support. My toolchain is GCC 6.3 (powerpc-gcc), for which I am using the following flags:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASFLAGS_BASE = -g -a32 -mbooke -me500 --fatal-warnings&lt;/P&gt;&lt;P&gt;ARCH_FLAGS &lt;SPAN&gt; &lt;/SPAN&gt;&amp;nbsp; &amp;nbsp;= -mpowerpc-gpopt -mfprnd -misel -m32 -mhard-float -mabi=spe -mmfpgpr &lt;STRONG&gt;-mfloat-gprs=single&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please notice the -mfloat-gprs=single flag. That is the one that is giving problems.&lt;/P&gt;&lt;P&gt;When I use&amp;nbsp;&lt;STRONG&gt;-mfloat-gprs=single&lt;/STRONG&gt;, I am not able to compile things properly, as some functions are not implemented:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;undefined reference to `__extendsfdf2',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;undefined reference to `__adddf3',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;undefined reference to `__divdf3',&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;among others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if I compile using&amp;nbsp;&lt;STRONG&gt;-mfloat-gprs=double,&amp;nbsp;&lt;/STRONG&gt;it goes till the end and generate all my execution files. BUT, using this flag also generates extra functions, not implemented by the e200z7. I can't tell for sure all of them, as the code is getting bigger and it is mostly impossible to track all generated assembly. For instance, at the moment my execution gets stuck when it reaches the&amp;nbsp;&lt;STRONG&gt;efscfd&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;instruction, which is implemented by the e500 core, that has double precision floating point support, but not for the e200, that has single precision support only.#&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, any piece of advice here would be amazingly welcome!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2018 20:53:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/GCC-generating-not-implemented-instructions/m-p/845049#M12400</guid>
      <dc:creator>felipe-gm</dc:creator>
      <dc:date>2018-11-16T20:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: GCC generating not implemented instructions</title>
      <link>https://community.nxp.com/t5/MPC5xxx/GCC-generating-not-implemented-instructions/m-p/845050#M12401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The processor I'm working with is VLE not bookE, but I wonder if you would be better off with the NXP provided toolchain and gcc.&lt;/P&gt;&lt;P&gt;I checked on mine here and it allows -mcpu=e200z7 as an option.&lt;/P&gt;&lt;P&gt;" valid arguments to '-mcpu=' are: 401 403 405 405fp 440 440fp 464 464fp 476 476fp 505 601 602 603 603e 604 604e 620 630 740 7400 7450 750 801 821 823 8540 8548 860 970 G3 G4 G5 a2 cell e200z0 e200z2 e200z3 e200z4 e200z6 &lt;STRONG&gt;e200z7&lt;/STRONG&gt; e300c2 e300c3 e500mc e500mc64 e5500 e6500 ec603e native power3 power4 power5 power5+ power6 power6x power7 power8 powerpc powerpc64 powerpc64le rs64 titan "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using -mvle , but this version (of 'as') still lists -mbooke as an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 20:04:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/GCC-generating-not-implemented-instructions/m-p/845050#M12401</guid>
      <dc:creator>jamesmurray</dc:creator>
      <dc:date>2018-11-20T20:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: GCC generating not implemented instructions</title>
      <link>https://community.nxp.com/t5/MPC5xxx/GCC-generating-not-implemented-instructions/m-p/845051#M12402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James, thanks for replying.&lt;BR /&gt;Indeed, it is not the toolchain provided by NXP and for sure that&amp;nbsp;can be one issue. Nevertheless, as I am not relying on VLE for now, I assumed it would be ok to use my own port of GCC. Extra, I would love not to depend on updates/patches only from NXP, that is why I am forcing my own GCC version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thank you very much for your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 20:19:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/GCC-generating-not-implemented-instructions/m-p/845051#M12402</guid>
      <dc:creator>felipe-gm</dc:creator>
      <dc:date>2018-11-20T20:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: GCC generating not implemented instructions</title>
      <link>https://community.nxp.com/t5/MPC5xxx/GCC-generating-not-implemented-instructions/m-p/845052#M12403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it depends on your focus!?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've previously done some toolchain development, but currently I just want use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as the NXP gcc is generating useable code for me, I would rather leave that alone and work on the device firmware...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 00:22:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/GCC-generating-not-implemented-instructions/m-p/845052#M12403</guid>
      <dc:creator>jamesmurray</dc:creator>
      <dc:date>2018-11-21T00:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: GCC generating not implemented instructions</title>
      <link>https://community.nxp.com/t5/MPC5xxx/GCC-generating-not-implemented-instructions/m-p/845053#M12404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No argue there. Still, I am not sure I can rely solely on NXP toolchain. I do need to have access to the compiler code. I can go into much details, but there are portions of it that I need to change. I don't think I can do the same with the one provided by NXP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 15:07:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/GCC-generating-not-implemented-instructions/m-p/845053#M12404</guid>
      <dc:creator>felipe-gm</dc:creator>
      <dc:date>2018-11-21T15:07:00Z</dc:date>
    </item>
  </channel>
</rss>

