Skip to content

Commit a0f2737

Browse files
authored
riscv64: Fallback to autovec without mrvv-vector-bits flag. (#1282)
1 parent a41d6c0 commit a0f2737

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

simde/simde-common.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,7 @@ HEDLEY_DIAGNOSTIC_POP
12001200
#endif
12011201

12021202
/* Initial support for RISCV V extensions based on ZVE64D. */
1203-
#if defined(SIMDE_ARCH_RISCV_ZVE64D) && SIMDE_NATURAL_VECTOR_SIZE >= 64
1203+
#if defined(SIMDE_ARCH_RISCV_ZVE64D) && SIMDE_NATURAL_VECTOR_SIZE >= 64 && defined(__riscv_v_fixed_vlen)
12041204
#define RVV_FIXED_TYPE_DEF(name, lmul) \
12051205
typedef vint8##name##_t fixed_vint8##name##_t __attribute__((riscv_rvv_vector_bits(__riscv_v_fixed_vlen * lmul))); \
12061206
typedef vint16##name##_t fixed_vint16##name##_t __attribute__((riscv_rvv_vector_bits(__riscv_v_fixed_vlen * lmul))); \

simde/simde-features.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
#endif
381381

382382
#if !defined(SIMDE_RISCV_V_NATIVE) && !defined(SIMDE_RISCV_V_NO_NATIVE) && !defined(SIMDE_NO_NATIVE)
383-
#if defined(SIMDE_ARCH_RISCV_V)
383+
#if defined(SIMDE_ARCH_RISCV_V) && defined(__riscv_v_fixed_vlen)
384384
#define SIMDE_RISCV_V_NATIVE
385385
#endif
386386
#endif

0 commit comments

Comments
 (0)