Skip to content

Commit

Permalink
riscv: disable failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexicon226 committed Jul 5, 2024
1 parent 1c06f25 commit d2a65f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions test/behavior/byteswap.zig
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ test "@byteSwap vectors u8" {
if (builtin.zig_backend == .stage2_aarch64) 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;

try comptime vector8();
try vector8();
Expand Down
1 change: 1 addition & 0 deletions test/behavior/cast.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1985,6 +1985,7 @@ test "peer type resolution: vector and array and tuple" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;

var vec: @Vector(2, i8) = .{ 10, 20 };
var arr: [2]i8 = .{ 30, 40 };
Expand Down
1 change: 1 addition & 0 deletions test/behavior/globals.zig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ test "store to global vector" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;

try expect(vpos[1] == 0.0);
vpos = @Vector(2, f32){ 0.0, 1.0 };
Expand Down
8 changes: 4 additions & 4 deletions test/behavior/vector.zig
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ test "vector float operators" {
if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_c and comptime builtin.cpu.arch.isArmOrThumb()) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO

const S = struct {
fn doTheTest(T: type) !void {
Expand All @@ -125,8 +126,6 @@ test "vector float operators" {
try S.doTheTest(f16);
try comptime S.doTheTest(f16);

if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO

try S.doTheTest(f80);
try comptime S.doTheTest(f80);

Expand Down Expand Up @@ -445,7 +444,6 @@ test "load vector elements via runtime index" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
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;

const S = struct {
fn doTheTest() !void {
Expand Down Expand Up @@ -1240,6 +1238,7 @@ test "loading the second vector from a slice of vectors" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
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;

@setRuntimeSafety(false);
var small_bases = [2]@Vector(2, u8){
Expand Down Expand Up @@ -1326,6 +1325,7 @@ test "zero multiplicand" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
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;

const zeros = @Vector(2, u32){ 0.0, 0.0 };
var ones = @Vector(2, u32){ 1.0, 1.0 };
Expand Down Expand Up @@ -1486,6 +1486,7 @@ test "store vector with memset" {
test "addition of vectors represented as strings" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;

const V = @Vector(3, u8);
const foo: V = "foo".*;
Expand Down Expand Up @@ -1616,7 +1617,6 @@ test "@reduce on bool vector" {
test "bitcast vector to array of smaller vectors" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;

const u8x32 = @Vector(32, u8);
const u8x64 = @Vector(64, u8);
Expand Down

0 comments on commit d2a65f9

Please sign in to comment.