aboutsummaryrefslogtreecommitdiff
path: root/test/behavior
AgeCommit message (Collapse)Author
2023-11-03x86_64: fix std test failuresJacob Young
2023-11-01wasm: re-enable regressed testsLuuk de Gram
2023-10-31std.builtin.Endian: make the tags lower caseAndrew Kelley
Let's take this breaking change opportunity to fix the style of this enum.
2023-10-31mem: fix ub in writeIntJacob Young
Use inline to vastly simplify the exposed API. This allows a comptime-known endian parameter to be propogated, making extra functions for a specific endianness completely unnecessary.
2023-10-31Sema: fix incorrect error comptime-mutating empty arrayJacob Young
2023-10-31sema: when guessing union alignment, save the result and check if the guess ↵kcbanner
was correct
2023-10-30Merge pull request #17773 from ziglang/elf-exportsJakub Konka
link: implement exporting anon decls
2023-10-29Fix hasRuntimeBitsAdvanced lazy case for pointers and optionals DilithiumNitrate
As suggested by mlugg, always returns `error.NeedLazy`. If this has a performance impact, it could be replaced by adding lazy handling to `comptimeOnlyAdvanced`.
2023-10-29coff: implement exporting anon declsJakub Konka
2023-10-29macho: implement exporting anon declsJakub Konka
2023-10-29elf: implement exporting anon declsJakub Konka
2023-10-29elf: add partial implementation of exporting anon declsJakub Konka
2023-10-29x86_64: fix compiler rt test failuresJacob Young
2023-10-28Sema: do not assume switch item indices align with union field indicesmlugg
Resolves: #17754
2023-10-27split export behavior test into export_keyword and export_builtinAndrew Kelley
2023-10-27categorize nan behavior testAndrew Kelley
move it from bugs/xxx.zig to its own category
2023-10-27categorize fn ptr behavior testAndrew Kelley
move a function pointer test from bugs/xxx.zig to fn.zig
2023-10-27categorize globals behavior testsAndrew Kelley
moves some tests that store to global variables to their own category instead of being named after a GitHub issue.
2023-10-27Merge pull request #17735 from ziglang/export-anonAndrew Kelley
link: support exporting constant values without a Decl
2023-10-26link: support exporting constant values without a DeclAndrew Kelley
The main motivating change here is to prevent the creation of a fake Decl object by the frontend in order to `@export()` a value. Instead, `link.updateDeclExports` is renamed to `link.updateExports` and accepts a tagged union which can be either a Decl.Index or a InternPool.Index.
2023-10-26test: enable `c-abi-tests` for the x86_64 backendJacob Young
Add testing for `x86_64_v2` and `x86_64_v3` with the x86_64 backend.
2023-10-25x86_64: pass more testsJacob Young
* 128-bit integer multiplication with overflow * more instruction encodings used by std inline asm * implement the `try_ptr` air instruction * follow correct stack frame abi * enable full panic handler * enable stack traces
2023-10-24Merge pull request #17666 from jacobly0/x86_64-unicodeJacob Young
x86_64: pass more std tests
2023-10-23x86_64: implement 128-bit builtinsJacob Young
* `@clz` * `@ctz` * `@popCount` * `@byteSwap` * `@bitReverse` * various encodings used by std
2023-10-23x86_64: implement `@mod` for floating-point typesJacob Young
2023-10-23rename behavior test to better describe what it doesAndrew Kelley
In general, let's not lean on GitHub issue numbers as having meaning. The goal of behavior tests is to produce a minimum set of tests that test 100% of the language.
2023-10-23Revert "Revert "Merge pull request #17657 from Snektron/spirv-recursive-ptrs""Robin Voetter
This reverts commit 9f0359d78f9facc38418e32b0e8c1bf6f99f0d26 in an attempt to make the tests pass again. The CI failure from that merge should be unrelated to this commit.
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-22Revert "Merge pull request #17657 from Snektron/spirv-recursive-ptrs"Andrew Kelley
This reverts commit b822e841cda0adabe3fec260ff51c18508f7ee32, reversing changes made to 0c99ba1eab63865592bb084feb271cd4e4b0357e. This caused a CI failure when it landed in master branch.
2023-10-22Merge pull request #17657 from Snektron/spirv-recursive-ptrsRobin Voetter
spirv: recursive pointers
2023-10-22Merge pull request #17637 from jacobly0/x86_64-test-stdJacob Young
x86_64: start to enable `test-std` and `test-compiler-rt` testing
2023-10-21migrate make_ptr_const to new anonymous decl mechanismAndrew Kelley
Instead of creating Module.Decl objects, directly create InternPool pointer values using the anon_decl Addr encoding. The LLVM backend needed code to notice the alignment of the pointer and lower accordingly. The other backends likely need a similar change.
2023-10-21spirv: self-referential pointers via new fwd_ptr_typeRobin Voetter
Its a little ugly but it works.
2023-10-21spirv: improve union operationsRobin Voetter
This removes the strategy where union with different active fields would be generated, and instead simply pointer casts the active field type where required. This also allows removing spv.ptrType and using self.ptrType instead, and allows caching all union types (because there is only the canonical one).
2023-10-21x86_64: enable fixed behavior testJacob Young
2023-10-21x86_64: fix bugs and disable erroring testsJacob Young
2023-10-21x86_64: fix crashesJacob Young
2023-10-18Merge pull request #17577 from alichraghi/spirv-1Robin Voetter
spirv: switch on bool
2023-10-18Merge pull request #17561 from alichraghi/spirv-0Robin Voetter
spirv: memcpy
2023-10-18spirv: switch on boolAli Chraghi
2023-10-17Sema: disallow `@intFromPtr` for comptime-only typesBogdan Romanyuk
2023-10-17spirv: memcpyAli Chraghi
2023-10-16spirv: fieldParentPtrAli Chraghi
2023-10-15wasm: disable division testRobin Voetter
Seems that bit integers are not properly supported
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.
2023-10-15spirv: simple binary and comparison vector operationsAli Chraghi
2023-10-15wasm: lower min/max for floats to compiler_rtRobin Voetter
The min and max builtins in Zig have some intricate behavior related to floats, that is not replicated with the min and max wasm instructions or using simple select operations. By lowering these instructions to compiler_rt, handling around NaNs is done correctly. See also https://github.com/WebAssembly/design/issues/214
2023-10-15spirv: emit vectors as arraysAli Chraghi
2023-10-15std.testing: disable expectEqualSlices printing for spirvRobin Voetter