stage2 AArch64: unify callee-preserved regs on all targets

also enables many passing behavior tests
This commit is contained in:
joachimschmidt557
2022-12-27 21:17:52 +08:00
parent 1b86a628ac
commit d6e6162081
25 changed files with 10 additions and 100 deletions

View File

@@ -16,7 +16,6 @@ test "init static array to undefined" {
// This test causes `initStaticArray()` to be codegen'd, and the
// C backend does not yet support returning arrays, so it fails
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
try expect(static_array[0] == 1);
@@ -79,7 +78,6 @@ test "assign undefined to struct with method" {
}
test "type name of undefined" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
const x = undefined;