Skip to content

Commit c3bc335

Browse files
committed
remove behavior test that depended on std.zig.c_translation
behavior tests may not depend on this namespace.
1 parent 22d63db commit c3bc335

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

test/behavior/vector.zig

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -918,28 +918,6 @@ test "vector @reduce comptime" {
918918
try expect(is_all_true == false);
919919
}
920920

921-
test "mask parameter of @shuffle is comptime scope" {
922-
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
923-
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
924-
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
925-
if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
926-
927-
const __v4hi = @Vector(4, i16);
928-
var v4_a = __v4hi{ 1, 2, 3, 4 };
929-
var v4_b = __v4hi{ 5, 6, 7, 8 };
930-
_ = .{ &v4_a, &v4_b };
931-
const shuffled: __v4hi = @shuffle(i16, v4_a, v4_b, @Vector(4, i32){
932-
std.zig.c_translation.shuffleVectorIndex(0, @typeInfo(@TypeOf(v4_a)).vector.len),
933-
std.zig.c_translation.shuffleVectorIndex(2, @typeInfo(@TypeOf(v4_a)).vector.len),
934-
std.zig.c_translation.shuffleVectorIndex(4, @typeInfo(@TypeOf(v4_a)).vector.len),
935-
std.zig.c_translation.shuffleVectorIndex(6, @typeInfo(@TypeOf(v4_a)).vector.len),
936-
});
937-
try expect(shuffled[0] == 1);
938-
try expect(shuffled[1] == 3);
939-
try expect(shuffled[2] == 5);
940-
try expect(shuffled[3] == 7);
941-
}
942-
943921
test "saturating add" {
944922
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
945923
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO

0 commit comments

Comments
 (0)