diff options
author | Alan Modra <amodra@gcc.gnu.org> | 2018-11-29 15:33:01 +1030 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2018-11-29 15:33:01 +1030 |
commit | 9caa6732f9aafd8335adda6e9a57239d1fed40cb (patch) | |
tree | ed29d449b143f1be411ef19248beb085ebf1cf11 /gcc/genmodes.c | |
parent | aa74f2217d0686788889d357c46d666fcb8be87f (diff) | |
download | gcc-9caa6732f9aafd8335adda6e9a57239d1fed40cb.zip gcc-9caa6732f9aafd8335adda6e9a57239d1fed40cb.tar.gz gcc-9caa6732f9aafd8335adda6e9a57239d1fed40cb.tar.bz2 |
[RS6000] PR11848 rs6000_emit_move long double split
This split is disabled for power7 and up, so we don't often see its
bad effects. However, on a powerpc-linux compiler (which defaults
to PPC750 judging from rs6000/sysv4.h) we see
long double ld1 (void) { return 1.0L; }
compiled with -msoft-float -O2 -S resulting in
ld1:
li 3,0
li 4,0
mr 6,4
mr 5,3
li 4,0
lis 3,0x3ff0
blr
Things go awry in init-regs, with the TFmode reg being initialized to
zero on seeing the subreg from the split. (And that initialization
itself is split by rs6000_emit_move!) Later passes apparently don't
clean up the rubbish.
Since the split was added for Darwin (as the comment says), let's get
rid of it on other targets.
* config/rs6000/rs6000.c (rs6000_emit_move): Disable long
double split for targets other than Darwin.
From-SVN: r266610
Diffstat (limited to 'gcc/genmodes.c')
0 files changed, 0 insertions, 0 deletions