aboutsummaryrefslogtreecommitdiff
path: root/test/behavior
AgeCommit message (Collapse)Author
2023-01-01cbe: add msvc flt atomics, re-enable testkcbanner
2023-01-01cbe: all behaviour tests now pass on msvckcbanner
- Fix zig_clz_u128 not respecting the bits argument. This was crashing the compile-rt addxf3 tests with the cbe - Instead of redering a negation for negative 128 bit int literals, render the literal as twos complement. This allows rendering int representations of floats correctly (specifically f80).
2023-01-01tests: disable function alignment test for cbe, add 128-bit atomicrmw testskcbanner
2023-01-01cbe: implement 128 bit atomic operations with cmpxchg loopskcbanner
- Enable 128 bit atomic int tests for the cbe only
2023-01-01tests: update "atomicrmw with ints" to test u8 through u64kcbanner
2023-01-01cbe: msvc atomicskcbanner
- Implement most atomic operations for msvc - Disable "atomicrmw with floats" test for cbe
2023-01-01temporarily disable asm testskcbanner
2022-12-31add tests for fixed stage1 bugsVeikka Tuominen
Closes #4144 Closes #4255 Closes #4372 Closes #4375 Closes #4380 Closes #4417 Closes #4423 Closes #4476 Closes #4528 Closes #4562 Closes #4572 Closes #4597 Closes #4639 Closes #4672 Closes #4782 Closes #4955 Closes #4984 Closes #4997 Closes #5010 Closes #5114 Closes #5166 Closes #5173 Closes #5276
2022-12-29Merge pull request #14101 from Vexu/stage1Andrew Kelley
add tests for fixed stage1 bugs
2022-12-29add tests for fixed stage1 bugsVeikka Tuominen
Closes #1957 Closes #1994 Closes #2140 Closes #2746 Closes #2802 Closes #2855 Closes #2895 Closes #2981 Closes #3054 Closes #3158 Closes #3234 Closes #3259 Closes #3371 Closes #3376 Closes #3387 Closes #3529 Closes #3653 Closes #3750 Closes #3778 Closes #3882 Closes #3915 Closes #3929 Closes #3961 Closes #3988 Closes #4123 Closes #7448
2022-12-29stage2 AArch64: implement errUnion{Err,Payload} for registersjoachimschmidt557
2022-12-27disable failing C var arg behavior testsAndrew Kelley
See tracking issue #14096
2022-12-27Revert "aarch64: reenable tests that are no longer regressed"Andrew Kelley
This reverts commit 3370d58956ecc744a004dff47b0437473f0ef7da. This commit was done with an LLVM build that did not have assertions enabled. There are LLVM assertions being triggered due to this commit. Reopens #10627 Reopens #12013 Reopens #12027
2022-12-27add behavior test for ptrcasted function pointersAndrew Kelley
See #2626. The runtime case is solved but comptime is not.
2022-12-27add behavior test for comptime pointer castingAndrew Kelley
comptime `@ptrCast` a subset of an array, then write through it closes #2444
2022-12-27add behavior test for optional error union return typeAndrew Kelley
closes #1814
2022-12-27Merge pull request #14024 from Vexu/overflow-arithmeticAndrew Kelley
Make overflow arithmetic builtins return tuples
2022-12-27Merge pull request #14084 from joachimschmidt557/stage2-aarch64Jakub Konka
stage2 AArch64: small improvements
2022-12-27enable test on more targetsVeikka Tuominen
This was fixed by 8a0a6b7387fcd0017db85de14793abfd6ec7f6e5 for targets without avx512
2022-12-27value: fix bitcasting packed structs with `u0` fieldsVeikka Tuominen
Closes #13942
2022-12-27stage2 AArch64: implement field_parent_ptrjoachimschmidt557
2022-12-27stage2 AArch64: unify callee-preserved regs on all targetsjoachimschmidt557
also enables many passing behavior tests
2022-12-27update uses of overflow arithmetic builtinsVeikka Tuominen
2022-12-27llvm: add asserts and behavior tests for #14063Jacob Young
Closes #14063
2022-12-26Merge pull request #14015 from Vexu/recursive-inlineAndrew Kelley
Sema: add error for recursive inline call
2022-12-26Sema: add error for recursive inline callVeikka Tuominen
Closes #12973
2022-12-26Sema: fix elem ptr type of vector in sliceVeikka Tuominen
Closes #14071
2022-12-26Sema: add missing `resolveLazyValue` casesJacob Young
Closes #14032
2022-12-25Sema: fix missing struct layout for llvm backendJacob Young
Closes #14063
2022-12-24Merge pull request #14058 from jacobly0/concatAndrew Kelley
2022-12-24behavior: disable tests on failing backendsJacob Young
2022-12-24Sema: relax undefined checks for concatJacob Young
Closes #14037
2022-12-24Sema: support concat of tuple and arrayJacob Young
Closes #14041
2022-12-24behavior: disable tests that trigger an llvm 15 bug and assertionJacob Young
``` LLVM Emit Object... zig: llvm/include/llvm/ADT/APInt.h:840: void llvm::APInt::lshrInPlace(unsigned int): Assertion `ShiftAmt <= BitWidth && "Invalid shift amount"' failed. Aborted ``` Tracked by #13782
2022-12-23fix overflow found while fuzzingtravisstaloch
* allow file level `union {}` to parse as tuple field this was found while fuzzing zls. * before this patch the input `union {}` crashed the parser. after this, it parses correctly just like `struct {}`. * adds behavior tests for both inputs `struct {}` and `union {}`, checking that each becomes a file level tuple field.
2022-12-22Merge pull request #13960 from r00ster91/stage1cruftAndrew Kelley
Close more old stage1 issues
2022-12-21behavior: more test coverager00ster91
Closes #12450 Closes #13113 Closes #12051 Closes #12092 Closes #12119 Closes #12142 Closes #12450 Closes #13113 Closes #11995 Closes #12000
2022-12-21CBE: fix bitwise notJacob Young
Closes #13911
2022-12-20Merge pull request #14004 from Vexu/packed-struct-vectorVeikka Tuominen
llvm: handle vectors in packed structs
2022-12-20Sema: fix crash with generic function with generic function parameterVeikka Tuominen
Closes #12810
2022-12-19Merge pull request #14000 from jacobly0/zero-bit-fieldsAndrew Kelley
codegen: fix taking the address of a field in a zero-bit struct
2022-12-19Sema: fix coercion from `[:0]T` to `[*c]T`Veikka Tuominen
2022-12-19value: use int tag type when querying for tag valueVeikka Tuominen
Closes #13757
2022-12-19behavior: disable failing testJacob Young
Also add an assert to catch this issue earlier. For future reference, the decl without a type and value is the string literal "GET".
2022-12-19llvm: handle vectors in packed structsVeikka Tuominen
Closes #13201
2022-12-18codegen: fix taking the address of a zero-bit field in a zero-bit structJacob Young
Normally when we want a pointer to the end of a struct we just add 1 to the struct pointer. However, when it is a zero-bit struct, the pointer type being used during lowering is often a dummy pointer type that actually points to a non-zero-bit type, so we actually want to add 0 instead, since a zero-bit struct begins and ends at the same address.
2022-12-18llvm: fix lowering pointer to final zero-width field of a comptime valueJacob Young
* Handle a `null` return from `llvmFieldIndex`. * Add a behavior test to test this code path. * Reword this test name, which incorrectly described how pointers to zero-bit fields behave, and instead describe the actual test.
2022-12-18add behavior test for empty error set inferenceAndrew Kelley
closes #1386 closes #7541
2022-12-18add behavior test for comptime pointer castingAndrew Kelley
closes #1150 closes #1292 closes #4093
2022-12-18Merge pull request #13914 from Vexu/variadicAndrew Kelley
implement defining C variadic functions