gcc/testsuite/gcc.target/riscv/rvv/base/pr117544.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-march=rv64gcv -mabi=lp64d -O3" } */ |
| 3 | |
| 4 | #include "riscv_vector.h" |
| 5 | void bar() __attribute__((riscv_vector_cc)); |
| 6 | |
| 7 | vint32m1_t foo(vint32m1_t a, vint32m1_t b) { |
| 8 | register vint32m1_t x asm("v24") = b; |
| 9 | bar(); |
| 10 | asm ("#xx %0"::"vr"(x) ); |
| 11 | return x; |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-assembler-times "vset" 2 } } */ |