Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr70866.c
blob25fd05a1debd2436fd5e11e6e8382a50f5987d84
1 /* { dg-do compile } */
2 /* { dg-options "-ffixed-cr2 -ffixed-cr3 -ffixed-cr4" } */
4 #define SET_CR(R,V) __asm__ __volatile__ ("mtcrf %0,%1" : : "n" (1<<(7-R)), "r" (V<<(4*(7-R))) : "cr" #R)
6 void foo (void)
8 SET_CR (2, 7);
9 SET_CR (3, 8);
10 SET_CR (4, 9);