aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/floatop.zig
AgeCommit message (Collapse)Author
2023-09-23spirv: enable passing testsRobin Voetter
2023-09-19compiler_rt: fix arm hard-float f16 abiJacob Young
Closes #16848
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-08-21compiler_rt: fix f80 comparisonsCarl Ã…stholm
This corrects comparisons between negative numbers.
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-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-19all: zig fmt and rename "@XToY" to "@YFromX"Eric Joldasov
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-13all: replace `comptime try` with `try comptime`Eric Joldasov
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-05-20spirv: ptr_elem_valRobin Voetter
Implements the ptr_elem_val air tag. Implementation is unified with ptr_elem_ptr.
2023-05-20spirv: more passing testsRobin Voetter
2023-05-18x86_64: fix multi-limb compareJacob Young
2023-05-15x86_64: redo movement, float negation, and `@fabs`Jacob Young
2023-05-15x86_64: add missing multply of `f16`Jacob Young
2023-05-11setup spirv backend in behavior testsAli Chraghi
2023-05-08x86_64: implement binary operations for `f16` and `f16` vectorsJacob Young
2023-05-08x86_64: implement `@floor`, `@ceil`, and `@trunc` for float vectorsJacob Young
2023-05-08x86_64: implement `@sqrt` for `f16` scalars and vectorsJacob Young
2023-05-08x86_64: implement float cast from `f16` to `f64`Jacob Young
2023-05-03x86_64: fix feature confusionJacob Young
2023-05-03x86_64: implement fabsJacob Young
2023-05-01x86_64: fix emitting f80 globalsJacob Young
2023-05-01behavior: update affected tests for the x86_64 backendJacob 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-26wasm: implement float operations with compiler-rtTechatrix
2023-03-15behavior: enable passing behavior tests on stage2_x86_64Jacob Young
2023-03-05CBE: implement vector operationsJacob Young
Also, bigint add and sub which is all I was actually trying to do.
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-10stage2: sparc64: Skip unimplemented testsKoakuma
2022-12-06remove references to stage1 in behavior testsAndrew Kelley
Good riddance.
2022-11-30cbe: operand of address of operator must be an lvalueVeikka Tuominen
2022-11-28aarch64-windows: skip failing floatop behavior testJakub Konka
2022-11-19extract C backend behavior tests with vectorsAndrew Kelley
No functional change. Separates various float operations behavior tests from the ones that test vectors.
2022-11-04all: rename i386 to x86Ali Chraghi
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-08-17Sema: error on ambiguous coercion of comptime float and intsMartin Hafskjold Thoresen
The following, from the documentation as of the time of writing, illustrates the problem: ```zig // Compile time coercion of float to int test "implicit cast to comptime_int" { var f: f32 = 54.0 / 5; _ = f; } ``` It is not clear how to unify the types of 54.0 and 5 to perform the division. We can either - cast 54.0 to comptime_int resulting in @as(comptime_int, 10), which is casted to @as(f32, 10), or - cast 5 to comptime_float resulting in @as(comptime_float, 10.8), which is casted to @as(f32, 10.8) Since the two resulting values are different, a compiler error is appropriate. If we know that casting to either type will result in the same value we don't need to error. For instance, 10.0 / 2 is okay, as is 10 / 2.0. Fixes: #12364
2022-06-30stage2: lower float negation explicitlyAndrew Kelley
Rather than lowering float negation as `0.0 - x`. * Add AIR instruction for float negation. * Add compiler-rt functions for f128, f80 negation closes #11853
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-26clean up some behavior testsAndrew Kelley
* improve names * properly categorize a couple of bug cases * mark one as already passing
2022-05-03Sema: fix bigIntToFloatAndrew Kelley
The implementation had the `@mulAdd` parameters mixed up.
2022-05-01stage1: disable new behavior testsAndrew Kelley
Oops, I forgot to check if the new behavior tests are passing for stage1.