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

            Bug ID: 70866
           Summary: powerpc64le -ffixed-cr2 -ffixed-cr3 -ffixed-cr4 ICE
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amodra at gmail dot com
  Target Milestone: ---

/* { dg-do compile } */
/* { dg-options "-ffixed-cr2 -ffixed-cr3 -ffixed-cr4" } */

#define SET_CR(R,V) __asm__ __volatile__ ("mtcrf %0,%1" : : "n" (1<<(7-R)), "r"
(V<<(4*(7-R))) : "cr" #R)

void foo (void)
{
  SET_CR (2, 7);
  SET_CR (3, 8);
  SET_CR (4, 9);
}

Reply via email to