[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr68872.c
blobe9c7eddca472a043b288f424c1cc50f7a662ff93
1 /* PR target/68872 */
2 /* { dg-do assemble { target { powerpc64le-*-* } } } */
3 /* { dg-options "-mdejagnu-cpu=powerpc64le" } */
5 /* Verify that -mcpu=powerpc64le passes -mpower8 to the assembler. */
7 long
8 bar (unsigned char *ptr, unsigned char val)
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;