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]

alpha unop encoding


Canonically, unop is supposed to be 

	ldq_u   zero, 0(sp)

The hardware doesn't actually care what you put for RB;
the only thing it looks at is the zero destination.

I've just fixed similar mistakes in binutils.


r~


        * config/alpha/alpha.md (unop): Encode RB as $sp.

Index: alpha.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/alpha/alpha.md,v
retrieving revision 1.167
diff -c -p -d -r1.167 alpha.md
*** alpha.md	2001/12/16 05:40:26	1.167
--- alpha.md	2001/12/18 00:25:57
*************** fadd,fmul,fcpys,fdiv,fsqrt,misc,mvi,ftoi
*** 6793,6799 ****
  (define_insn "unop"
    [(const_int 2)]
    ""
!   "ldq_u $31,0($31)")
  
  ;; On Unicos/Mk we use a macro for aligning code.
  
--- 6793,6799 ----
  (define_insn "unop"
    [(const_int 2)]
    ""
!   "ldq_u $31,0($30)")
  
  ;; On Unicos/Mk we use a macro for aligning code.
  


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