aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/packed-struct.zig
AgeCommit message (Collapse)Author
2023-07-29codegen: fix access to byte-aligned nested packed struct elemsXavier Bouchoux
When acessing a packed struct member via a byte aligned ptr (from the optimisation in Sema.structFieldPtrByIndex()) the codegen must apply the parent ptr packed_offset in addition to the field offset itself. resolves https://github.com/ziglang/zig/issues/16609
2023-07-29llvm: partial fix of store undefined to packed result locationXavier Bouchoux
prefer marking too few undefined bits, rather than too many that may overwrite nearby values. partially resolves https://github.com/ziglang/zig/issues/15337
2023-07-26add behavior test for bitcast packed struct twiceAndrew Kelley
closes #9914
2023-06-25x86_64: fix global pointers to packed struct fieldsJacob Young
2023-06-24all: migrate code to new cast builtin syntaxmlugg
Most of this migration was performed automatically with `zig fmt`. There were a few exceptions which I had to manually fix: * `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten * `@truncate`'s fixup is incorrect for vectors * Test cases are not formatted, and their error locations change
2023-06-19all: zig fmt and rename "@XToY" to "@YFromX"Eric Joldasov
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-13all: replace `comptime try` with `try comptime`Eric Joldasov
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-05-20spirv: ptr_elem_valRobin Voetter
Implements the ptr_elem_val air tag. Implementation is unified with ptr_elem_ptr.
2023-05-20spirv: more passing testsRobin Voetter
2023-05-11setup spirv backend in behavior testsAli Chraghi
2023-04-28stage2: sparc64: Skip unimplemented testsKoakuma
2023-04-26behavior: update passing cbe testsJacob Young
2023-04-21cbe: enable CI for std testsJacob Young
2023-04-02x86_64: implement aggregate init of a packed structJacob Young
2023-03-25x86_64: implement atomic loopsJacob Young
2023-03-25x86_64: implement struct_field_val for packed containersJacob Young
2023-03-25x86_64: implement struct_field_ptr for packed containersJacob Young
2023-02-23CBE: cleanup field accessJacob Young
* Implement @fieldParentPtr on a union * Refactor field access to ensure that it is handled consistently * Remove `renderTypecast` as it is now behaves the same as `renderType`
2023-01-17llvm: do not offset packed struct field pointers if they have a host sizeVeikka Tuominen
Closes #14261
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-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-10stage2: sparc64: Skip unimplemented testsKoakuma
2022-12-06remove references to stage1 in behavior testsAndrew Kelley
Good riddance.
2022-11-30wasm: enable behavior tests for packed structsLuuk de Gram
2022-10-29cbe: implement optional slice representation changeJacob Young
2022-10-27Sema: Prevent coercion from tuple pointer to mutable slice.InKryption
Also fix some stdlib code affected by this. Co-authored by: topolarity <topolarity@tapscott.me>
2022-10-25cbe: implement packed structsJacob Young
Sometimes you have to break a test to make progress :)
2022-10-25cbe: implement 128-bit and fix smaller integer builtinsJacob Young
2022-10-25cbe: fix atomicsJacob Young
2022-10-25cbe: fix infinite recursion on recursive typesJacob Young
2022-10-13stage1: Skip new tests that never passed in stage1Cody Tapscott
This gets the behavior tests passing for stage1 again.
2022-09-14stage2: sparc64: Skip compile-failing tests for nowKoakuma
2022-09-02stage2 llvm: fix passing packed structs to callconv(.C) functionsVeikka Tuominen
Closes #12704
2022-08-28Sema: add missing calls to resolveStructLayoutVeikka Tuominen
Closes #12645
2022-08-26Add behavior test coverage for nested packed struct field accessDavid Gonzalez Martin
Closes #3091
2022-08-22Sema: allow optional pointers in packed structsVeikka Tuominen
Closes #12572
2022-08-01Sema: validate packed struct field typesVeikka Tuominen
2022-07-27LLVM: fix lowering byte-aligned packed struct field pointersAndrew Kelley
2022-07-20disable new behavior test in stage1Andrew Kelley
I regressed this in 379beceffd1b0a0b0d8f3163dc02eba1e53ffa39; sorry about that.
2022-07-20improve test case from previous commitAndrew Kelley
Now it checks that the code is correctly compiled rather than only checking that it does not crash the compiler.
2022-07-20stage2 llvm: fix handling of pointer fields in packed structsVeikka Tuominen
2022-06-10Sema: introduce bitSizeAdvanced to recursively resolve typesAndrew Kelley
Same pattern as abiSizeAdvanced. Fixes compiler crash for nested packed structs.
2022-06-09update packed struct behavior tests to new language semanticsAndrew Kelley
2022-06-07stage2: packed struct fixes for big-endian targetsAndrew Kelley
2022-06-07stage2: better codegen for byte-aligned packed struct fieldsAndrew Kelley
* Sema: handle overaligned packed struct field pointers * LLVM: handle byte-aligned packed struct field pointers
2022-05-25mark some more behavior tests as passingAndrew Kelley
2022-04-09stage1: Additional fix for packed structsIgor Stojkovic
2022-03-26stage1: Fix packed structs (#2627, #10104)Igor Stojkovic
Fixed formatting in packed-struct-zig Skipped packed_structs tests in stage2 simplified packed struct tests