diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/sh/memset.c')
-rw-r--r-- | gcc/testsuite/gcc.target/sh/memset.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/sh/memset.c b/gcc/testsuite/gcc.target/sh/memset.c new file mode 100644 index 00000000000..4695db3aefa --- /dev/null +++ b/gcc/testsuite/gcc.target/sh/memset.c @@ -0,0 +1,13 @@ +/* Check that the __builtin_memset function is inlined when + optimizing for speed. */ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ +/* { dg-skip-if "" { "sh*-*-*" } { "-m5*" } { "" } } */ +/* { dg-final { scan-assembler-not "jmp" } } */ + +void +test00(char *dstb) +{ + __builtin_memset (dstb, 0, 15); +} + |