1 /* Functional tests for the "target" attribute and pragma.  */
2 
3 /* { dg-require-effective-target target_attribute } */
4 /* { dg-options "-march=z13 -mzarch" } */
5 
6 /* { dg-final { scan-assembler-times "\t\.machine \"z13\"" 1 } } */
7 /* { dg-final { scan-assembler-times "\t\.machinemode zarch" 2 } } */
8 
foo(void)9 void foo(void) { }
10 
11 #pragma GCC target("arch=z10")
bar(void)12 void bar(void) { }
13 
14 /* { dg-final { scan-assembler-times "\t\.machine push" 1 } } */
15 /* { dg-final { scan-assembler-times "\t\.machine pop" 1 } } */
16 /* { dg-final { scan-assembler-times "\t\.machine \"z10\"" 1 } } */
17 /* { dg-final { scan-assembler-times "\t\.machinemode push" 1 } } */
18 /* { dg-final { scan-assembler-times "\t\.machinemode zarch" 2 } } */
19 /* { dg-final { scan-assembler-times "\t\.machinemode pop" 1 } } */
20 
21 /* { dg-final { scan-assembler-times "\t\.machine " 4 } } */
22 /* { dg-final { scan-assembler-times "\t\.machinemode " 4 } } */
23