c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / rop-2.c
blob5f1d7c39bfc0bc9af47571e11938ebc2eb83253a
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mdejagnu-cpu=power10 -mrop-protect -mprivileged" } */
3 /* { dg-require-effective-target rop_ok } */
5 /* Verify that privileged ROP-protect instructions are inserted when a
6 call is present. */
8 extern void foo (void);
10 int bar ()
12 foo ();
13 return 5;
16 /* { dg-final { scan-assembler-times {\mhashstp\M} 1 } } */
17 /* { dg-final { scan-assembler-times {\mhashchkp\M} 1 } } */