On 03/04/2016 06:14 PM, Patrick Palka wrote:

I just quickly tested building the generated insn-attrtab.c with and
without the patch using my host gcc 5.3 compiler and the .s output is
not the same.

Hmm, looking at the 003t.original dump it looks like there are differences in SAVE_EXPRs. Indeed we seem to generate different code for

int at;

int foo ()
{
  if (at == 2 || at == 4 || at == 7)
    return 1;
  return 0;
}

int bar ()
{
  if (at == 2 || (at == 4 || at == 7))
    return 1;
  return 0;
}

That's probably something we want to fix.


Bernd

Reply via email to