This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]