Re: [PATCH] Start adding selftests for print_rtx

2016-10-21 Thread Bernd Schmidt
On 10/21/2016 02:36 AM, David Malcolm wrote: + /* Test dumping of hard regs. This is inherently target-specific due + to the name. */ +#ifdef I386_OPTS_H + ASSERT_RTL_DUMP_EQ ("(reg:SI ax)", gen_raw_REG (SImode, 0)); +#endif Generally putting in target dependencies like this isn't somet

[PATCH] Start adding selftests for print_rtx

2016-10-20 Thread David Malcolm
On Thu, 2016-10-20 at 17:43 +0200, Bernd Schmidt wrote: > On 10/20/2016 04:51 PM, David Malcolm wrote: > >(0|scratch:DI) > > > > with the insn as a whole looking like: > > > >(cinsn (set (mem/v:BLK (0|scratch:DI) [0 A8]) > > (unspec:BLK [ > >