blob: e48cea3e815eb2c8c6138ede16e4bd2c23ea2882 [file] [log] [blame]
/* Functional tests for the "target" attribute and pragma. */
/* { dg-do compile } */
/* { dg-require-effective-target target_attribute } */
/* { dg-options "-mno-mvcle -march=z13 -O3" } */
#pragma GCC target("mvcle")
void p1(char *b)
{
__builtin_memset (b, 0, 400);
}
#pragma GCC reset_options
__attribute__ ((target("mvcle")))
void a1(char *b)
{
__builtin_memset (b, 0, 400);
}
/* { dg-final { scan-assembler-times "\tmvcle\t" 2 } } */