aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/math.zig
diff options
context:
space:
mode:
authorjoachimschmidt557 <joachim.schmidt557@outlook.com>2022-04-18 13:50:54 +0200
committerjoachimschmidt557 <joachim.schmidt557@outlook.com>2022-04-19 22:40:51 +0200
commitfa85a739d9a85084fbb6d934c2c8803042fa7d48 (patch)
tree7db631a9fb4d353eae4f6394629611f33c8573de /test/behavior/math.zig
parentcbb13c023eb24d08b7f46119fad5e2aa1c7a63bb (diff)
downloadzig-fa85a739d9a85084fbb6d934c2c8803042fa7d48.tar.gz
zig-fa85a739d9a85084fbb6d934c2c8803042fa7d48.zip
stage2 AArch64: fix shl, shr, shl_exact, shr_exact
Introduces the necessary truncation after shift
Diffstat (limited to 'test/behavior/math.zig')
-rw-r--r--test/behavior/math.zig6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/behavior/math.zig b/test/behavior/math.zig
index ce316aeea2..f5494adfeb 100644
--- a/test/behavior/math.zig
+++ b/test/behavior/math.zig
@@ -363,7 +363,6 @@ fn comptimeAdd(comptime a: comptime_int, comptime b: comptime_int) comptime_int
test "binary not" {
if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
try expect(comptime x: {
break :x ~@as(u16, 0b1010101010101010) == 0b0101010101010101;
@@ -851,8 +850,6 @@ test "quad hex float literal parsing accurate" {
}
test "truncating shift left" {
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
-
try testShlTrunc(maxInt(u16));
comptime try testShlTrunc(maxInt(u16));
}
@@ -863,7 +860,6 @@ fn testShlTrunc(x: u16) !void {
test "exact shift left" {
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
try testShlExact(0b00110101);
comptime try testShlExact(0b00110101);
@@ -875,7 +871,6 @@ fn testShlExact(x: u8) !void {
test "exact shift right" {
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
try testShrExact(0b10110100);
comptime try testShrExact(0b10110100);
@@ -887,7 +882,6 @@ fn testShrExact(x: u8) !void {
test "shift left/right on u0 operand" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
const S = struct {
fn doTheTest() !void {