From cabfc57de7b2e3a9a0614599b774d75c02c159c3 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