aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/rop-4.c
blob: 80faa9b3f7b420e36058ef93996877ff7ef817a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -mdejagnu-cpu=power10 -mrop-protect" } */
/* { dg-require-effective-target rop_ok } */

/* Verify that no ROP-protect instructions are inserted when no
   call is present.  */


int bar ()
{
  return 5;
}

/* { dg-final { scan-assembler-not {\mhashst\M} } } */
/* { dg-final { scan-assembler-not {\mhashchk\M} } } */