MLAS: ARM64 build fix (#2734)

fix bad usage of vreinterpret to cast vector element types
This commit is contained in:
Tracy Sharpe 2019-12-24 19:03:05 -08:00 committed by GitHub
parent 71ce0b8e0a
commit ebf23744eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,7 +176,7 @@ MlasQuantizeLinearKernel(
MinimumValueVector, MaximumValueVector, ZeroPointVector);
#if defined(MLAS_NEON64_INTRINSICS)
vst1q_lane_u8((uint8_t*)Output + n, vreinterpretq_s32_u8(IntegerVector), 0);
vst1q_lane_u8((uint8_t*)Output + n, vreinterpretq_u8_s32(IntegerVector), 0);
#else
*((uint8_t*)Output + n) = (uint8_t)_mm_cvtsi128_si32(IntegerVector);
#endif