[AArch64] Improve bit-test-branch pattern to avoid unnecessary register clobber
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / hotpatch-9.c
blob5da675866b32657af2959c1e1f8fafeb6b7c6008
1 /* Functional tests for the function hotpatching feature. */
3 /* { dg-do run } */
4 /* { dg-options "-O3 -mzarch -mhotpatch=1 --save-temps" } */
6 #include <stdio.h>
8 __attribute__ ((hotpatch(2)))
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" 2 } } */
21 /* { dg-final { scan-assembler-times "nop\t0" 1 } } */