]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vdiv-template.h
1 #include <stdint-gcc.h>
3 #define TEST_TYPE(TYPE) \
4 __attribute__((noipa)) \
5 void vdiv_##TYPE (TYPE *dst, TYPE *a, TYPE *b, int n) \
7 for (int i = 0; i < n; i++) \
8 dst[i] = a[i] / b[i]; \
11 #define TEST2_TYPE(TYPE) \
12 __attribute__((noipa)) \
13 void vdivs_##TYPE (TYPE *dst, TYPE *a, TYPE b, int n) \
15 for (int i = 0; i < n; i++) \
31 TEST2_TYPE(uint16_t) \
33 TEST2_TYPE(uint32_t) \