mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 03:44:49 +08:00
(movhi): Corrected case of moving constant to memory.
From-SVN: r13389
This commit is contained in:
parent
345dd8a141
commit
1eec766a06
@ -1,6 +1,6 @@
|
||||
;;- Machine description for GNU compiler
|
||||
;;- MIL-STD-1750A version.
|
||||
;; Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
;; Contributed by O.M.Kellogg, DASA (oliver.kellogg@space.otn.dasa.de).
|
||||
|
||||
;; This file is part of GNU CC.
|
||||
@ -451,9 +451,14 @@
|
||||
""
|
||||
"
|
||||
{
|
||||
if (GET_CODE(operands[0]) == MEM &&
|
||||
GET_CODE(operands[1]) == MEM)
|
||||
operands[1] = force_reg (HImode, operands[1]);
|
||||
if (GET_CODE(operands[0]) == MEM)
|
||||
{
|
||||
rtx op1 = operands[1];
|
||||
if (GET_CODE(op1) == MEM
|
||||
|| (GET_CODE(op1) == CONST_INT
|
||||
&& (INTVAL(op1) < 0 || INTVAL(op1) > 15)))
|
||||
operands[1] = force_reg (HImode, operands[1]);
|
||||
}
|
||||
}")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user