Displaying 1 result from an estimated 1 matches for "_arch_pwr7".
2019 Oct 24
2
Failed PPC64 compile when using Power7 loads and stores?
.....
The source file includes <altivec.h>. The source file is compiled with
-mcpu=power7 -mvsx -maltivec.
==========
Here is the source code of interest:
// POWER7 added unaligned loads and store operations
byte b1[19] = {255, 255, 255, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, b2[17];
#if defined(_ARCH_PWR7) && defined(__xlC__)
// Workaround XL C++
vec_xst(vec_xl(0, (unsigned int*)(b1+3)), 0, (unsigned int*)(b2+1));
#elif defined(_ARCH_PWR7)
vec_xst(vec_xl(0, (__vector unsigned int*)(b1+3)), 0, (__vector
unsigned int*)(b2+1));
#else
std::memset(b2, 0x00, sizeof(b2));
#endif
re...