Skip to content

Commit

Permalink
Merge pull request #23147 from charris/backport-23077
Browse files Browse the repository at this point in the history
BUG: Fix for npyv__trunc_s32_f32 (VXE)
  • Loading branch information
charris committed Feb 2, 2023
2 parents e8f62ea + 289d240 commit 62af62a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numpy/core/src/common/simd/vec/conversion.h
Expand Up @@ -170,7 +170,8 @@ npyv_pack_b8_b64(npyv_b64 a, npyv_b64 b, npyv_b64 c, npyv_b64 d,
#ifdef NPY_HAVE_VXE2
return vec_signed(a);
#elif defined(NPY_HAVE_VXE)
return vec_packs(vec_signed(npyv_doublee(a)), vec_signed(npyv_doublee(vec_mergel(a, a))));
return vec_packs(vec_signed(npyv_doublee(vec_mergeh(a,a))),
vec_signed(npyv_doublee(vec_mergel(a, a))));
// VSX
#elif defined(__IBMC__)
return vec_cts(a, 0);
Expand Down

0 comments on commit 62af62a

Please sign in to comment.