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]

Xtensa attribute cleanup patch


 
Clean up some of the "type" attributes in xtensa.md.
Tested xtensa-elf target.  Committed to top-of-trunk.

2002-03-20  Bob Wilson  <bob.wilson@acm.org>

        * config/xtensa/xtensa.md: Remove unused type attributes.
        (adddi_carry, subddi_carry): Change type attribute to "multi".

Index: xtensa.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/xtensa/xtensa.md,v
retrieving revision 1.2
diff -c -3 -r1.2 xtensa.md
*** xtensa.md	2002/03/19 20:16:35	1.2
--- xtensa.md	2002/03/20 18:32:59
***************
*** 46,52 ****
  ;;
  
  (define_attr "type"
!   "unknown,branch,jump,call,load,store,move,arith,multi,nop,misc,farith,fmadd,fdiv,fsqrt,fconv,fload,fstore,mul16,mul32,div32,mac16,rsr,wsr,udef_move,udef_loadi,udef_storei,udef_loadiu,udef_storeiu,udef_conv,udef_conv_loadiu,udef_conv_storeiu" 
    (const_string "unknown"))
  
  (define_attr "mode"
--- 46,52 ----
  ;;
  
  (define_attr "type"
!   "unknown,jump,call,load,store,move,arith,multi,nop,farith,fmadd,fdiv,fsqrt,fconv,fload,fstore,mul16,mul32,div32,mac16,rsr,wsr"
    (const_string "unknown"))
  
  (define_attr "mode"
***************
*** 122,128 ****
  		 (match_dup 0)))]
    ""
    "bgeu\\t%1, %2, 0f\;addi\\t%0, %0, 1\;0:"
!   [(set_attr "type"	"arith")
     (set_attr "mode"	"SI")
     (set_attr "length"	"6")])
  
--- 122,128 ----
  		 (match_dup 0)))]
    ""
    "bgeu\\t%1, %2, 0f\;addi\\t%0, %0, 1\;0:"
!   [(set_attr "type"	"multi")
     (set_attr "mode"	"SI")
     (set_attr "length"	"6")])
  
***************
*** 221,227 ****
  			  (match_operand:SI 2 "register_operand" "r"))))]
    ""
    "bgeu\\t%1, %2, 0f\;addi\\t%0, %0, -1\;0:"
!   [(set_attr "type"	"arith")
     (set_attr "mode"	"SI")
     (set_attr "length"	"6")])
  
--- 221,227 ----
  			  (match_operand:SI 2 "register_operand" "r"))))]
    ""
    "bgeu\\t%1, %2, 0f\;addi\\t%0, %0, -1\;0:"
!   [(set_attr "type"	"multi")
     (set_attr "mode"	"SI")
     (set_attr "length"	"6")])
  

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