From 42d3f78baed1530b959cd16aedda74c96d438114 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 19 May 2026 14:54:39 +0100 Subject: [PATCH] Improve `simd.sign_bit` code generation --- core/simd/simd.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/simd/simd.odin b/core/simd/simd.odin index 40a25abc5..8420a1b99 100644 --- a/core/simd/simd.odin +++ b/core/simd/simd.odin @@ -2791,7 +2791,7 @@ sign_bit :: #force_inline proc "contextless" (v: $T/#simd[$LANES]$E) -> (res: ty val := to_bits(v) mask := type_of(val)(1<<(BITS-1)) masked := bit_and(val, mask) - return to_bits(shr(to_bits_signed(masked), BITS-1)) + return to_bits(shr_masked(to_bits_signed(masked), BITS-1)) } /*