aboutsummaryrefslogtreecommitdiff
path: root/test/behavior
AgeCommit message (Collapse)Author
2023-07-10Sema: resolve field type layout for anon struct type infoIan Johnson
Closes #16148
2023-07-03Merge pull request #15879 from r00ster91/more_stage1_test_coverageAndrew Kelley
More stage1 test coverage
2023-07-03behavior: test @bitCast of packed struct of boolsr00ster91
This seems to have resolved itself now. Tested on x86_64 using debug optimize mode. Closes #9851
2023-07-01Merge pull request #16284 from Snektron/spirv-internpool-fixesAndrew Kelley
SPIR-V InternPool aftermath damage control
2023-07-01spirv: disable new behavior tests that do not passRobin Voetter
Some new behavior tests have recently been added, and not all of these pass with the SPIR-V backend.
2023-06-30Unrevert "Sema: preserve extern struct field alignment"Jacob Young
This unreverts commit 1a2468abfcd8b539193d943c1eefb71319cc7b88.
2023-06-30Remerge pull request #15995 from mlugg/fix/union-field-ptr-alignJacob Young
Sema: copy pointer alignment to union field pointers This is an unrevert of 43c98dc11567eeb38be041c7dad179c53156f3df.
2023-06-30Sema: copy pointer alignment to struct field pointersmlugg
2023-06-30Sema: copy pointer alignment to union field pointersmlugg
This implements the semantics as discussed in today's compiler meeting, where the alignment of pointers to fields of default-layout unions cannot exceed the field's alignment. Resolves: #15878
2023-06-29Revert "Merge pull request #15995 from mlugg/fix/union-field-ptr-align"Jacob Young
This reverts commit 40cf3f7ae5fbfb84b7af6b27e6296ee858b209ef, reversing changes made to d98147414d084bc41b00ba9c0be8c7b82ad4e76c.
2023-06-29Revert "Sema: preserve extern struct field alignment"Jacob Young
This reverts commit 4620972d086ebb3b7686a79914876488c6dfd171.
2023-06-28Sema: preserve extern struct field alignmentAlex Kladov
In extern struct { x: u32, y: u16 } we actually know that y's alignment is `@alignOf(u32)`, and not just `@alignOf(u16)`. closes: #16134
2023-06-28behavior: test slicing array of zero-sized valueszooster
Closes #15343
2023-06-27behavior: boolean vector with 2 or more elementsr00ster91
Closes #12169
2023-06-27behavior: if-@as-if chainr00ster91
Closes #8952
2023-06-27behavior: correct alignment for elements and slices of aligned arrayr00ster91
Closes #11751
2023-06-26Sema: fix `@min`/`@max` type resolution with all runtime argsJacob Young
Closes #16229
2023-06-26AstGen: fix result locations for elements of typed array initmlugg
Resolves: #16226
2023-06-26Value: fix incorrect types returned from readFromMemoryJacob Young
2023-06-26Merge pull request #15771 from jacobly0/x86_64-behaviorjacobly0
x86_64: behavior
2023-06-25Merge pull request #15995 from mlugg/fix/union-field-ptr-alignAndrew Kelley
Sema: copy pointer alignment to union field pointers
2023-06-25x86_64: disable failing behavior testJacob Young
2023-06-25x86_64: truncate packed field valueJacob Young
2023-06-25x86_64: add missing padding to global unionsJacob Young
2023-06-25x86_64: fix global pointers to packed struct fieldsJacob Young
2023-06-25x86_64: fix packed store crashJacob Young
2023-06-25std.cstr: deprecate namespaceEric Joldasov
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-25Sema: copy pointer alignment to struct field pointersmlugg
2023-06-25Sema: copy pointer alignment to union field pointersmlugg
This implements the semantics as discussed in today's compiler meeting, where the alignment of pointers to fields of default-layout unions cannot exceed the field's alignment. Resolves: #15878
2023-06-25behavior: add tests for cast builtins coercing to optional and error unionmlugg
2023-06-24Merge pull request #16188 from kcbanner/fix_cbe_airErrUnionPayloadPtrSetAndrew Kelley
cbe: fix crash caused by calling `mod.intValue` on `type_inferred_error_set`
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-24cbe: fix crash caused by calling `mod.intValue` on `type_inferred_error_set`kcbanner
2023-06-23sema: Fix overflow when analyzing an inline switch prong range that ends on ↵kcbanner
the maximum value of the switched type
2023-06-22Value: handle more legacy tags when writing extern struct to memoryJacob Young
Closes #16130
2023-06-20Type: remove arbitrary restrictions on param and return typesJacob Young
Opaque and `noreturn` makes sense since they don't represent real values, but `null` and `undefined` are perfectly normal comptime-only values. Closes #16088
2023-06-20Sema: fix auto-numbered enums with signed tag typesJacob Young
Closes #16095
2023-06-20Fix @enumToInt and @tagName for auto-numbered enums with signed tag type.IntegratedQuantum
2023-06-20codegen: Set c_char signedness based on the targetEvan Haas
2023-06-19Merge pull request #16046 from BratishkaErik/issue-6128Andrew Kelley
Renaming `@xtoy` to `@YfromX`
2023-06-19Module: add support for multiple global asm blocks per declJacob Young
Closes #16076
2023-06-19all: zig fmt and rename "@XToY" to "@YFromX"Eric Joldasov
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-16Merge pull request #16064 from Luukdegram/wasm-linkerAndrew Kelley
wasm/linker: symbol resolution improvements
2023-06-16Sema: consider type bounds when refining result type of `@min`/`@max`mlugg
I achieved this through a major refactor of the logic of analyzeMinMax. This change should be compatible with vectors of comptime_int, which Andrew said are supposed to work (but which currently do not).
2023-06-16wasm-linker: correctly resolve undefined functionsLuuk de Gram
We now resolve undefined symbols during incremental-compilation where we discard the current symbol if we detect we found an existing symbol which is not the one currently being updated. The symbol will always be discarded in favor of the existing symbol in such a case.
2023-06-16codegen: fix union paddingLuuk de Gram
This regressed during the internpool merges. This commit reinstates the padding logic for unions.
2023-06-15Merge pull request #16042 from mlugg/fix/slice-len-comptime-mutationAndrew Kelley
Fix comptime mutation of slice len
2023-06-15Sema: fix @intToPtr of zero value to optional pointermlugg
Calling into coercion logic here is a little opaque, and more to the point wholly unnecessary. Instead, the (very short) logic is now implemented directly in Sema. Resolves: #16033
2023-06-14Sema: allow indexing tuple and vector pointersmlugg
Resolves: #13852 Resolves: #14705
2023-06-15Sema: allow empty end index in zirSliceSentinelmlugg
This fixes a regression, and enables some related behavior tests which were accidentally disabled.