aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/switch_loop.zig
AgeCommit message (Collapse)Author
2025-08-07Add support for both '_' and 'else' prongs at the same time in switch statementsJustus Klausecker
If both are used, 'else' handles named members and '_' handles unnamed members. In this case the 'else' prong will be unrolled to an explicit case containing all remaining named values.
2025-07-22aarch64: add new from scratch self-hosted backendJacob Young
2025-07-22llvm: fix switch loop on larger than pointer integerMatthew Lugg
2025-07-14make it a behavior test insteadAndrew Kelley
It's important to check for correct runtime behavior, rather than only checking that the compiler does not crash.
2025-06-16rename spirv backend nameAli Cheraghi
`stage2_spirv64` -> `stage2_spirv`
2025-02-22stage2-wasm: implement switch_dispatch + handle > 32 bit integers in switchesPavel Verigo
Updated solution is future proof for arbitary size integer handling for both strategies .br_table lowering if switch case is dense, .br_if base jump table if values are too sparse.
2024-12-29Value: implement `orderAgainstZeroInner` for errorsDavid Rubin
2024-09-01riscv: implement `switch_dispatch` & `loop_switch_br`David Rubin
2024-09-01x86_64: implement `loop_switch_br` and `switch_dispatch`Jacob Young
2024-09-01compiler: implement labeled switch/continuemlugg