https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115473

            Bug ID: 115473
           Summary: MIPS: -Os rtx_cost compare not correct
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: syq at gcc dot gnu.org
  Target Milestone: ---

f32(int a)
{
  int p = (a & (1<<16));
  if (p)
    return f1();
  else
    return f2();
}

we can use

   sll
   bgez

to replace
   li
   and
   beqz

Reply via email to