Merge from trunk
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / hotpatch-6.c
blob5af090d03a66a7eb900726dd5488dd777b0f47ce
1 /* Functional tests for the function hotpatching feature. */
3 /* { dg-do run } */
4 /* { dg-options "-O3 -mzarch -mhotpatch --save-temps" } */
6 #include <stdio.h>
8 __attribute__ ((hotpatch(1)))
9 void hp1(void)
11 printf("hello, world!\n");
14 int main (void)
16 return 0;
19 /* Check number of occurences of certain instructions. */
20 /* { dg-final { scan-assembler-times "nopr\t%r7" 1 } } */
21 /* { dg-final { scan-assembler-times "nop\t0" 1 } } */