[PowerPC] Type casting the output operand of vec_xst. (#18057)

This fix resolves the build error “error: invalid parameter combination
for AltiVec intrinsic ‘__builtin_vec_vsx_st’” which is coming up with
the commit dea425e7c1.
This commit is contained in:
BODAPATIMAHESH 2023-12-12 21:25:48 +05:30 committed by GitHub
parent d673e39ad8
commit 65300610e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,11 +86,11 @@ Return Value:
if constexpr (std::is_same_v<OutputType, uint8_t> || std::is_same_v<OutputType, int8_t>) {
auto CharVector = vec_pack(ShortVector0, ShortVector1);
vec_xst(CharVector, 0, Output);
vec_xst(CharVector, 0, (int8_t *)Output);
} else {
static_assert(std::is_same_v<OutputType, uint16_t> || std::is_same_v<OutputType, int16_t>);
vec_xst(ShortVector0, 0, Output);
vec_xst(ShortVector1, 0, &Output[8]);
vec_xst(ShortVector0, 0, (int16_t *)Output);
vec_xst(ShortVector1, 0, (int16_t *)&Output[8]);
}
Output += 16;