diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-09 14:30:33 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-09 14:30:33 +0000 |
commit | b174d167bd00c57c4a1f2963fd44bdc2eb872603 (patch) | |
tree | ebe7b802597bbfe3c2bc5be07b4964176dfecd1b /gcc/config/sparc | |
parent | d7a450ef72f88a322ad55477de3f9a5eff715433 (diff) | |
download | gcc-b174d167bd00c57c4a1f2963fd44bdc2eb872603.tar.gz |
* config/sparc/sparc.md (movdf): Avoid calling validize_mem during
or after reload.
* gcc.c-torture/compile/20011109-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46880 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sparc')
-rw-r--r-- | gcc/config/sparc/sparc.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md index 9c35dcc8202..dad74dd4b1d 100644 --- a/gcc/config/sparc/sparc.md +++ b/gcc/config/sparc/sparc.md @@ -3134,6 +3134,11 @@ && fp_zero_operand (operands[1], DFmode)) goto movdf_is_ok; + /* We are able to build any DF constant in integer registers. */ + if (REGNO (operands[0]) < 32 + && (reload_completed || reload_in_progress)) + goto movdf_is_ok; + operands[1] = validize_mem (force_const_mem (GET_MODE (operands[0]), operands[1])); } |