1 /* PR target/68872 */ 2 /* { dg-do assemble { target { powerpc64le-*-* } } } */ 3 /* { dg-options "-mdejagnu-cpu=powerpc64le" } */ 4 5 /* Verify that -mcpu=powerpc64le passes -mpower8 to the assembler. */ 6 7 long bar(unsigned char * ptr,unsigned char val)8bar (unsigned char *ptr, unsigned char val) 9 { 10 long ret; 11 asm volatile ("stbcx. %0,0,%1" :: "r" (val), "r" (ptr)); 12 asm volatile ("mfcr %0,8" : "=r" (ret) ::); 13 return ret; 14 } 15