gcc/testsuite/gcc.target/riscv/rvv/base/pr118872.c
raw| 1 | /* Test that we do not have ice when compile */ |
| 2 | /* { dg-do assemble } */ |
| 3 | /* { dg-options "-march=rv64gcv -mabi=lp64d -O2" { target { rv64 } } } */ |
| 4 | /* { dg-options "-march=rv32gcv -mabi=ilp32d -O2" { target { rv32 } } } */ |
| 5 | |
| 6 | #include "riscv_vector.h" |
| 7 | |
| 8 | vfloat32m2_t foo (vfloat16m1_t a, size_t vl) |
| 9 | { |
| 10 | return __riscv_vfwcvt_f_f_v_f32m2(a, vl); |
| 11 | } |
| 12 | |
| 13 | /* { dg-error "argument type 'vfloat16m1_t' requires the zvfhmin or zvfh ISA extension" "" { target { "riscv*-*-*" } } 0 } */ |