aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/math.zig
AgeCommit message (Collapse)Author
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.
2022-12-04disable CBE behavior tests that are not passing in release modesAndrew Kelley
2022-12-02cbe: use memcpy for underaligned loads and storesJacob Young
2022-11-30cbe: do not memcpy identical integer types when bitcastingVeikka Tuominen
2022-11-30cbe: reduce amount of temporary localsVeikka Tuominen
2022-11-30cbe: ensure test and tagName function names are uniqueVeikka Tuominen
2022-10-25cbe: fix floating point builtinsJacob Young
2022-10-25cbe: enable test fixed by #13296Jacob Young
2022-10-25cbe: improve floating point type supportJacob Young
2022-10-25cbe: add support for all float literals typesJacob Young
2022-10-25cbe: implement 128-bit and fix smaller integer builtinsJacob Young
2022-10-25cbe: implement some float opsJacob Young
2022-10-25cbe: fix infinite recursion on recursive typesJacob Young
2022-10-25behavior: enable stage2_c tests that are currently passingJacob Young
Also fix C warnings triggered by these tests.