gcc/testsuite/gcc.target/mips/clear-cache-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-msynci isa_rev>=2" } */ |
| 3 | /* { dg-final { scan-assembler "\tsynci\t" } } */ |
| 4 | /* { dg-final { scan-assembler "\tjr.hb\t" } } */ |
| 5 | /* { dg-final { scan-assembler-not "_flush_cache|mips_sync_icache|_cacheflush" } } */ |
| 6 | |
| 7 | NOMIPS16 void f() |
| 8 | { |
| 9 | int size = 40; |
| 10 | char *memory = __builtin_alloca(size); |
| 11 | __builtin___clear_cache(memory, memory + size); |
| 12 | } |
| 13 |