aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/math.zig
diff options
context:
space:
mode:
authorDavid Rubin <daviru007@icloud.com>2024-07-24 21:57:16 -0700
committerDavid Rubin <daviru007@icloud.com>2024-07-26 04:19:17 -0700
commitb533e848a288bcf91da2720dc2646b88225642e9 (patch)
tree2e438bb77c116d28bdf3312214c4dd5ba408b226 /test/behavior/math.zig
parentc00a5ff792e78564673d0dc76b901c98b938bb9b (diff)
downloadzig-b533e848a288bcf91da2720dc2646b88225642e9.tar.gz
zig-b533e848a288bcf91da2720dc2646b88225642e9.zip
riscv: enable passing tests
Diffstat (limited to 'test/behavior/math.zig')
-rw-r--r--test/behavior/math.zig11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/behavior/math.zig b/test/behavior/math.zig
index 17ca44c6f1..9d911c556b 100644
--- a/test/behavior/math.zig
+++ b/test/behavior/math.zig
@@ -662,8 +662,6 @@ fn rem(comptime T: type, a: T, b: T) T {
}
test "unsigned wrapping" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
try testUnsignedWrappingEval(maxInt(u32));
try comptime testUnsignedWrappingEval(maxInt(u32));
}
@@ -675,8 +673,6 @@ fn testUnsignedWrappingEval(x: u32) !void {
}
test "signed wrapping" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
try testSignedWrappingEval(maxInt(i32));
try comptime testSignedWrappingEval(maxInt(i32));
}
@@ -688,8 +684,6 @@ fn testSignedWrappingEval(x: i32) !void {
}
test "signed negation wrapping" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
try testSignedNegationWrappingEval(minInt(i16));
try comptime testSignedNegationWrappingEval(minInt(i16));
}
@@ -700,8 +694,6 @@ fn testSignedNegationWrappingEval(x: i16) !void {
}
test "unsigned negation wrapping" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
try testUnsignedNegationWrappingEval(1);
try comptime testUnsignedNegationWrappingEval(1);
}
@@ -900,7 +892,6 @@ test "@addWithOverflow > 64 bits" {
test "small int addition" {
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;
var x: u2 = 0;
try expect(x == 0);
@@ -1330,8 +1321,6 @@ test "quad hex float literal parsing accurate" {
}
test "truncating shift left" {
- if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
-
try testShlTrunc(maxInt(u16));
try comptime testShlTrunc(maxInt(u16));
}