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 {...@@ -146,7 +146,9 @@ fn testAtomicStore() void {
146}146}
147147
148test "atomicrmw with floats" {148test "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)
150 return;152 return;
151 testAtomicRmwFloat();153 testAtomicRmwFloat();
152}154}
test/stage1/behavior/cast.zig-4
...@@ -261,10 +261,6 @@ fn testPeerErrorAndArray2(x: u8) anyerror![]const u8 {...@@ -261,10 +261,6 @@ fn testPeerErrorAndArray2(x: u8) anyerror![]const u8 {
261}261}
262262
263test "@floatToInt" {263test "@floatToInt" {
264 if (@import("builtin").arch == .riscv64) {
265 // TODO: https://github.com/ziglang/zig/issues/3338
266 return error.SkipZigTest;
267 }
268 testFloatToInts();264 testFloatToInts();
269 comptime testFloatToInts();265 comptime testFloatToInts();
270}266}
test/stage1/behavior/math.zig-12
...@@ -7,10 +7,6 @@ const minInt = std.math.minInt;...@@ -7,10 +7,6 @@ const minInt = std.math.minInt;
7const mem = std.mem;7const mem = std.mem;
88
9test "division" {9test "division" {
10 if (@import("builtin").arch == .riscv64) {
11 // TODO: https://github.com/ziglang/zig/issues/3338
12 return error.SkipZigTest;
13 }
14 testDivision();10 testDivision();
15 comptime testDivision();11 comptime testDivision();
16}12}
...@@ -578,10 +574,6 @@ fn remdiv(comptime T: type) void {...@@ -578,10 +574,6 @@ fn remdiv(comptime T: type) void {
578}574}
579575
580test "@sqrt" {576test "@sqrt" {
581 if (@import("builtin").arch == .riscv64) {
582 // TODO: https://github.com/ziglang/zig/issues/3338
583 return error.SkipZigTest;
584 }
585 testSqrt(f64, 12.0);577 testSqrt(f64, 12.0);
586 comptime testSqrt(f64, 12.0);578 comptime testSqrt(f64, 12.0);
587 testSqrt(f32, 13.0);579 testSqrt(f32, 13.0);
...@@ -627,10 +619,6 @@ test "vector integer addition" {...@@ -627,10 +619,6 @@ test "vector integer addition" {
627}619}
628620
629test "NaN comparison" {621test "NaN comparison" {
630 if (@import("builtin").arch == .riscv64) {
631 // TODO: https://github.com/ziglang/zig/issues/3338
632 return error.SkipZigTest;
633 }
634 if (std.Target.current.isWindows()) {622 if (std.Target.current.isWindows()) {
635 // TODO https://github.com/ziglang/zig/issues/508623 // TODO https://github.com/ziglang/zig/issues/508
636 return error.SkipZigTest;624 return error.SkipZigTest;
test/stage1/behavior/widening.zig-8
...@@ -19,10 +19,6 @@ test "implicit unsigned integer to signed integer" {...@@ -19,10 +19,6 @@ test "implicit unsigned integer to signed integer" {
19}19}
2020
21test "float widening" {21test "float widening" {
22 if (@import("builtin").arch == .riscv64) {
23 // TODO:
24 return error.SkipZigTest;
25 }
26 var a: f16 = 12.34;22 var a: f16 = 12.34;
27 var b: f32 = a;23 var b: f32 = a;
28 var c: f64 = b;24 var c: f64 = b;
...@@ -35,10 +31,6 @@ test "float widening" {...@@ -35,10 +31,6 @@ test "float widening" {
35test "float widening f16 to f128" {31test "float widening f16 to f128" {
36 // TODO https://github.com/ziglang/zig/issues/328232 // TODO https://github.com/ziglang/zig/issues/3282
37 if (@import("builtin").arch == .aarch64) return error.SkipZigTest;33 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
43 var x: f16 = 12.34;35 var x: f16 = 12.34;
44 var y: f128 = x;36 var y: f128 = x;