@shrExact
omits runtime safety check for compile-time-known RHS vector operand
#19992
Labels
Milestone
Zig Version
0.13.0-dev.211+6a65561e3
Steps to Reproduce and Observed Behaviour
Compile and run example program with
zig run shr_vec_ov_comptime_rhs.zig
shr_vec_ov_comptime_rhs.zig
:Output:
Expected Behaviour
Compile and run example program with
zig run shr_vec_ov_runtime_rhs.zig
shr_vec_ov_runtime_rhs.zig
:Output:
The only difference between the two examples is that the shift amount in the latter example is runtime-known. The outcomes should be the same.
The text was updated successfully, but these errors were encountered: