diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-12-08 15:19:13 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-12-08 15:25:31 -0700 |
| commit | 38b2d6209239f0dad7cb38e656d9d38506f126ca (patch) | |
| tree | 93482ff72c52c99608fd5514ee683f3fbec80e30 /lib/std/Thread.zig | |
| parent | 64e2bfaa236c14b403103c92691fa6774e1fdc83 (diff) | |
| download | zig-38b2d6209239f0dad7cb38e656d9d38506f126ca.tar.gz zig-38b2d6209239f0dad7cb38e656d9d38506f126ca.zip | |
stage1: saturating shl operates using LHS type
Saturating shift left (`<<|`) previously used the `ir_analyze_bin_op_math`
codepath rather than the `ir_analyze_bit_shift` codepath, leading to it
doing peer type resolution (incorrect) instead of using the LHS type as
the number of bits to do the saturating against.
This required implementing SIMD vector support for `@truncate`.
Additionall, this commit adds a compile error for saturating shift left
on a comptime_int.
stage2 does not pass these new behavior tests yet.
closes #10298
Diffstat (limited to 'lib/std/Thread.zig')
0 files changed, 0 insertions, 0 deletions
