aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/vector.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2024-06-03 00:44:08 +0200
committerRobin Voetter <robin@voetter.nl>2024-06-10 20:32:49 +0200
commita3b1ba82f57d5d8981a471850cbbb0db29c3a479 (patch)
tree848b20d5c8929a1198f331725865f1a08c07288d /test/behavior/vector.zig
parent4e7159ae1d08ce74548e0adc3b3936aacc23a06e (diff)
downloadzig-a3b1ba82f57d5d8981a471850cbbb0db29c3a479.tar.gz
zig-a3b1ba82f57d5d8981a471850cbbb0db29c3a479.zip
spirv: new vectorization helper
The old vectorization helper (WipElementWise) was clunky and a bit annoying to use, and it wasn't really flexible enough. This introduces a new vectorization helper, which uses Temporary and Operation types to deduce a Vectorization to perform the operation in a reasonably efficient manner. It removes the outer loop required by WipElementWise so that implementations of AIR instructions are cleaner. This helps with sanity when we start to introduce support for composite integers. airShift, convertToDirect, convertToIndirect, and normalize are initially implemented using this new method.
Diffstat (limited to 'test/behavior/vector.zig')
-rw-r--r--test/behavior/vector.zig1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/behavior/vector.zig b/test/behavior/vector.zig
index 8987e0c091..2e860e1001 100644
--- a/test/behavior/vector.zig
+++ b/test/behavior/vector.zig
@@ -548,7 +548,6 @@ test "vector division operators" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_llvm and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
const S = struct {