-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: XCHAL_HAVE_ADDX
config is virtually ineffective against GCC 10.1 or later
#19
Fix: XCHAL_HAVE_ADDX
config is virtually ineffective against GCC 10.1 or later
#19
Conversation
This looks very nice, thanks! Did you build GCC with this machine definition change and verify it works, or do you need me to run a build pass on my server and try some trivial examples? |
partially built (C compiler only, with neither C++ nor libraries), and the example:
will be compiled to:
[cmdline: |
-edit- Got the labels backwards. d'oh! I just applied all 3 of your patches and rebuilt the chain, then did testing using my audio library (MP3 decoder). Patched (all 3) Gcc10.2 + newlib 4.0:
Orig Gcc10.2 + newlib 4.0:
While it's not dramatic, it is a decrease and I'm not finding any problems. Than you for the patches! I'll apply them w/the newlib 4 PR. |
Thanks for merging @earlephilhower, i'll download that. FYI: adding
|
@jcmvbkbc do you think this change should be applied upstream? |
@igrr I guess. I'm also curious what happened that the optimization that worked in 4.8 doesn't work any more, I'll have a look. |
Done. |
@jjsuwa-sys3175 Let me take a look. Also feel free to ping/cc me on future xtensa port improvements. |
this PR supersedes earlephilhower#19, earlephilhower#20, earlephilhower#21 and earlephilhower#25, by backporting from upstream: 06ff8708f0b834cf1b35afa46113c6c973905cad "gcc: xtensa: fix PR target/98285" 64a54505ec8249178b9767d1420354f8eb55de50 "gcc: xtensa: rearrange DI mode constant loading" 40bf68bbe0bdba305fde4ab825a06c085ba486fc "gcc: xtensa: add optimizations for shift operations" 18e86fae2a14f78e70aae06afce6bb9853068bb1 "gcc: xtensa: implement bswapsi2, bswapdi2 and helpers"
this PR supersedes earlephilhower#19, earlephilhower#20, earlephilhower#21 and earlephilhower#25, by backporting from upstream: 06ff8708f0b834cf1b35afa46113c6c973905cad "gcc: xtensa: fix PR target/98285" 64a54505ec8249178b9767d1420354f8eb55de50 "gcc: xtensa: rearrange DI mode constant loading" 40bf68bbe0bdba305fde4ab825a06c085ba486fc "gcc: xtensa: add optimizations for shift operations" 18e86fae2a14f78e70aae06afce6bb9853068bb1 "gcc: xtensa: implement bswapsi2, bswapdi2 and helpers"
See esp8266/Arduino#7742