mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-29 23:34:12 +08:00
Fix recent PowerPC warnings and clang warning
This commit is contained in:
parent
d54d228b49
commit
d71ac6a755
@ -57,10 +57,10 @@ EIGEN_ALWAYS_INLINE void KLoop
|
|||||||
}
|
}
|
||||||
|
|
||||||
BFLOAT16_UNROLL
|
BFLOAT16_UNROLL
|
||||||
for(Index i = 0, k = 0; i < num_rhs; i++) {
|
for(Index i = 0, x = 0; i < num_rhs; i++) {
|
||||||
BFLOAT16_UNROLL
|
BFLOAT16_UNROLL
|
||||||
for(Index j = 0; j < num_lhs; j++, k++) {
|
for(Index j = 0; j < num_lhs; j++, x++) {
|
||||||
__builtin_mma_xvbf16ger2pp(&(quad_acc[k]), reinterpret_cast<Packet16uc>(rhs[i].m_val), reinterpret_cast<Packet16uc>(lhs[j].m_val));
|
__builtin_mma_xvbf16ger2pp(&(quad_acc[x]), reinterpret_cast<Packet16uc>(rhs[i].m_val), reinterpret_cast<Packet16uc>(lhs[j].m_val));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -730,12 +730,8 @@ EIGEN_ALWAYS_INLINE void outputVecResults(Packet4f (&acc)[num_acc][4], float *re
|
|||||||
} else {
|
} else {
|
||||||
if (extra == 3) {
|
if (extra == 3) {
|
||||||
pstoreu_partial(result + k, d0, extra);
|
pstoreu_partial(result + k, d0, extra);
|
||||||
} else if (extra == 2) {
|
|
||||||
Packet2ul d1 = reinterpret_cast<Packet2ul>(d0);
|
|
||||||
*(unsigned long long *)(result + k) = d1[0];
|
|
||||||
} else {
|
} else {
|
||||||
Packet4i d1 = reinterpret_cast<Packet4i>(d0);
|
memcpy((void *)(result + k), (void *)(&d0), sizeof(float) * extra);
|
||||||
*(unsigned int *)(result + k) = d1[0];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
#if __has_warning("-Wimplicit-int-float-conversion")
|
#if __has_warning("-Wimplicit-int-float-conversion")
|
||||||
#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion"
|
#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion"
|
||||||
#endif
|
#endif
|
||||||
#if ( defined(__ALTIVEC__) || defined(__VSX__) ) && __cplusplus < 201103L
|
#if ( defined(__ALTIVEC__) || defined(__VSX__) ) && ( !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 201112L) )
|
||||||
// warning: generic selections are a C11-specific feature
|
// warning: generic selections are a C11-specific feature
|
||||||
// ignoring warnings thrown at vec_ctf in Altivec/PacketMath.h
|
// ignoring warnings thrown at vec_ctf in Altivec/PacketMath.h
|
||||||
#if __has_warning("-Wc11-extensions")
|
#if __has_warning("-Wc11-extensions")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user