[AArch64] Improve bit-test-branch pattern to avoid unnecessary register clobber
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / hotpatch-compile-8.c
blob489fc5dd9f0bd8bfe1a1f353585b1eb30def7cd8
1 /* Functional tests for the function hotpatching feature. */
3 /* { dg-do run } */
4 /* { dg-options "-O3 -mzarch -mhotpatch" } */
6 #include <stdio.h>
8 int hp1(void)
10 int nested1(void) /* { dg-warning "hotpatching is not compatible with nested functions" } */
11 { return 1; }
13 __attribute__ ((hotpatch))
14 int nested2(void) /* { dg-warning "hotpatching is not compatible with nested functions" } */
15 { return 1; }
17 return nested1() - nested2();
20 int main (void)
22 return hp1();