https://gcc.gnu.org/g:2ed175f7ca48288f5bef401c5ba1f8635685479b
commit r17-5637-g2ed175f7ca48288f5bef401c5ba1f8635685479b Author: Wilco Dijkstra <[email protected]> Date: Tue Oct 27 14:24:41 2026 +0000 libcpp: Use __builtin_ctzll in AArch64 search_line_neon This fixes the aarch64-w64-mingw32 build since it has 32-bit long. Committed as trivial fix. libcpp/ChangeLog: * lex.cc (search_line_neon): Use __builtin_ctzll for LLP64 targets. Diff: --- libcpp/lex.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcpp/lex.cc b/libcpp/lex.cc index 3307d93622a0..37c7584c32b5 100644 --- a/libcpp/lex.cc +++ b/libcpp/lex.cc @@ -692,7 +692,7 @@ search_line_neon (const uchar *s, const uchar *end ATTRIBUTE_UNUSED) t = (uint16x8_t) vceqq_u8 (vqtbl1q_u8 (tab, vandq_u8 (d, m)), d); mask = vget_lane_u64 ((uint64x1_t)vaddhn_u16 (t, t), 0); if (mask != 0) - return s + (__builtin_ctzl (mask & 0x1111111111111111UL) >> 2); + return s + (__builtin_ctzll (mask & 0x1111111111111111UL) >> 2); s += 16; d = vld1q_u8 (s); }
