gcc/testsuite/gcc.target/aarch64/mops_7.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -march=armv8.6-a+mops" } */ |
| 3 | |
| 4 | #include <stddef.h> |
| 5 | |
| 6 | void g(); |
| 7 | void foo (int a, size_t N, char *__restrict__ out) |
| 8 | { |
| 9 | if (a != 3) |
| 10 | __builtin_memset (out, 0, N); |
| 11 | if (a > 3) |
| 12 | g (); |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler-times {cmp\tw0, *} 2 } } */ |
| 16 |