From 40aaa2bcf2460a083b89427cffaacdbd5f707ffc Mon Sep 17 00:00:00 2001 From: Sreelakshmi Haridas Maruthur Date: Tue, 17 Oct 2023 10:49:35 -0600 Subject: [PATCH] conversions: Build fix for x86 toolchain (#1827) --- test_conformance/conversions/conversions_data_info.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_conformance/conversions/conversions_data_info.h b/test_conformance/conversions/conversions_data_info.h index 4f46a24e75..c62d11ae75 100644 --- a/test_conformance/conversions/conversions_data_info.h +++ b/test_conformance/conversions/conversions_data_info.h @@ -402,7 +402,11 @@ void DataInfoSpec::conv(OutType *out, InType *in) } else { +#if defined(_M_X64) _mm_store_sd(&result, _mm_cvtsi64_sd(_mm_setzero_pd(), l)); +#else + result = l; +#endif ((double *)out)[0] = (l == 0 ? 0.0 : result); // Per IEEE-754-2008 5.4.1, 0's // always convert to +0.0