aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2024-09-16compiler: provide correct result types to `+=` and `-=`mlugg
Resolves: #21341
2024-09-15Sema: don't emit instruction when casting @min/@max result to OPV typemlugg
Resolves: #21408
2024-09-15Sema: give `try` operand `error{}` result type in non-errorable functionsmlugg
Resolves: #21414
2024-09-12riscv: implement `optional_payload_ptr_set`David Rubin
2024-09-12make decl literals work with single item pointersxdBronch
2024-09-12Sema: perform requested coercion when decl literal demoted to enum literalmlugg
Resolves: #21392
2024-09-12AstGen: do not allow unlabeled `break` to exit a labeled switchmlugg
`break`ing from something which isn't a loop should always be opt-in. This was a bug in #21257.
2024-09-12Merge pull request #21287 from linusg/deprecated-default-initMatthew Lugg
Replace deprecated default initializations with decl literals
2024-09-12Replace deprecated default initializations with decl literalsLinus Groh
2024-09-12test: Re-enable a bunch of behavior tests with LLVM.Alex Rønne Petersen
Closes #10627. Closes #12013. Closes #18034.
2024-09-11Merge pull request #21269 from alexrp/soft-floatAndrew Kelley
Fix soft float support, split musl triples by float ABI, and enable CI
2024-09-10Dwarf: implement and test hash mapsJacob Young
2024-09-10Dwarf: implement and test multi array list slicesJacob Young
2024-09-10Dwarf: implement and test multi array listJacob Young
2024-09-10Dwarf: implement and test segmented listJacob Young
2024-09-10Dwarf: implement and test declsJacob Young
2024-09-10test: Switch all `arm-linux-*` triples for module tests from v8a to v7a.Alex Rønne Petersen
Broadly speaking, versions 6, 7, and 8 are the ones that are in common use. Of these, v7 is what you'll typically see for 32-bit Arm today. So let's actually make sure that that's what we're testing.
2024-09-10test: Add arm, mips, and powerpc soft float targets to module tests.Alex Rønne Petersen
Prefer `eabi` and `eabihf` over the ambiguous `none` when not using libc.
2024-09-10test: Skip some floating point tests that fail on `arm-linux-(gnu,musl)eabi`.Alex Rønne Petersen
https://github.com/ziglang/zig/issues/21234
2024-09-10test: Disable `store vector with memset` on soft float arm.Alex Rønne Petersen
https://github.com/ziglang/zig/issues/16177
2024-09-10add error for discarding if/while pointer capturexdBronch
2024-09-07mips: fix C ABI compatibilityMaciej 'vesim' Kuliński
2024-09-07test: Re-enable `vector reduce operation` for most LLVM targets.Alex Rønne Petersen
mips64 failure is tracked in #21091. Closes #7138.
2024-09-07test: Re-enable `vector shift operators` for all LLVM targets.Alex Rønne Petersen
Closes #4951.
2024-09-06std.zig.target: Split `powerpc-linux-musl` triple into ↵Alex Rønne Petersen
`powerpc-linux-musleabi(hf)`.
2024-09-06std.zig.target: Split `mips(el)-linux-musl` triples into ↵Alex Rønne Petersen
`mips(el)-linux-musleabi(hf)`. Closes #21184.
2024-09-06Merge pull request #21310 from alexrp/ppc64-testsAndrew Kelley
Force ELFv2 for PPC64 and add `powerpc64-linux-(none,musl)` to CI
2024-09-04Merge pull request #21257 from mlugg/computed-goto-3Andrew Kelley
compiler: implement labeled switch/continue
2024-09-05test: Add `powerpc64-linux-(none,musl)` triples to module tests.Alex Rønne Petersen
2024-09-05test: Disable `store vector with memset` on powerpc64.Alex Rønne Petersen
This will be re-enabled with LLVM 19.
2024-09-05test: Disable `reinterpret packed union` for powerpc64 too.Alex Rønne Petersen
https://github.com/ziglang/zig/issues/21050
2024-09-04elf: fix emitting static lib when ZigObject is presentJakub Konka
2024-09-04test/link/elf: test --gc-sections on Zig input with LLVM tooJakub Konka
2024-09-03AstGen: update @errorCast to maybe eval to errMichael Dusan
Consequently, `AstGen.ret()` now passes the error code to `.defer_error_code`. Previously, the error union value was passed. closes #20371
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-01AstGen: error on unused switch labelmlugg
2024-09-01AstGen: allow breaking from labeled switchmlugg
Also, don't use the special switch lowering for errors if the switch is labeled; this isn't currently supported. Related: #20627.
2024-09-01compiler: implement labeled switch/continuemlugg
2024-09-01compiler: implement decl literalsmlugg
Resolves: #9938
2024-09-01compiler: provide result type to operand of `try`mlugg
This is mainly useful in conjunction with Decl Literals (#9938). Resolves: #19777
2024-09-01riscv: implement `errunion_payload_ptr_set`David Rubin
2024-09-01fix(Sema): patch segfault in `finishStructInit`WillLillis
2024-08-29behavior: avoid field/decl name conflictsmlugg
2024-08-29cases: update for new error wording, add coverage for field/decl name conflictmlugg
2024-08-28Merge pull request #21230 from jacobly0/stack-traceJacob Young
Dwarf: fix self-hosted stack traces
2024-08-28Dwarf: fix and test inline function bugsJacob Young
2024-08-28std: update `std.builtin.Type` fields to follow naming conventionsmlugg
The compiler actually doesn't need any functional changes for this: Sema does reification based on the tag indices of `std.builtin.Type` already! So, no zig1.wasm update is necessary. This change is necessary to disallow name clashes between fields and decls on a type, which is a prerequisite of #9938.
2024-08-27Dwarf: fix and test string formatJacob Young
2024-08-27translate-c: support GCC/Clang pointer subtraction extensionmlugg
Pointer subtraction on `void *` or function pointers is UB by the C spec, but is permitted by GCC and Clang as an extension. So, avoid crashing translate-c in such cases, and follow the extension behavior -- there's nothing else that could really be intended.