[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fusion-p10-stst2.c
blob62f1a92c2b16cf83c20cd635b2472001fb6fe358
1 /* { dg-do compile } */
2 /* { dg-options "-mdejagnu-cpu=power10 -mno-power10-fusion -O2" } */
4 /* Verify store fusion is disabled */
6 void fuse_stw (int *i, int a, int b, int c)
8 i[1] = a;
9 i[5] = b;
10 i[2] = c;
13 void fuse_std (long *i, long a, long b, long c)
15 i[1] = a;
16 i[5] = b;
17 i[2] = c;
20 void fuse_stfd (double *i, double a, double b, double c)
22 i[1] = a;
23 i[5] = b;
24 i[2] = c;
28 /* { dg-final { scan-assembler-not {stw 4,4\(3\)\n\tstw 6,8\(3\)} } } */
29 /* { dg-final { scan-assembler-not {std 4,8\(3\)\n\tstd 6,16\(3\)} { target lp64 } } } */
30 /* { dg-final { scan-assembler-not {stfd 1,8\(3\)\n\tstfd 3,16\(3\)} } } */