Legalize: implement scalarization of overflow intrinsics

This commit is contained in:
Jacob Young
2025-05-31 23:14:48 -04:00
committed by mlugg
parent ec579aa0f3
commit 9edfccb9a7
19 changed files with 350 additions and 98 deletions

View File

@@ -204,7 +204,6 @@ test "@min/@max notices vector bounds" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_x86_64 and builtin.target.ofmt != .elf and builtin.target.ofmt != .macho) return error.SkipZigTest;
var x: @Vector(2, u16) = .{ 140, 40 };
const y: @Vector(2, u64) = .{ 5, 100 };