Re: symbol_refs vs. eq_attr in define_insn_reservations

2012-02-16 Thread Richard Sandiford
Quentin Neill writes: > Hi, > > For readability (and correctness) I'm interested in rewriting a bunch of: > > (define_insn_reservation "insn1" 0 (eq_attr "attr1" "val1,val2")) > > into something like: > > (define attr "consattr1" "val1,val2" > (const (cond [ > (eq_attr "attr1" "val1"

symbol_refs vs. eq_attr in define_insn_reservations

2012-02-13 Thread Quentin Neill
Hi, For readability (and correctness) I'm interested in rewriting a bunch of: (define_insn_reservation "insn1" 0 (eq_attr "attr1" "val1,val2")) into something like: (define attr "consattr1" "val1,val2" (const (cond [ (eq_attr "attr1" "val1") (const_string "cvaly") (eq_attr "