1 /* Functional tests for the "target" attribute and pragma.  */
2 
3 /* { dg-do compile } */
4 /* { dg-require-effective-target target_attribute } */
5 /* { dg-options "-mbackchain -march=z13 -mzarch -O0" } */
6 
7 #include <stdio.h>
8 
9 #pragma GCC target("no-backchain")
p0(void)10 void p0(void)
11 {
12   printf ((void *)0);
13 }
14 #pragma GCC reset_options
15 
16 __attribute__ ((target("no-backchain")))
a0(void)17 void a0(void)
18 {
19   printf ((void *)0);
20 }
21 
22 /* { dg-final { scan-assembler-not "\tlg?r\t%r14,%r15" } } */
23