about summary refs log tree commit diff
path: root/src/test/codegen/enum-match.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-109/+0
2022-12-16Make enum-match.rs test robust against variable name changesCollin Baker-2/+2
https://reviews.llvm.org/D140192 caused the LLVM variable generated for enum discriminant checks to be named differently (%narrow vs %1). This adjusts the test CHECK directives to match any name.
2022-11-18rustc_codegen_ssa: Fix for codegen_get_discrMichael Benfield-5/+2
When doing the optimized implementation of getting the discriminant, the arithmetic needs to be done in the tag type so wrapping behavior works correctly. Fixes #104519
2022-11-11rustc_codegen_ssa: Better code generation for niche discriminants.Michael Benfield-0/+112
In some cases we can avoid arithmetic before checking whether a niche represents an untagged variant. This is relevant to #101872