2015-02-09 Dominik Vogt <vogt@linux.vnet.ibm.com>
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / hotpatch-19.c
blob993d04dab944da38ab59df6013cfeea9e38b1df9
1 /* Functional tests for the function hotpatching feature. */
3 /* { dg-do compile } */
4 /* { dg-options "-O3 -mzarch -mhotpatch=1,2 --save-temps" } */
6 #include <stdio.h>
8 /* { dg-prune-output "always_inline function might not be inlinable" } */
9 __attribute__ ((always_inline))
10 static void hp2(void)
12 printf("hello, world!\n");
15 void hp1(void)
17 hp2();
20 /* Check number of occurences of certain instructions. */
21 /* { dg-final { scan-assembler-times "nopr\t%r7" 1 } } */
22 /* { dg-final { scan-assembler-times "nop\t0" 1 } } */
23 /* { dg-final { scan-assembler-not "brcl\t\t0,0" } } */