authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-02-07 17:21:28+01:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-02-07 17:21:28+01:00
loge3447e67fe41bfb56ab24fb2758966d34ed5cd89
tree1f4899499854fc158444e92bf31f73c91e90ac5c
parent8d6536b50cfd43c07c6f0264171db6ecf8e80be5

riscv64: Enable some more tests

Closes #3338

4 files changed, 3 insertions(+), 25 deletions(-)

test/stage1/behavior/atomics.zig+3-1
......@@ -146,7 +146,9 @@ fn testAtomicStore() void {
146146}
147147
148148test "atomicrmw with floats" {
149 if (builtin.arch == .aarch64 or builtin.arch == .arm)
149 if (builtin.arch == .aarch64 or
150 builtin.arch == .arm or
151 builtin.arch == .riscv64)
150152 return;
151153 testAtomicRmwFloat();
152154}
test/stage1/behavior/cast.zig-4
......@@ -261,10 +261,6 @@ fn testPeerErrorAndArray2(x: u8) anyerror![]const u8 {
261261}
262262
263263test "@floatToInt" {
264 if (@import("builtin").arch == .riscv64) {
265 // TODO: https://github.com/ziglang/zig/issues/3338
266 return error.SkipZigTest;
267 }
268264 testFloatToInts();
269265 comptime testFloatToInts();
270266}
test/stage1/behavior/math.zig-12
......@@ -7,10 +7,6 @@ const minInt = std.math.minInt;
77const mem = std.mem;
88
99test "division" {
10 if (@import("builtin").arch == .riscv64) {
11 // TODO: https://github.com/ziglang/zig/issues/3338
12 return error.SkipZigTest;
13 }
1410 testDivision();
1511 comptime testDivision();
1612}
......@@ -578,10 +574,6 @@ fn remdiv(comptime T: type) void {
578574}
579575
580576test "@sqrt" {
581 if (@import("builtin").arch == .riscv64) {
582 // TODO: https://github.com/ziglang/zig/issues/3338
583 return error.SkipZigTest;
584 }
585577 testSqrt(f64, 12.0);
586578 comptime testSqrt(f64, 12.0);
587579 testSqrt(f32, 13.0);
......@@ -627,10 +619,6 @@ test "vector integer addition" {
627619}
628620
629621test "NaN comparison" {
630 if (@import("builtin").arch == .riscv64) {
631 // TODO: https://github.com/ziglang/zig/issues/3338
632 return error.SkipZigTest;
633 }
634622 if (std.Target.current.isWindows()) {
635623 // TODO https://github.com/ziglang/zig/issues/508
636624 return error.SkipZigTest;
test/stage1/behavior/widening.zig-8
......@@ -19,10 +19,6 @@ test "implicit unsigned integer to signed integer" {
1919}
2020
2121test "float widening" {
22 if (@import("builtin").arch == .riscv64) {
23 // TODO:
24 return error.SkipZigTest;
25 }
2622 var a: f16 = 12.34;
2723 var b: f32 = a;
2824 var c: f64 = b;
......@@ -35,10 +31,6 @@ test "float widening" {
3531test "float widening f16 to f128" {
3632 // TODO https://github.com/ziglang/zig/issues/3282
3733 if (@import("builtin").arch == .aarch64) return error.SkipZigTest;
38 if (@import("builtin").arch == .riscv64) {
39 // TODO: https://github.com/ziglang/zig/issues/3338
40 return error.SkipZigTest;
41 }
4234
4335 var x: f16 = 12.34;
4436 var y: f128 = x;