Commit cf31fafa by Alexandre Oliva Committed by Alexandre Oliva

mn10300.c (print_operand): Print FP constants in hexadecimal.

* 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
parent 842391df
2000-05-11 Alexandre Oliva <aoliva@cygnus.com> 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, * mklibgcc.in (EQ): Define it to an equal sign in the Makefile,
and replace any occurrences of `=' in multilib dirs with `$(EQ)'. and replace any occurrences of `=' in multilib dirs with `$(EQ)'.
......
...@@ -158,12 +158,12 @@ print_operand (file, x, code) ...@@ -158,12 +158,12 @@ print_operand (file, x, code)
case DFmode: case DFmode:
REAL_VALUE_FROM_CONST_DOUBLE (rv, x); REAL_VALUE_FROM_CONST_DOUBLE (rv, x);
REAL_VALUE_TO_TARGET_DOUBLE (rv, val); REAL_VALUE_TO_TARGET_DOUBLE (rv, val);
print_operand_address (file, GEN_INT (val[0])); fprintf (file, "0x%lx", val[0]);
break;; break;;
case SFmode: case SFmode:
REAL_VALUE_FROM_CONST_DOUBLE (rv, x); REAL_VALUE_FROM_CONST_DOUBLE (rv, x);
REAL_VALUE_TO_TARGET_SINGLE (rv, val[0]); REAL_VALUE_TO_TARGET_SINGLE (rv, val[0]);
print_operand_address (file, GEN_INT (val[0])); fprintf (file, "0x%lx", val[0]);
break;; break;;
case VOIDmode: case VOIDmode:
case DImode: case DImode:
...@@ -215,7 +215,7 @@ print_operand (file, x, code) ...@@ -215,7 +215,7 @@ print_operand (file, x, code)
case DFmode: case DFmode:
REAL_VALUE_FROM_CONST_DOUBLE (rv, x); REAL_VALUE_FROM_CONST_DOUBLE (rv, x);
REAL_VALUE_TO_TARGET_DOUBLE (rv, val); REAL_VALUE_TO_TARGET_DOUBLE (rv, val);
print_operand_address (file, GEN_INT (val[1])); fprintf (file, "0x%lx", val[1]);
break;; break;;
case SFmode: case SFmode:
abort (); abort ();
...@@ -296,7 +296,7 @@ print_operand (file, x, code) ...@@ -296,7 +296,7 @@ print_operand (file, x, code)
REAL_VALUE_FROM_CONST_DOUBLE (rv, x); REAL_VALUE_FROM_CONST_DOUBLE (rv, x);
REAL_VALUE_TO_TARGET_SINGLE (rv, val); REAL_VALUE_TO_TARGET_SINGLE (rv, val);
print_operand_address (file, GEN_INT (val)); fprintf (file, "0x%lx", val);
break; break;
} }
......
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
(define_insn "" (define_insn ""
[(set (match_operand:SF 0 "general_operand" "=dx,ax,dx,a,daxm,dax") [(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[0], SFmode)
|| register_operand (operands[1], SFmode)" || register_operand (operands[1], SFmode)"
"* "*
...@@ -535,7 +535,7 @@ ...@@ -535,7 +535,7 @@
[(set (match_operand:DF 0 "general_operand" [(set (match_operand:DF 0 "general_operand"
"=dx,ax,dx,a,dxm,dxm,axm,axm,dx,dx,ax,ax") "=dx,ax,dx,a,dxm,dxm,axm,axm,dx,dx,ax,ax")
(match_operand:DF 1 "general_operand" (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[0], DFmode)
|| register_operand (operands[1], DFmode)" || register_operand (operands[1], DFmode)"
"* "*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment