[AArch64] Improve bit-test-branch pattern to avoid unnecessary register clobber
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / hotpatch-compile-5.c
blob53f7eac9e5405f213fa1946f36e99c2dcdda4f45
1 /* Functional tests for the function hotpatching feature. */
3 /* { dg-do compile } */
4 /* { dg-options "-O3 -mzarch -mhotpatch=1000000" } */
6 #include <stdio.h>
8 void hp1(void)
10 printf("hello, world!\n");
13 __attribute__ ((hotpatch(1000000)))
14 void hp2(void)
16 printf("hello, world!\n");
19 __attribute__ ((hotpatch(1000001)))
20 void hp3(void)
21 { /* { dg-error "requested 'hotpatch' attribute is not a non-negative integer constant or too large .max. 1000000." } */
22 printf("hello, world!\n");
25 int main (void)
27 return 0;