aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/basic.zig
AgeCommit message (Collapse)Author
2025-07-25aarch64: more progressJacob Young
- factor out `loadReg` - support all general system control registers in inline asm - fix asserts after iterating field offsets - fix typo in `slice_elem_val` - fix translation of argument locations
2025-07-22aarch64: add new from scratch self-hosted backendJacob Young
2025-07-07remove `usingnamespace` from the languageAndrew Kelley
closes #20663
2025-06-19x86_64: increase passing test coverage on windowsJacob Young
Now that codegen has no references to linker state this is much easier. Closes #24153
2025-06-16rename spirv backend nameAli Cheraghi
`stage2_spirv64` -> `stage2_spirv`
2025-05-31Legalize: implement scalarization of binary operationsJacob Young
2025-05-08test: Disable `arrays and vectors with big integers` on MIPS N32.Alex Rønne Petersen
https://github.com/ziglang/zig/issues/23805
2025-02-24test: skip failing tests with spirv-vulkanAli Cheraghi
2025-01-16x86_64: pass more behavior testsJacob Young
2025-01-16x86_64: implement load and storeJacob Young
2024-10-22tests: re-enable tests that now pass on aarch64-windowskcbanner
2024-10-13spirv: skip range switch testsRobin Voetter
This is not yet implemented
2024-09-24std: add arch bits for s390x-linux (#21342)Meghan Denny
see #21402
2024-09-12test: Re-enable a bunch of behavior tests with LLVM.Alex Rønne Petersen
Closes #10627. Closes #12013. Closes #18034.
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-27behavior,cases: add `@branchHint` test coveragemlugg
2024-08-27compiler,lib,test,langref: migrate `@setCold` to `@branchHint`mlugg
2024-08-27lib,test,tools,doc: update usages of @exportmlugg
2024-08-15elf: fix up riscv for `.got.zig` rewriteDavid Rubin
2024-07-26riscv: update tests and fix reuse bugDavid Rubin
2024-07-26riscv: airAsm rewriteDavid Rubin
with this rewrite we can call functions inside of inline assembly, enabling us to use the default start.zig logic all that's left is to implement lr/sc loops for atomically manipulating 1 and 2 byte values, after which we can use the segfault handler logic.
2024-07-26riscv: enable passing testsDavid Rubin
2024-07-26riscv: fix logic bug in `ptr_elem_ptr`David Rubin
I was doing duplicate work with `elemOffset` multiplying by the abi size and then the `ptr_add` `genBinOp` also multiplying. This led to having writes happening in the wrong place.
2024-07-26riscv: implement more operatorsDavid Rubin
we can run `std.debug.print` now, with both run-time strings and integers!
2024-07-18stage2-wasm: fix big int comparisonPavel Verigo
Unexpected to be found only now
2024-06-13riscv: rewrite "binOp"David Rubin
Reorganize how the binOp and genBinOp functions work. I've spent quite a while here reading exactly through the spec and so many tests are enabled because of several critical issues the old design had. There are some regressions that will take a long time to figure out individually so I will ignore them for now, and pray they get fixed by themselves. When we're closer to 100% passing is when I will start diving into them one-by-one.
2024-06-13riscv: implement optional logicDavid Rubin
2024-06-13riscv: add `airAggregateInit` for arraysDavid Rubin
2024-06-13riscv: `std.fmt.format` runningDavid Rubin
- implements `airSlice`, `airBitAnd`, `airBitOr`, `airShr`. - got a basic design going for the `airErrorName` but for some reason it simply returns empty bytes. will investigate further. - only generating `.got.zig` entries when not compiling an object or shared library - reduced the total amount of ops a mnemonic can have to 3, simplifying the logic
2024-05-11riscv: finally fix bug + `airAggregateInit`David Rubin
i just hadn't realized that I placed the `riscv_start` branch in the non-simplified starts
2024-05-11riscv: by-value structs + `@min`David Rubin
2024-05-11riscv: math progressDavid Rubin
2024-05-11riscv: mutable globalsDavid Rubin
2024-05-11riscv: add stage2_riscv to test matrix and bypass failing testsDavid Rubin
2024-03-26compiler: audit uses of `ptr.addr` in the frontendmlugg
This commit also performs some refactors to `TypedValue.print` in preparation for improved comptime pointer access logic. Once that logic exists, `TypedValue.print` can use Sema to access pointers for more helpful printing. This commit also implements proposal #19435, because the existing logic there relied on some blatantly incorrect code in `Value.sliceLen`. Resolves: #19435
2024-03-18spirv: make generic globals invocation-localRobin Voetter
2024-02-09spirv: make rusticl the primary testing implementationAli Chraghi
2024-02-06x86_64+macho: pass more behavior testsJakub Konka
2024-02-05delete bad behavior testAndrew Kelley
As pointed out in the issue this behavior test branches on an undefined value. That's not valid Zig code. Also behavior tests should not depend on the standard library in this manner. They need to minimally isolate the specific language thing that is being tested. Closes #12681
2024-02-04spirv: update testsRobin Voetter
2024-01-29llvm: revert bad array access optimizationVeikka Tuominen
Closes #18723
2024-01-15test/behavior: replace all 'comptime expect' with 'comptime assert'dweiller
2024-01-06categorize `behavior/bugs/<issueno>.zig` testsVeikka Tuominen
2023-11-24spirv: disable failing testsRobin Voetter
2023-11-19test: update behavior to silence 'var is never mutated' errorsmlugg
2023-10-22Revert "Revert "Merge pull request #17637 from jacobly0/x86_64-test-std""Jacob Young
This reverts commit 6f0198cadbe29294f2bf3153a27beebd64377566.
2023-10-22Revert "Merge pull request #17637 from jacobly0/x86_64-test-std"Andrew Kelley
This reverts commit 0c99ba1eab63865592bb084feb271cd4e4b0357e, reversing changes made to 5f92b070bf284f1493b1b5d433dd3adde2f46727. This caused a CI failure when it landed in master branch due to a 128-bit `@byteSwap` in std.mem.
2023-10-21x86_64: fix crashesJacob Young
2023-10-18spirv: switch on boolAli Chraghi
2023-10-15spirv: update failing / passing testsRobin Voetter
Some tests are now failing due to debug info changes, some tests now pass due to improved compiler functionality.