Debian Codegraph @

gcc/testsuite/gcc.target/s390/target-attribute/tattr-10.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-mvcle -march=z13 -O3" } */
6
7 #pragma GCC target("mvcle")
8 void p1(char *b)
9 {
10 __builtin_memset (b, 0, 400);
11 }
12 #pragma GCC reset_options
13
14 __attribute__ ((target("mvcle")))
15 void a1(char *b)
16 {
17 __builtin_memset (b, 0, 400);
18 }
19
20 /* { dg-final { scan-assembler-times "\tmvcle\t" 2 } } */