Skip to content

Commit

Permalink
Work around removal of some PowerPC intrinsics in GCC 15
Browse files Browse the repository at this point in the history
Fixes #611.
  • Loading branch information
musicinmybrain authored and blapie committed Jan 22, 2025
1 parent 34a8188 commit c45e268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arch/helperpower_128.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ static INLINE vdouble vcast_vd_vi(vint vi)
{
vdouble ret;
vint swap = vec_mergeh(vi, vi);
#if defined(__clang__) || __GNUC__ >= 7
#if defined(__clang__) || (__GNUC__ >= 7 && __GNUC__ < 15)
ret = __builtin_vsx_xvcvsxwdp(swap);
#else
__asm__ __volatile__("xvcvsxwdp %x0,%x1" : "=wa" (ret) : "wa" (swap));
Expand Down Expand Up @@ -406,7 +406,7 @@ static INLINE vint2 vtruncate_vi2_vf(vfloat vf)
static INLINE vint vtruncate_vi_vd(vdouble vd)
{
vint ret;
#if defined(__clang__) || __GNUC__ >= 7
#if defined(__clang__) || (__GNUC__ >= 7 && __GNUC__ < 15)
ret = __builtin_vsx_xvcvdpsxws(vd);
#else
__asm__ __volatile__("xvcvdpsxws %x0,%x1" : "=wa" (ret) : "wa" (vd));
Expand Down

0 comments on commit c45e268

Please sign in to comment.