aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2024-07-21Sema: fix OOB access in coerceTupleToStruct (#19620)Bogdan Romanyuk
Co-authored-by: Veikka Tuominen <git@vexu.eu>
2024-07-21std.Target: Remove the `r600` arch tag.Alex Rønne Petersen
These are quite old GPUs, and it is unlikely that Zig will ever be able to target them. See: https://en.wikipedia.org/wiki/Radeon_HD_2000_series
2024-07-21test: update `make` functions to use `MakeOptions`David Rubin
2024-07-21Revert "Merge pull request #20380 from tau-dev/master"Andrew Kelley
This reverts commit 397be0c9cc8156d38d1487a4c80210007033cbd0, reversing changes made to 18d412ab2fb7bda92f7bfbdf732849bbcd066c33. Caused test failures in master branch.
2024-07-21test: check output file caching of run steps with side-effectsTechatrix
2024-07-21fix(fmt): pointer type syntax to index (take 2) (#20336)Will Lillis
* Change main token for many-item and c style pointers from asterisk to l brace, update main token in c translation
2024-07-21ip: use `getExternFunc` in `getCoerced`David Rubin
`ip.get` specifically doesn't allow `extern_func` keys to access it.
2024-07-21Merge pull request #20380 from tau-dev/masterAndrew Kelley
llvm: Nest debug info correctly
2024-07-21fix: remove misleading error note for failed array coercionsWillLillis
2024-07-21fix: Add error notes for method calls on double pointers (#20686)Will Lillis
2024-07-20Merge pull request #20692 from pavelverigo/stage2-wasm-overflow-opsAndrew Kelley
stage2-wasm: overflow ops improvement
2024-07-20disable failing tests on stage2 backendsPavel Verigo
2024-07-20stage2-wasm: @mulWithOverflow fixes + 128 bit signedPavel Verigo
2024-07-20incr-test: running an updateAndrew Kelley
2024-07-20init incremental compilation check toolAndrew Kelley
2024-07-19llvm: Fix debug gen for 0-bit typesTau
Add a regression test for that, since these weirdly never occur in any of the other tests on x86-64-linux.
2024-07-19behavior: disable test that triggers an llvm assertionJacob Young
Tracked by #20680
2024-07-18stage2-wasm: improve @shlWithOverflow for <= 128 bitsPavel Verigo
Additionally fixed a bug for shr on signed big ints
2024-07-18stage2-wasm: enhance add/subWithOverflowPavel Verigo
Added behavior tests to verify implementation
2024-07-18stage2-wasm: fix big int comparisonPavel Verigo
Unexpected to be found only now
2024-07-18macho: reinstate duplicate definition checkingJakub Konka
2024-07-18macho: ensure we always name decls like LLVM to avoid confusionJakub Konka
2024-07-18macho: fix unresolved symbols error reportingJakub Konka
2024-07-18macho: test TLS in Zig with x86_64 backendJakub Konka
2024-07-17Merge pull request #20474 from Rexicon226/riscvJakub Konka
more RISC-V backend progress
2024-07-16- Added special handling for translating C extern variables declared within ↵Hayden Riddiford
scoped blocks - Added test/cases/run_translated_c/extern_typedef_variables_in_functions.c to test for issue 19687
2024-07-16Sema: add error note for failed coercions to optional types and error unionsWill Lillis
2024-07-15Sema: support pointer subtractionWooster
2024-07-15Tokenizer bug fixes and improvementsgooncreeper
Fixes many error messages corresponding to invalid bytes displaying the wrong byte. Additionaly improves handling of UTF-8 in some places.
2024-07-15Merge pull request #20633 from ziglang/long-live-zigAndrew Kelley
make zig compiler processes live across rebuilds
2024-07-15Sema: disallow casting to opaquefmaggi
2024-07-14riscv: disable failing testsDavid Rubin
2024-07-14riscv: vectors part 3David Rubin
2024-07-14riscv: vectors part 1David Rubin
2024-07-14riscv: implement `@fence`David Rubin
2024-07-14riscv: truncate `airStructFieldVal` resultDavid Rubin
2024-07-14riscv implement `@sqrt` for f32/f64David Rubin
2024-07-14riscv: `@atomicRmw`David Rubin
Now we generate debug undefined constants when the user asks for them to dedup across the function decl. This takes 2 instructions instead of 7 in the RISC-V backend. TODO, we need to dedupe across function decl boundaries.
2024-07-14make zig compiler processes live across rebuildsAndrew Kelley
Changes the `make` function signature to take an options struct, which additionally includes `watch: bool`. I intentionally am not exposing this information to configure phase logic. Also adds global zig cache to the compiler cache prefixes. Closes #20600
2024-07-13Compilation: introduce work stages for better work distributionJacob Young
2024-07-12Merge pull request #20580 from ziglang/watchAndrew Kelley
introduce file system watching features to the zig build system
2024-07-12Zcu: allow atomic operations on packed structsJacob Young
Same validation rules as the backing integer would have.
2024-07-12std.Build.Step.WriteFile: extract UpdateSourceFilesAndrew Kelley
This has been planned for quite some time; this commit finally does it. Also implements file system watching integration in the make() implementation for UpdateSourceFiles and fixes the reporting of step caching for both. WriteFile does not yet have file system watching integration.
2024-07-12make more build steps integrate with the watch systemAndrew Kelley
2024-07-04compiler: rework type resolution, fully resolve all typesmlugg
I'm so sorry. This commit was just meant to be making all types fully resolve by queueing resolution at the moment of their creation. Unfortunately, a lot of dominoes ended up falling. Here's what happened: * I added a work queue job to fully resolve a type. * I realised that from here we could eliminate `Sema.types_to_resolve` if we made function codegen a separate job. This is desirable for simplicity of both spec and implementation. * This led to a new AIR traversal to detect whether any required type is unresolved. If a type in the AIR failed to resolve, then we can't run codegen. * Because full type resolution now occurs by the work queue job, a bug was exposed whereby error messages for type resolution were associated with the wrong `Decl`, resulting in duplicate error messages when the type was also resolved "by" its owner `Decl` (which really *all* resolution should be done on). * A correct fix for this requires using a different `Sema` when performing type resolution: we need a `Sema` owned by the type. Also note that this fix is necessary for incremental compilation. * This means a whole bunch of functions no longer need to take `Sema`s. * First-order effects: `resolveTypeFields`, `resolveTypeLayout`, etc * Second-order effects: `Type.abiAlignmentAdvanced`, `Value.orderAgainstZeroAdvanced`, etc The end result of this is, in short, a more correct compiler and a simpler language specification. This regressed a few error notes in the test cases, but nothing that seems worth blocking this change. Oh, also, I ripped out the old code in `test/src/Cases.zig` which introduced a dependency on `Compilation`. This dependency was problematic at best, and this code has been unused for a while. When we re-enable incremental test cases, we must rewrite their executor to use the compiler server protocol.
2024-07-04Zcu: key compile errors on `AnalUnit` where appropriatemlugg
This change seeks to more appropriately model the way semantic analysis works by drawing a more clear line between errors emitted by analyzing a `Decl` (in future a `Cau`) and errors emitted by analyzing a runtime function. This does change a few compile errors surrounding compile logs by adding more "also here" notes. The new notes are more technically correct, but perhaps not so helpful. They're not doing enough harm for me to put extensive thought into this for now.
2024-07-04build: fix WriteFile and addCSourceFiles not adding LazyPath depsJonathan Marler
Adds a missing call to addLazyPathDependenciesOnly in std.Build.Module.addCSourceFiles. Also fixes an issue in std.Build.Step.WriteFile where it wasn't updating all the GeneratedFile instances for every directory. To fix the second issue, I removed all the GeneratedFile instances and now all files/directories reference the steps main GeneratedFile via sub paths.
2024-07-04Add behavior test: including the sentinel when dereferencing a string literalRyan Liptak
This test would have failed in the past, but this has been fixed sometime in the last year. Closes #15944
2024-07-03Make 0e.0 and 0xp0 not crashwooster0
This fixes those sequences of characters crashing.
2024-07-02stage2-wasm: not op for <= 128 bits intsPavel Verigo