aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/math.zig
AgeCommit message (Collapse)Author
2023-09-23spirv: enable passing testsRobin Voetter
2023-09-23spirv: air sub_with_overflowRobin Voetter
2023-09-23spirv: disable failing testsRobin Voetter
2023-09-19compiler_rt: fix fp sub being optimized to call itselfJacob Young
Closes #16844 Reduces #16846
2023-09-19disable behavior tests regressed by LLVM 17Andrew Kelley
See #16844 See #16845 See #16846 See #16848
2023-09-10wasm: enable successful behavior testsTechatrix
2023-07-31std: finish cleanup up asmJacob Young
This also required implementing the necessary syntax in the x86_64 backend.
2023-07-31cbe: get behavior tests running on armJacob Young
Specifically without linking libc.
2023-07-12Update tests to new splat syntaxantlilja
2023-06-24all: migrate code to new cast builtin syntaxmlugg
Most of this migration was performed automatically with `zig fmt`. There were a few exceptions which I had to manually fix: * `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten * `@truncate`'s fixup is incorrect for vectors * Test cases are not formatted, and their error locations change
2023-06-13all: replace `comptime try` with `try comptime`Eric Joldasov
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-05-20Merge pull request #15753 from Snektron/spirv-more-testsAndrew Kelley
spirv: make more tests pass
2023-05-20spirv: dont use OpIAddCarryRobin Voetter
This instruction is not really working well in the LLVM SPIRV translator, as it is not implemented. This commit also intruces the constructStruct helper function to initialize structs at runtime. This is ALSO buggy in the translator, and we must work around OpCompositeConstruct not working when some of the constituents are runtime-known only. Some other improvements are made: - improved variable() so that it is more useful and no longer requires the address space. It always puts values in the Function address space, and returns a pointer to the Generic address space - adds a boolToInt utility function
2023-05-19wasm: fix `div_trunc` for floatsLuuk de Gram
For floats we would previously only do the division, but not the truncation for floats. This would result in incorrect values being returned.
2023-05-18x86_64: delete some incorrect codeJacob Young
2023-05-15x86_64: fix `@clz` and `@ctz` of `u8`Jacob Young
2023-05-15x86_64: redo movement, float negation, and `@fabs`Jacob Young
2023-05-11setup spirv backend in behavior testsAli Chraghi
2023-05-10llvm/cbe: fix signed `@mod`/`@divFloor` computationsJacob Young
Closes #15636
2023-05-08x86_64: implement some float and float vector movementJacob Young
This allows actually storing value of these supported types in registers, and not restricting them to stack slots.
2023-05-08x86_64: implement `@ctz` and `@clz` for `u128`Jacob Young
2023-05-03x86_64: fix feature confusionJacob Young
2023-05-01x86_64: fix large not and atomicrmwJacob Young
2023-05-01x86_64: fix emitting f80 globalsJacob Young
2023-05-01behavior: update affected tests for the x86_64 backendJacob Young
2023-04-26behavior: update passing cbe testsJacob Young
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-25x86_64: implement atomic loopsJacob Young
2023-03-05CBE: implement some big integer and vector unary operationsJacob Young
2023-03-05CBE: implement big integer and vector comparisonsJacob Young
2023-02-21behavior: enable passing CBE testsJacob Young
2023-02-18update existing behavior tests and std lib to new for loop semanticsAndrew Kelley
2023-01-29cbe: fixes for tls, support for not linking libc, and enabling testskcbanner
- cbe: Implement linksection support, to support TLS when not linking libc - cbe: Support under-aligned variables / struct fields - cbe: Support packed structs (in the C definition of packed) - windows: Fix regression with x86 _tls_array - compiler_rt: Add 128-bit atomics to compiler_rt - tests: Re-enable threadlocal tests on cbe+windows, and llvm+x86 - tests: Re-enable f80 tests that now pass - ci: change windows ci to run the CBE behaviour tests with -lc, to match how the compiler is bootstrapped - update zig1.wasm
2023-01-02skip "binary not 128-bit" on non-llvmkcbanner
2023-01-02fmt fixupskcbanner
2023-01-02tests: add more coverage for 128 bit operationskcbanner
- fixup 128-bit atomics test to only run on x86_64 - add truncation test for 128-bit types, including non power of two targets (there was a bug with broken non-power-of-two truncation in the cbe) - add 128-bit binary not test (covers another bug fixed in the cbe)
2023-01-01cbe: fixes for compiling zig2.c under msvckcbanner
- add zig_mul_i128 - render slice structs in static initializers without casts / c99 style init - add negative numbers and u128 to 128-bit multiply test
2022-12-27Revert "aarch64: reenable tests that are no longer regressed"Andrew Kelley
This reverts commit 3370d58956ecc744a004dff47b0437473f0ef7da. This commit was done with an LLVM build that did not have assertions enabled. There are LLVM assertions being triggered due to this commit. Reopens #10627 Reopens #12013 Reopens #12027
2022-12-27Merge pull request #14024 from Vexu/overflow-arithmeticAndrew Kelley
Make overflow arithmetic builtins return tuples
2022-12-27stage2 AArch64: unify callee-preserved regs on all targetsjoachimschmidt557
also enables many passing behavior tests
2022-12-27update uses of overflow arithmetic builtinsVeikka Tuominen
2022-12-21CBE: fix bitwise notJacob Young
Closes #13911
2022-12-13re-enable "signed zeros are represented properly" beahvior tests for f80 and ↵Meghan
c_longdouble
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-10aarch64: reenable tests that are no longer regressedr00ster91
Closes #12013 Closes #10627 Closes #12027
2022-12-06remove references to stage1 in behavior testsAndrew Kelley
Good riddance.