[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / ppc-sdata-1.c
blobefd5a5ec40c11ba5164aca5d734be5fdb9b907ec
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-common -G 8 -meabi -msdata=eabi" } */
3 /* { dg-require-effective-target powerpc_eabi_ok } */
4 /* { dg-require-effective-target nonpic } */
5 /* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata," } } */
6 /* { dg-final { scan-assembler "\\.section\[ \t\]\\.sdata2," } } */
7 /* { dg-final { scan-assembler "sdat@sda21\\((13|0)\\)" } } */
8 /* { dg-final { scan-assembler "sdat2@sda21\\((2|0)\\)" } } */
11 int sdat = 2;
12 const char sdat2[] = "1234";
14 const char * test (void)
16 return sdat ? sdat2 : 0;