mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-25 22:26:24 +00:00
[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:
parent
d673e39ad8
commit
65300610e2
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue