https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128966

--- Comment #14 from Frank Scheiner <frank.scheiner at web dot de> ---
(In reply to Matt Turner from comment #12)
> Created attachment 66276 [details]
> test patch
> 
> Please give this a try.

Yes, this fixes it, much obliged! My rx2800 i2 is currently blocked by running
the testsuite of the latest GCC 17 snapshot. So for now I could only test it
with two cross-compilers at r17-6558-g78b9e69e110695 w/ and w/o the fix.

Comparing the assembly dumps for both objects shows the fix working alright:

| function | slot | writer | unfixed reload | fixed reload |
| -------- | ---- | ------ | ------- ------ | ----- ------ |
| tl (long double) | sp+16 | stf.spill | 1e0: ldfe f8=[r14] | 1e6: ldf.fill
f9=[r14] + mov f8=f9 |
| td (double) | sp+16 | 3f0: stf.spill [r14]=f9 | 420: ldfd f8=[r14] | 466:
ldf.fill f9=[r14] + mov f8=f9 |
| tf (float) | sp+16 | 630: stf.spill [r14]=f9 | 660: ldfs f8=[r14] | 6e6:
ldf.fill f9=[r14] + mov f8=f9 |

I will try to link the resulting objects (also from the new testcase) against
musl inside qemu-system-ia64 next and follow this later with some native tests
as soon as I have updated GCC 16.2.0 packages available for EPIC Slack.

Reply via email to