gcc/testsuite/gcc.target/loongarch/vrepli.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -mlasx" } */ |
| 3 | /* { dg-final { scan-assembler "\tvrepli\\.b\t\\\$vr\[0-9\]+,-35" } } */ |
| 4 | /* { dg-final { scan-assembler "\txvrepli\\.b\t\\\$xr\[0-9\]+,-35" } } */ |
| 5 | |
| 6 | int f __attribute__((vector_size (16))); |
| 7 | int g __attribute__((vector_size (32))); |
| 8 | |
| 9 | void |
| 10 | test (void) |
| 11 | { |
| 12 | constexpr int x = (int) 0xdddddddd; |
| 13 | f = (typeof(f)){x, x, x, x}; |
| 14 | g = (typeof(g)){x, x, x, x, x, x, x, x}; |
| 15 | } |