diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2018-01-10 16:13:07 +0100 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2018-01-10 16:13:07 +0100 |
commit | 8c6e19c1c24794163bc9114bb367c9d61b7f839c (patch) | |
tree | 5f267bfaade3241d4a715ef843334ee0deba267d /gcc/go | |
parent | c9edeca8b88d20afa80143302be64e2e625e707a (diff) | |
download | gcc-8c6e19c1c24794163bc9114bb367c9d61b7f839c.zip gcc-8c6e19c1c24794163bc9114bb367c9d61b7f839c.tar.gz gcc-8c6e19c1c24794163bc9114bb367c9d61b7f839c.tar.bz2 |
rs6000: Wrap diff of immediates in const (PR83629)
In various of our 32-bit load_toc patterns we take the difference of
two immediates (labels) as a term to something bigger; but this isn't
canonical RTL, it needs to be wrapped in CONST.
PR target/83629
* config/rs6000/rs6000.md (load_toc_v4_PIC_2, load_toc_v4_PIC_3b,
load_toc_v4_PIC_3c): Wrap const term in CONST RTL.
testsuite/
PR target/83629
* gcc.target/powerpc/pr83629.c: New testcase.
From-SVN: r256432
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions