aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/maximum_minimum.zig
AgeCommit message (Collapse)Author
2023-09-23spirv: enable passing testsRobin Voetter
2023-09-10wasm: enable successful behavior testsTechatrix
2023-08-18Make NaNs quiet by default and other NaN tidy-up (#16826)Lewis Gaul
* Generalise NaN handling and make std.math.nan() give quiet NaNs * Address uses of std.math.qnan_* and std.math.nan_* consts * Comment out failing test due to issues with signalling NaN * Fix issue in c_builtins.zig where we need qnan_u32
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-01spirv: disable new behavior tests that do not passRobin Voetter
Some new behavior tests have recently been added, and not all of these pass with the SPIR-V backend.
2023-06-26Sema: fix `@min`/`@max` type resolution with all runtime argsJacob Young
Closes #16229
2023-06-16Sema: consider type bounds when refining result type of `@min`/`@max`mlugg
I achieved this through a major refactor of the logic of analyzeMinMax. This change should be compatible with vectors of comptime_int, which Andrew said are supposed to work (but which currently do not).
2023-06-13all: replace `comptime try` with `try comptime`Eric Joldasov
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-05-29x86_64: hotfix for crash during in-memory coercion of large typeJacob Young
Unblocks #15768 Closes #15904
2023-05-29Sema: return comptime_int if all args to @min/@max are comptime_intmlugg
Resolves: #15776
2023-05-20spirv: more passing testsRobin Voetter
2023-05-18x86_64: fix float min/max behaviorJacob Young
2023-05-16Merge pull request #15713 from alichraghi/ali-spirvAndrew Kelley
spirv: get more behavior tests passing
2023-05-15x86_64: implement integer vector movementJacob Young
2023-05-15spirv: lower float_to_int and int_to_floatAli Chraghi
2023-05-11setup spirv backend in behavior testsAli Chraghi
2023-05-10llvm: fix `@max`/`@min` of unsupported float typesJacob Young
Closes #15611
2023-05-03x86_64: fix feature confusionJacob Young
2023-05-02Implement multi-argument @min/@max and notice boundsmlugg
Resolves: #14039
2023-05-01behavior: update affected tests for the x86_64 backendJacob Young
2023-03-21x86_64: implement basic float opsJacob Young
2023-03-05CBE: implement vector operationsJacob Young
Also, bigint add and sub which is all I was actually trying to do.
2022-12-10stage2: sparc64: Skip unimplemented testsKoakuma
2022-12-07Sema: resolve lazy values in analyzeMinMaxVeikka Tuominen
Closes #13797
2022-10-25cbe: fix infinite recursion on recursive typesJacob Young
2022-10-18all: rename `@maximum` to `@max` and `@minimum` to `@min`Ali Chraghi
2022-04-02wasm: Enable passing behavior testsLuuk de Gram
This shuffles some tests do ensure the new instructions are tested for the wasm backend, by moving vectors into their own tests as well as move the f16 test cases as those require special operating also.
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.
2021-10-14stage2: implement `@minimum` and `@maximum`, including vectorsAndrew Kelley
* std.os: take advantage of `@minimum`. It's probably time to deprecate `std.min` and `std.max`. * New AIR instructions: min and max * Introduce SIMD vector support to stage2 * Add `@Type` support for vectors * Sema: add `checkSimdBinOp` which can be re-used for other arithmatic operators that want to support vectors. * Implement coercion from vectors to arrays. - In backends this is handled with bitcast for vector to array, however maybe we want to reduce the amount of branching by introducing an explicit AIR instruction for it in the future. * LLVM backend: implement lowering vector types * Sema: Implement `slice.ptr` at comptime * Value: improve `numberMin` and `numberMax` to support floats in addition to integers, and make them behave properly in the presence of NaN.
2021-07-26minimum/maximum builtinsRobin Voetter