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-mvcle -march=z13 -O3" } */
6 
7 #pragma GCC target("no-mvcle")
p0(char * b)8 void p0(char *b)
9 {
10   __builtin_memset (b, 0, 400);
11 }
12 #pragma GCC reset_options
13 
14 __attribute__ ((target("no-mvcle")))
a0(char * b)15 void a0(char *b)
16 {
17   __builtin_memset (b, 0, 400);
18 }
19 
d(char * b)20 void d(char *b)
21 {
22   __builtin_memset (b, 0, 400);
23 }
24 
25 /* { dg-final { scan-assembler-not "\tmvcle\t" } } */
26