From eb1e3b33b4da7483811f511b9cbd5572fac2cccc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 11 Feb 2024 14:15:57 +0530 Subject: [PATCH] Fix test failure on some systems Broken ass compilers strike again --- kitty/simd-string-impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/simd-string-impl.h b/kitty/simd-string-impl.h index 20084d014..26734ba61 100644 --- a/kitty/simd-string-impl.h +++ b/kitty/simd-string-impl.h @@ -296,7 +296,7 @@ FUNC(zero_last_n_bytes)(integer_t vec, const integer_t index, char n) { } #define find_match(haystack, sz, get_test_vec) { \ - zero_upper(); \ + /* zero_upper(); this is disabled as some buggy compilers re-order instructions causing the test result vec to be zero after the test */\ const uint8_t* limit = haystack + sz; \ integer_t chunk; int n; \ \