gcc/testsuite/gcc.target/riscv/rvv/xtheadvector/pr118601.c
raw| 1 | /* { dg-do compile { target { ! riscv_abi_e } } } */ |
| 2 | /* { dg-options "-march=rv32gc_xtheadvector -O2" { target { rv32 } } } */ |
| 3 | /* { dg-options "-march=rv64gc_xtheadvector -O2" { target { rv64 } } } */ |
| 4 | /* { dg-final { check-function-bodies "**" "" } } */ |
| 5 | |
| 6 | /* |
| 7 | ** foo1_16: |
| 8 | ** li\t[a-x0-9]+,16 |
| 9 | ** th.vsetvli\tzero,[a-x0-9]+,e8,m1 |
| 10 | ** th\.vmv\.v\.i\tv[0-9],1 |
| 11 | ** th\.vse\.v\tv[0-9]+,0\([a-x0-9]+\) |
| 12 | ** ret |
| 13 | */ |
| 14 | |
| 15 | void foo1_16 (void *p) |
| 16 | { |
| 17 | __builtin_memset (p, 1, 16); |
| 18 | } |