This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[csl-arm] Bogus VFP movdi template
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 1 May 2006 19:08:04 +0100
- Subject: [csl-arm] Bogus VFP movdi template
The patch below fixes some bogus assembly templates in the ARM VFP movdi
patterns. Same as the mainline version [about to be] submitted by Kazu except
with additional Thumb-2 bits
Kazu will be doing a mainline version of this patch shortly.
Tested with cross to arm-none-eabi.
Applied to csl-arm-branch.
Paul
2006-05-01 Kazu Hirata <kazu@codesourcery.com>
Paul Brook <paul@codesourcery.com>
* vfp.md (arm_movdi_vfp): Correct the output templates for
case 3 and 4.
(thumb2_movdi_vfp): Ditto.
Index: gcc/config/arm/vfp.md
===================================================================
--- gcc/config/arm/vfp.md (revision 113416)
+++ gcc/config/arm/vfp.md (working copy)
@@ -208,9 +208,9 @@ (define_insn "*arm_movdi_vfp"
case 2:
return output_move_double (operands);
case 3:
- return \"fmdrr%?\\t%P0, %1\\t%@ int\";
+ return \"fmdrr%?\\t%P0, %Q1, %R1\\t%@ int\";
case 4:
- return \"fmrrd%?\\t%0, %1\\t%@ int\";
+ return \"fmrrd%?\\t%Q0, %R0, %P1\\t%@ int\";
case 5:
return \"fcpyd%?\\t%P0, %P1\\t%@ int\";
case 6: case 7:
@@ -235,9 +235,9 @@ (define_insn "*thumb2_movdi_vfp"
case 0: case 1: case 2:
return (output_move_double (operands));
case 3:
- return \"fmdrr%?\\t%P0, %1\\t%@ int\";
+ return \"fmdrr%?\\t%P0, %Q1, %R1\\t%@ int\";
case 4:
- return \"fmrrd%?\\t%0, %1\\t%@ int\";
+ return \"fmrrd%?\\t%Q0, %R0, %P1\\t%@ int\";
case 5:
return \"fcpyd%?\\t%P0, %P1\\t%@ int\";
case 6: case 7: