authorgravatar for david@vortan.devDavid Rubin <david@vortan.dev> 2024-05-10 23:19:23-07:00
committergravatar for david@vortan.devDavid Rubin <david@vortan.dev> 2024-05-11 02:17:24-07:00
log75372f12ef1301118eed33e429f7498e76836cb3
tree13dfffe3e40acadf065e1ae936c36865130f75ba
parent1dfdc21c31a027a34213a2e1f27433d4e609d634

riscv: update behaviour tests again


8 files changed, 2 insertions(+), 20 deletions(-)

test/behavior/bitcast.zig-2
...@@ -541,7 +541,6 @@ test "@bitCast of packed struct containing pointer" {...@@ -541,7 +541,6 @@ test "@bitCast of packed struct containing pointer" {
541 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO541 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
542 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO542 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
543 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // TODO543 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // TODO
544 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
545544
546 const S = struct {545 const S = struct {
547 const A = packed struct {546 const A = packed struct {
...@@ -571,7 +570,6 @@ test "@bitCast of extern struct containing pointer" {...@@ -571,7 +570,6 @@ test "@bitCast of extern struct containing pointer" {
571 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO570 if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO
572 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO571 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest; // TODO
573 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // TODO572 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; // TODO
574 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
575573
576 const S = struct {574 const S = struct {
577 const A = extern struct {575 const A = extern struct {
test/behavior/comptime_memory.zig-6
...@@ -32,8 +32,6 @@ test "type pun signed and unsigned as array pointer" {...@@ -32,8 +32,6 @@ test "type pun signed and unsigned as array pointer" {
32}32}
3333
34test "type pun signed and unsigned as offset many pointer" {34test "type pun signed and unsigned as offset many pointer" {
35 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
36
37 comptime {35 comptime {
38 var x: [11]u32 = undefined;36 var x: [11]u32 = undefined;
39 var y: [*]i32 = @ptrCast(&x[10]);37 var y: [*]i32 = @ptrCast(&x[10]);
...@@ -44,8 +42,6 @@ test "type pun signed and unsigned as offset many pointer" {...@@ -44,8 +42,6 @@ test "type pun signed and unsigned as offset many pointer" {
44}42}
4543
46test "type pun signed and unsigned as array pointer with pointer arithemtic" {44test "type pun signed and unsigned as array pointer with pointer arithemtic" {
47 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
48
49 comptime {45 comptime {
50 var x: [11]u32 = undefined;46 var x: [11]u32 = undefined;
51 const y = @as([*]i32, @ptrCast(&x[10])) - 10;47 const y = @as([*]i32, @ptrCast(&x[10])) - 10;
...@@ -293,8 +289,6 @@ test "dance on linker values" {...@@ -293,8 +289,6 @@ test "dance on linker values" {
293}289}
294290
295test "offset array ptr by element size" {291test "offset array ptr by element size" {
296 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
297
298 comptime {292 comptime {
299 const VirtualStruct = struct { x: u32 };293 const VirtualStruct = struct { x: u32 };
300 var arr: [4]VirtualStruct = .{294 var arr: [4]VirtualStruct = .{
test/behavior/error.zig+1
...@@ -1124,6 +1124,7 @@ test "result location initialization of error union with OPV payload" {...@@ -1124,6 +1124,7 @@ test "result location initialization of error union with OPV payload" {
11241124
1125test "return error union with i65" {1125test "return error union with i65" {
1126 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest;1126 if (builtin.zig_backend == .stage2_wasm) return error.SkipZigTest;
1127 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
11271128
1128 try expect(try add(1000, 234) == 1234);1129 try expect(try add(1000, 234) == 1234);
1129}1130}
test/behavior/packed-union.zig-2
...@@ -177,8 +177,6 @@ test "assigning to non-active field at comptime" {...@@ -177,8 +177,6 @@ test "assigning to non-active field at comptime" {
177}177}
178178
179test "comptime packed union of pointers" {179test "comptime packed union of pointers" {
180 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
181
182 const U = packed union {180 const U = packed union {
183 a: *const u32,181 a: *const u32,
184 b: *const [1]u32,182 b: *const [1]u32,
test/behavior/pointers.zig-4
...@@ -640,8 +640,6 @@ test "cast pointers with zero sized elements" {...@@ -640,8 +640,6 @@ test "cast pointers with zero sized elements" {
640}640}
641641
642test "comptime pointer equality through distinct fields with well-defined layout" {642test "comptime pointer equality through distinct fields with well-defined layout" {
643 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
644
645 const A = extern struct {643 const A = extern struct {
646 x: u32,644 x: u32,
647 z: u16,645 z: u16,
...@@ -666,8 +664,6 @@ test "comptime pointer equality through distinct fields with well-defined layout...@@ -666,8 +664,6 @@ test "comptime pointer equality through distinct fields with well-defined layout
666}664}
667665
668test "comptime pointer equality through distinct elements with well-defined layout" {666test "comptime pointer equality through distinct elements with well-defined layout" {
669 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
670
671 const buf: [2]u32 = .{ 123, 456 };667 const buf: [2]u32 = .{ 123, 456 };
672668
673 const ptr: *const [2]u32 = &buf;669 const ptr: *const [2]u32 = &buf;
test/behavior/ptrcast.zig-4
...@@ -298,8 +298,6 @@ test "comptime @ptrCast with packed struct leaves value unmodified" {...@@ -298,8 +298,6 @@ test "comptime @ptrCast with packed struct leaves value unmodified" {
298}298}
299299
300test "@ptrCast restructures comptime-only array" {300test "@ptrCast restructures comptime-only array" {
301 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
302
303 {301 {
304 const a3a2: [3][2]comptime_int = .{302 const a3a2: [3][2]comptime_int = .{
305 .{ 1, 2 },303 .{ 1, 2 },
...@@ -342,8 +340,6 @@ test "@ptrCast restructures comptime-only array" {...@@ -342,8 +340,6 @@ test "@ptrCast restructures comptime-only array" {
342}340}
343341
344test "@ptrCast restructures sliced comptime-only array" {342test "@ptrCast restructures sliced comptime-only array" {
345 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
346
347 const a3a2: [4][2]comptime_int = .{343 const a3a2: [4][2]comptime_int = .{
348 .{ 1, 2 },344 .{ 1, 2 },
349 .{ 3, 4 },345 .{ 3, 4 },
test/behavior/type.zig-2
...@@ -763,8 +763,6 @@ test "matching captures causes opaque equivalence" {...@@ -763,8 +763,6 @@ test "matching captures causes opaque equivalence" {
763}763}
764764
765test "reify enum where fields refers to part of array" {765test "reify enum where fields refers to part of array" {
766 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
767
768 const fields: [3]std.builtin.Type.EnumField = .{766 const fields: [3]std.builtin.Type.EnumField = .{
769 .{ .name = "foo", .value = 0 },767 .{ .name = "foo", .value = 0 },
770 .{ .name = "bar", .value = 1 },768 .{ .name = "bar", .value = 1 },
test/behavior/union.zig+1
...@@ -2373,6 +2373,7 @@ test "signed enum tag with negative value" {...@@ -2373,6 +2373,7 @@ test "signed enum tag with negative value" {
2373 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO2373 if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
2374 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO2374 if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
2375 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;2375 if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
2376 if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest;
23762377
2377 const Enum = enum(i8) {2378 const Enum = enum(i8) {
2378 a = -1,2379 a = -1,