aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/truncate.zig
AgeCommit message (Collapse)Author
2025-07-22aarch64: add new from scratch self-hosted backendJacob Young
2025-06-16rename spirv backend nameAli Cheraghi
`stage2_spirv64` -> `stage2_spirv`
2025-02-24test: skip failing tests with spirv-vulkanAli Cheraghi
2024-05-11riscv: add stage2_riscv to test matrix and bypass failing testsDavid Rubin
2024-02-04spirv: vectorize int_cast, truncRobin Voetter
2024-01-15test/behavior: replace all 'comptime expect' with 'comptime assert'dweiller
2023-11-19test: update behavior to silence 'var is never mutated' errorsmlugg
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-18x86_64: implement integer vector `@truncate`Jacob Young
2023-05-11setup spirv backend in behavior testsAli Chraghi
2023-03-05CBE: implement vector truncateJacob Young
2022-12-10stage2: sparc64: Skip unimplemented testsKoakuma
2022-12-06remove references to stage1 in behavior testsAndrew Kelley
Good riddance.
2022-10-05fix(text): hyphenate "comptime" adjectivesr00ster91
2022-04-19stage2 AArch64: Add ldrsb, ldrsh instructionsjoachimschmidt557
2022-03-15Sema: implement `@truncate` for SIMD vectorsAndrew Kelley
2022-03-05stage2 AArch64: add more slice supportjoachimschmidt557
* airSlice * airArrayToSlice * and initial support for airSlicePtr and co
2022-02-26stage2 ARM: generate correct variants of ldr instructionjoachimschmidt557
When loading an i16 for example, generate ldrsh instead of ldrh
2022-02-26stage2 ARM: implement truncate to ints with bits <= 32joachimschmidt557
2022-02-14stage2 AArch64: Enable behavior testingjoachimschmidt557
2022-02-12organize behavior testsAndrew Kelley
moving towards disabling failing tests on an individual basis
2022-01-26stage2: add zero- and sign-extend moves to x86_64Jakub Konka
* remove `LoweringError` error set from `Emit.zig` - it actually was less than helpful; it's better to either not throw an error since there can be instructions with mismatching operand sizes such as `movsx` or assert on a by instruction-basis. Currently, let's just pass through and see how we fare. * when moving integers into registers, check for signedness and move with zero- or sign-extension if source operand is smaller than 8 bytes. The destination operand is always assumed to be full-width, i.e., 8 bytes. * clean up `airTrunc` a little to match the rest of CodeGen inst implementations.
2021-07-06Fix unexpected truncation behavior with comptime_int larger than u64 range ↵leesongun
(#9303) Closes #9299
2021-06-08stage1: make `@truncate` to an integer type of different sign an error at ↵Matthew Borkowski
comptime too
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.