From d328f29f762b0bf8bd1a8be8c48bac33c10afd5c Mon Sep 17 00:00:00 2001 From: Guillaume Piolat Date: Wed, 18 Dec 2024 15:44:54 +0100 Subject: [PATCH] A bit better LDC debug performance for text-mode --- source/inteli/emmintrin.d | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/inteli/emmintrin.d b/source/inteli/emmintrin.d index a033ece..91a6744 100644 --- a/source/inteli/emmintrin.d +++ b/source/inteli/emmintrin.d @@ -1382,6 +1382,17 @@ __m128 _mm_cvtepi32_ps(__m128i a) pure @trusted ret <4 x float> %r`; return cast(__m128) LDCInlineIR!(ir, float4, int4)(a); } + else static if (LDC_with_x86_asm) + { + __m128 r; + asm pure nothrow @nogc @trusted + { + movdqu XMM0, a; + cvtdq2ps XMM0, XMM0; + movdqu r, XMM0; + } + return r; + } else { __m128 res; // PERF =void;