From e02e4757b1111fe66447f6c9a90d511017c930e2 Mon Sep 17 00:00:00 2001 From: zooster Date: Fri, 16 Dec 2022 00:38:27 +0100 Subject: [PATCH] compiler_rt: test clzsi2 on zero on CPUs where possible --- lib/compiler_rt/clzsi2_test.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/compiler_rt/clzsi2_test.zig b/lib/compiler_rt/clzsi2_test.zig index f54d35e357..fc0790ef71 100644 --- a/lib/compiler_rt/clzsi2_test.zig +++ b/lib/compiler_rt/clzsi2_test.zig @@ -268,7 +268,8 @@ test "clzsi2" { try test__clzsi2(0xFE000000, 0); try test__clzsi2(0xFF000000, 0); // arm and thumb1 assume input a != 0 - //try test__clzsi2(0x00000000, 32); + if (!builtin.cpu.arch.isARM() and !builtin.cpu.arch.isThumb()) + try test__clzsi2(0x00000000, 32); try test__clzsi2(0x00000001, 31); try test__clzsi2(0x00000002, 30); try test__clzsi2(0x00000004, 29);