Re: Allow match_test to be used for .md attribute tests

2011-08-13 Thread Hans-Peter Nilsson
On Sat, 13 Aug 2011, Richard Sandiford wrote: > If the patch is OK, I'd like to make corresponding changes to each port's > .md files. Are they simple enough to count as obvious, or should I get > persmission for each one? Preapproved for CRIS and MMIX. brgds, H-P

Allow match_test to be used for .md attribute tests

2011-08-13 Thread Richard Sandiford
Like the recent MEM_ATTRS changes, this patch is supposed to help the transition to const_ints with modes. However, like those changes, I think it makes sense on its own. At the moment, the canonical way of testing a C condition in an .md attribute is to use: (ne (symbol_ref "TEST") (const_i