diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/clear-cache-2.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/clear-cache-2.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/clear-cache-2.c b/gcc/testsuite/gcc.target/mips/clear-cache-2.c new file mode 100644 index 000000000..2c925b860 --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/clear-cache-2.c @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -mips32" } */ +/* { dg-final { scan-assembler-not "synci" } } */ +/* { dg-final { scan-assembler-not "jr.hb" } } */ +/* { dg-final { scan-assembler "_flush_cache" } } */ + +void f() +{ + int size = 40; + char *memory = __builtin_alloca(size); + __builtin___clear_cache(memory, memory + size); +} + |