mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
compiler_rt: test clzsi2 on zero on CPUs where possible
This commit is contained in:
parent
3367f19078
commit
e02e4757b1
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user