aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/widening.zig
AgeCommit message (Collapse)Author
2025-07-22aarch64: add new from scratch self-hosted backendJacob Young
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`
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-05-11riscv: add stage2_riscv to test matrix and bypass failing testsDavid Rubin
2024-02-06x86_64+macho: pass more behavior testsJakub Konka
2023-11-19test: update behavior to silence 'var is never mutated' errorsmlugg
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-07x86_64: implement C var argsJacob Young
2023-10-07x86_64: implement `f80` movementJacob Young
2023-10-05x86_64: implement C abi for f128Jacob Young
2023-09-10wasm: enable successful behavior testsTechatrix
2023-05-18x86_64: rewrite castsJacob Young
2023-05-11setup spirv backend in behavior testsAli Chraghi
2023-04-21behavior: enable a bunch of disabled testsJacob Young
2023-04-15disable more failing C backend testsAndrew Kelley
2023-04-15disable not-yet-passing C backend testsAndrew Kelley
2023-03-15behavior: enable passing behavior tests on stage2_x86_64Jacob Young
2022-12-10disable failing CBE behavior tests failing on aarch64-windowsAndrew Kelley
Also start to move redundant tests next to each other to make them slightly more obvious that they need to be cleaned up. See tracking issue #13876
2022-12-10Merge pull request #13872 from koachan/sparc64-codegenAndrew Kelley
stage2: sparc64: Some Air lowerings + skip unbuildable tests
2022-12-10stage2: sparc64: Skip unimplemented testsKoakuma
2022-12-10behavior and langref: reenable previously-regressed tests on aarch64 and ↵r00ster91
powerpc64le Closes #3282
2022-10-25cbe: implement 128-bit and fix smaller integer builtinsJacob Young
2022-10-25behavior: enable stage2_c tests that are currently passingJacob Young
Also fix C warnings triggered by these tests.
2022-06-25stage2 ARM: implement basic intCast and error union wrappingjoachimschmidt557
2022-06-24Revert "wasm: Enable f16 behavior tests"Luuk de Gram
This reverts commit 3c34c9f13c67ff1716a9531e87d23a6dad12b45e.
2022-06-24wasm: Enable f16 behavior testsLuuk de Gram
2022-05-18wasm: enable 128bit integer behavior testsLuuk de Gram
2022-03-27stage1: implement casting from u0leesongun
2022-03-18organize behavior testsAndrew Kelley
* Identify the ones that are passing and stop skipping them. * Flatten out the main behavior.zig file and have each individual test disable itself if it is not passing.
2022-01-28add behavior tests for f80Veikka Tuominen
2022-01-07lint: duplicate import (#10519)Meghan
2021-10-13stage2: remove use of `builtin.stage2_arch` workaroundAndrew Kelley
The LLVM backend no longer needs this hack! However, the other backends still do. So there are still some traces of this workaround in use for now.
2021-10-05stage2: enum fixesAndrew Kelley
* Sema: fix a missing copy on enum tag values * LLVM backend: fix lowering of enum constant values for enums with specified tag values. * Value: fix enumToInt for `enum_numbered` cases. The float widening behavior tests which rely on compiler-rt symbols are now passing.
2021-09-21stage2: progress towards ability to compile compiler-rtAndrew Kelley
* prepare compiler-rt to support being compiled by stage2 - put in a few minor workarounds that will be removed later, such as using `builtin.stage2_arch` rather than `builtin.cpu.arch`. - only try to export a few symbols for now - we'll move more symbols over to the "working in stage2" section as they become functional and gain test coverage. - use `inline fn` at function declarations rather than `@call` with an always_inline modifier at the callsites, to avoid depending on the anonymous array literal syntax language feature (for now). * AIR: replace floatcast instruction with fptrunc and fpext for shortening and widening floating point values, respectively. * Introduce a new ZIR instruction, `export_value`, which implements `@export` for the case when the thing to be exported is a local comptime value that points to a function. - AstGen: fix `@export` not properly reporting ambiguous decl references. * Sema: handle ExportOptions linkage. The value is now available to all backends. - Implement setting global linkage as appropriate in the LLVM backend. I did not yet inspect the LLVM IR, so this still needs to be audited. There is already a pending task to make sure the alias stuff is working as intended, and this is related. - Sema almost handles section, just a tiny bit more code is needed in `resolveExportOptions`. * Sema: implement float widening and shortening for both `@floatCast` and float coercion. - Implement the LLVM backend code for this as well.
2021-09-21stage2: fix unsigned integer to signed integer coercionAndrew Kelley
2021-09-21stage2: enable f16 mathAndrew Kelley
There was panic that said TODO add __trunctfhf2 to compiler-rt, but I checked and that function has been in compiler-rt since April.
2021-08-01move some behavior tests to the "passing for stage2" sectionAndrew Kelley
2021-05-08Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgenAndrew Kelley
Conflicts: * doc/langref.html.in * lib/std/enums.zig * lib/std/fmt.zig * lib/std/hash/auto_hash.zig * lib/std/math.zig * lib/std/mem.zig * lib/std/meta.zig * test/behavior/alignof.zig * test/behavior/bitcast.zig * test/behavior/bugs/1421.zig * test/behavior/cast.zig * test/behavior/ptrcast.zig * test/behavior/type_info.zig * test/behavior/vector.zig Master branch added `try` to a bunch of testing function calls, and some lines also had changed how to refer to the native architecture and other `@import("builtin")` stuff.
2021-04-29move behavior tests from test/stage1/ to test/Andrew Kelley
And fix test cases to make them pass. This is in preparation for starting to pass behavior tests with self-hosted.