[AArch64] Improve bit-test-branch pattern to avoid unnecessary register clobber
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / hotpatch-4.c
blobc1dba20a37925645854f1f8a278551bc346f9f3e
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 inline void hp1(void)
10 printf("hello, world!\n");
13 __attribute__ ((always_inline))
14 void hp2(void) /* { dg-warning "always_inline function might not be inlinable" } */
16 printf("hello, world!\n");
17 } /* { dg-warning "function 'hp2' with the 'always_inline' attribute is not hotpatchable" } */
19 int main (void)
21 return 0;
24 /* Check number of occurences of certain instructions. */
25 /* { dg-final { scan-assembler-not "nopr\t%r7" } } */
26 /* { dg-final { scan-assembler-not "nop\t0" } } */