Debian Codegraph @

gcc/testsuite/gcc.target/s390/target-attribute/tattr-8.c

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