Skip to content

Commit

Permalink
fix:unused r_ if rvv native
Browse files Browse the repository at this point in the history
  • Loading branch information
wewe5215 committed Jun 12, 2024
1 parent f760ce8 commit e6d946c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions simde/arm/neon/maxnmv.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,13 @@ simde_vmaxnmv_f16(simde_float16x4_t a) {
#if defined(SIMDE_ARM_NEON_A64V8_NATIVE) && defined(SIMDE_ARM_NEON_FP16)
return vmaxnmv_f16(a);
#else
simde_float32_t r_ = simde_float16_to_float32(SIMDE_NINFINITYHF);
simde_float16x4_private a_ = simde_float16x4_to_private(a);

#if defined(SIMDE_RISCV_V_NATIVE) && defined(SIMDE_ARCH_RISCV_ZVFH)
return __riscv_vfmv_f_s_f16m1_f16(__riscv_vfredmax_vs_f16m1_f16m1(a_.sv64, \
__riscv_vfmv_v_f_f16m1(SIMDE_NINFINITYHF, 4), 4));
#else
r_ = simde_float16_to_float32(SIMDE_NINFINITYHF);
simde_float32_t r_ = simde_float16_to_float32(SIMDE_NINFINITYHF);
#if defined(SIMDE_FAST_NANS)
SIMDE_VECTORIZE_REDUCTION(max:r_)
#else
Expand Down Expand Up @@ -167,14 +166,13 @@ simde_vmaxnmvq_f16(simde_float16x8_t a) {
#if defined(SIMDE_ARM_NEON_A64V8_NATIVE) && defined(SIMDE_ARM_NEON_FP16)
return vmaxnmvq_f16(a);
#else
simde_float32_t r_ = simde_float16_to_float32(SIMDE_NINFINITYHF);
simde_float16x8_private a_ = simde_float16x8_to_private(a);

#if defined(SIMDE_RISCV_V_NATIVE) && defined(SIMDE_ARCH_RISCV_ZVFH)
return __riscv_vfmv_f_s_f16m1_f16(__riscv_vfredmax_vs_f16m1_f16m1(a_.sv128, \
__riscv_vfmv_v_f_f16m1(SIMDE_NINFINITYHF, 8), 8));
#else
r_ = simde_float16_to_float32(SIMDE_NINFINITYHF);
simde_float32_t r_ = simde_float16_to_float32(SIMDE_NINFINITYHF);
#if defined(SIMDE_FAST_NANS)
SIMDE_VECTORIZE_REDUCTION(max:r_)
#else
Expand Down
3 changes: 1 addition & 2 deletions simde/arm/neon/minnmv.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,13 @@ simde_vminnmvq_f16(simde_float16x8_t a) {
#if defined(SIMDE_ARM_NEON_A64V8_NATIVE) && defined(SIMDE_ARM_NEON_FP16)
return vminnmvq_f16(a);
#else
simde_float32_t r_ = simde_float16_to_float32(SIMDE_INFINITYHF);
simde_float16x8_private a_ = simde_float16x8_to_private(a);

#if defined(SIMDE_RISCV_V_NATIVE) && defined(SIMDE_ARCH_RISCV_ZVFH)
return __riscv_vfmv_f_s_f16m1_f16(__riscv_vfredmin_vs_f16m1_f16m1(a_.sv128, \
__riscv_vfmv_v_f_f16m1(SIMDE_INFINITYHF, 8), 8));
#else
r_ = simde_float16_to_float32(SIMDE_INFINITYHF);
simde_float32_t r_ = simde_float16_to_float32(SIMDE_INFINITYHF);
#if defined(SIMDE_FAST_NANS)
SIMDE_VECTORIZE_REDUCTION(min:r_)
#else
Expand Down

0 comments on commit e6d946c

Please sign in to comment.