aboutsummaryrefslogtreecommitdiff
path: root/test/behavior
AgeCommit message (Collapse)Author
2024-02-12x86_64: implement `ret_safe`Jacob Young
2024-02-12x86_64: implement mul, div, and mod of large integersJacob Young
This enables the last compiler-rt test disabled for the x86_64 backend.
2024-02-11add behavior test for recently fixed wasm backend bugAndrew Kelley
Adds the corresponding behavior test for the fix in 320c4d68f5f40794ae31d5535de9c3a8ff5cb471.
2024-02-09spirv: make rusticl the primary testing implementationAli Chraghi
2024-02-08Polish a few tests in switch.zigJohn Schmidt
- Return `error.TestFailed` instead of panicing - Use `comptime assert` for type checks so that errors surface at compile time
2024-02-08Improvements after code reviewJohn Schmidt
2024-02-08Preserve field alignment in union pointer capturesJohn Schmidt
2024-02-06x86_64+macho: pass more behavior testsJakub Konka
2024-02-05delete bad behavior testAndrew Kelley
As pointed out in the issue this behavior test branches on an undefined value. That's not valid Zig code. Also behavior tests should not depend on the standard library in this manner. They need to minimally isolate the specific language thing that is being tested. Closes #12681
2024-02-04spirv: air vector_store_elementRobin Voetter
2024-02-04spirv: update testsRobin Voetter
2024-02-04spirv: air splatRobin Voetter
2024-02-04spirv: air absRobin Voetter
2024-02-04spirv: fix shuffle properlyRobin Voetter
2024-02-04spirv: vectorize max, minRobin Voetter
2024-02-04spirv: vectorize int_cast, truncRobin Voetter
2024-02-04spirv: air is_(non_)null_ptr, optional_payload_ptrRobin Voetter
2024-02-04spirv: air mul_addRobin Voetter
2024-02-04spirv: air int_from_boolRobin Voetter
2024-02-04spirv: vectorize add/sub overflowRobin Voetter
2024-02-04spirv: reduce, reduce_optimizedRobin Voetter
2024-02-04spirv: shlWithOverflowRobin Voetter
2024-02-04spirv: vectors for air notRobin Voetter
2024-02-04spirv: element-wise operation helperRobin Voetter
2024-02-04spirv: sh[rl](_exact)?Robin Voetter
2024-01-30Sema: fix union init with zero size fieldPavel Verigo
2024-01-29llvm: ensure returned undef is 0xaa bytes when runtime safety is enabledVeikka Tuominen
Closes #13178
2024-01-29Fix some comptime packed struct issuesSuperAuguste
Co-authored-by: Veikka Tuominen <git@vexu.eu>
2024-01-29Merge pull request #18729 from Vexu/fixesAndrew Kelley
Fix some generic{Reader,Writer} related issues
2024-01-29llvm: revert bad array access optimizationVeikka Tuominen
Closes #18723
2024-01-29llvm: fix alignment of array ptr when bitcasting vectorVeikka Tuominen
Closes #17996
2024-01-29Value: expand `canMutateComptimeVarState`Veikka Tuominen
Closes #17761
2024-01-29Sema: do not emit `@errorCast` safety check when dest is adhoc inferred ↵Veikka Tuominen
error set Closes #17354
2024-01-26test: add behavior coverage for global setter in function livenessMeghan Denny
2024-01-20Sema: replace uses of `toUnsignedInt` with `toUnsignedIntAdvanced`Veikka Tuominen
During semantic analysis the value may be an unresolved lazy value which makes using `toUnsignedInt` invalid. Add assertions to detect similar issues in the future. Closes #18624
2024-01-19do not enforce function parameters to be marked comptime if only called at ↵Meghan Denny
comptime
2024-01-19return optional state to `zirPtrCastNoDest`David Rubin
2024-01-15Merge pull request #18569 from dweiller/17944-followupAndrew Kelley
17944 followup
2024-01-15test/behavior: fix test type check for multi-ptr slicedweiller
The original test was checking the types of irrelevant slices, the test is for slicing of multi-pointers _without_ an end value, but the types of slices with an end value were being checked.
2024-01-15test/behavior: replace all 'comptime expect' with 'comptime assert'dweiller
2024-01-15Sema: fix `@extern` declsJacob Young
Closes #18550
2024-01-14sema: allow slicing *T with comptime known [0..1]dweiller
2024-01-11LLVM: fix lowering of extern anyopaqueAndrew Kelley
closes #18461
2024-01-09test: add tests for switch_block_err_uniondweiller
2024-01-07Merge pull request #18470 from castholm/typeInfo-sentinelsAndrew Kelley
Make `@typeInfo` return null-terminated strings
2024-01-08llvm: optional slices cannot be passed in parts when they allowzeroVeikka Tuominen
Closes #18428
2024-01-07Fix failing type reificationsCarl Åstholm
2024-01-06categorize `behavior/bugs/<issueno>.zig` testsVeikka Tuominen
2024-01-04sema: Prevent reifying non-empty union with empty tag typeCarl Åstholm
2024-01-04Merge pull request #18376 from amp-59/shl_exact_comptime_int_to_shlAndrew Kelley
Sema: Updated `zirShl` to compute `shl_exact` with `comptime_int` LHS using `shl`