authorgravatar for r00ster91@proton.meWooster <r00ster91@proton.me> 2022-12-16 00:38:27+01:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-12-18 01:42:15+02:00
loge02e4757b1111fe66447f6c9a90d511017c930e2
tree055e9d6c245bb8fdcc21ed3ce9dc811ca31083bf
parent3367f19078ef02644fb24b521fb6351f6cc558dd

compiler_rt: test clzsi2 on zero on CPUs where possible


1 files changed, 2 insertions(+), 1 deletions(-)

lib/compiler_rt/clzsi2_test.zig+2-1
......@@ -268,7 +268,8 @@ test "clzsi2" {
268268 try test__clzsi2(0xFE000000, 0);
269269 try test__clzsi2(0xFF000000, 0);
270270 // arm and thumb1 assume input a != 0
271 //try test__clzsi2(0x00000000, 32);
271 if (!builtin.cpu.arch.isARM() and !builtin.cpu.arch.isThumb())
272 try test__clzsi2(0x00000000, 32);
272273 try test__clzsi2(0x00000001, 31);
273274 try test__clzsi2(0x00000002, 30);
274275 try test__clzsi2(0x00000004, 29);