mn10300.c (print_operand): Print FP constants in hexadecimal.
authorAlexandre Oliva <aoliva@cygnus.com>
Thu, 11 May 2000 21:08:18 +0000 (21:08 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Thu, 11 May 2000 21:08:18 +0000 (21:08 +0000)
* config/mn10300/mn10300.c (print_operand): Print FP constants in
hexadecimal.
* config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
for FP values.

From-SVN: r33863

gcc/ChangeLog
gcc/config/mn10300/mn10300.c
gcc/config/mn10300/mn10300.md

index 7e346ecfa938bfe93330507c6420945a3b03f4aa..a2a0679eafe879e21466bc8bdc961623b52ad6dc 100644 (file)
@@ -1,5 +1,10 @@
 2000-05-11  Alexandre Oliva  <aoliva@cygnus.com>
 
+       * config/mn10300/mn10300.c (print_operand): Print FP constants in
+       hexadecimal.
+       * config/mn10300/mn10300.md (movsf, movdf): Use the `F' constraint
+       for FP values.
+
        * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
        and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
 
index ad93ac98f27486f7fe35da2455b530504b9d9e74..f230f121f1ca94e0d77558cca54bbf37e62772c3 100644 (file)
@@ -158,12 +158,12 @@ print_operand (file, x, code)
                    case DFmode:
                      REAL_VALUE_FROM_CONST_DOUBLE (rv, x);
                      REAL_VALUE_TO_TARGET_DOUBLE (rv, val);
-                     print_operand_address (file, GEN_INT (val[0]));
+                     fprintf (file, "0x%lx", val[0]);
                      break;;
                    case SFmode:
                      REAL_VALUE_FROM_CONST_DOUBLE (rv, x);
                      REAL_VALUE_TO_TARGET_SINGLE (rv, val[0]);
-                     print_operand_address (file, GEN_INT (val[0]));
+                     fprintf (file, "0x%lx", val[0]);
                      break;;
                    case VOIDmode:
                    case DImode:
@@ -215,7 +215,7 @@ print_operand (file, x, code)
                    case DFmode:
                      REAL_VALUE_FROM_CONST_DOUBLE (rv, x);
                      REAL_VALUE_TO_TARGET_DOUBLE (rv, val);
-                     print_operand_address (file, GEN_INT (val[1]));
+                     fprintf (file, "0x%lx", val[1]);
                      break;;
                    case SFmode:
                      abort ();
@@ -296,7 +296,7 @@ print_operand (file, x, code)
 
              REAL_VALUE_FROM_CONST_DOUBLE (rv, x);
              REAL_VALUE_TO_TARGET_SINGLE (rv, val);
-             print_operand_address (file, GEN_INT (val));
+             fprintf (file, "0x%lx", val);
              break;
            }
 
index c3a7d9c0b05e135a6c41009e48a714d5d37dd96e..3accb095cd4a3c4b490abb9664f9615e4fe08fa1 100644 (file)
 
 (define_insn ""
   [(set (match_operand:SF 0 "general_operand" "=dx,ax,dx,a,daxm,dax")
-       (match_operand:SF 1 "general_operand" "0,0,G,G,dax,daxim"))]
+       (match_operand:SF 1 "general_operand" "0,0,G,G,dax,daxFm"))]
   "register_operand (operands[0], SFmode)
    || register_operand (operands[1], SFmode)"
   "*
   [(set (match_operand:DF 0 "general_operand"
                                "=dx,ax,dx,a,dxm,dxm,axm,axm,dx,dx,ax,ax")
        (match_operand:DF 1 "general_operand"
-                               "0,0,G,G,dx,ax,dx,ax,dxim,axim,dxim,axim"))]
+                               "0,0,G,G,dx,ax,dx,ax,dxFm,axFm,dxFm,axFm"))]
   "register_operand (operands[0], DFmode)
    || register_operand (operands[1], DFmode)"
   "*