authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-01-21 14:42:58-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-01-21 14:42:58-07:00
logd819663543bd2f19bcabb86978adf06931a2dd8b
tree7bd7c1c1db35ee3e2890a2739cf2eaa16d1dace7
parentba55e32ef2d8ed5875bff8524fbbb05c6d8afd40

disable some broken stuff for stage2 llvm backend on aarch64


3 files changed, 9 insertions(+), 2 deletions(-)

lib/std/special/compiler_rt.zig+3-1
...@@ -26,7 +26,9 @@ comptime {...@@ -26,7 +26,9 @@ comptime {
26 if (builtin.zig_backend == .stage1) {26 if (builtin.zig_backend == .stage1) {
27 _ = @import("compiler_rt/atomics.zig");27 _ = @import("compiler_rt/atomics.zig");
28 }28 }
29 _ = @import("compiler_rt/clear_cache.zig").clear_cache;29 if (builtin.zig_backend != .stage2_llvm) { // TODO
30 _ = @import("compiler_rt/clear_cache.zig").clear_cache;
31 }
3032
31 const __extenddftf2 = @import("compiler_rt/extendXfYf2.zig").__extenddftf2;33 const __extenddftf2 = @import("compiler_rt/extendXfYf2.zig").__extenddftf2;
32 @export(__extenddftf2, .{ .name = "__extenddftf2", .linkage = linkage });34 @export(__extenddftf2, .{ .name = "__extenddftf2", .linkage = linkage });
test/behavior/cast_llvm.zig+3-1
...@@ -1,8 +1,9 @@...@@ -1,8 +1,9 @@
1const builtin = @import("builtin");
1const std = @import("std");2const std = @import("std");
2const expect = std.testing.expect;3const expect = std.testing.expect;
3const mem = std.mem;4const mem = std.mem;
4const maxInt = std.math.maxInt;5const maxInt = std.math.maxInt;
5const native_endian = @import("builtin").target.cpu.arch.endian();6const native_endian = builtin.target.cpu.arch.endian();
67
7test "pointer reinterpret const float to int" {8test "pointer reinterpret const float to int" {
8 // The hex representation is 0x3fe3333333333303.9 // The hex representation is 0x3fe3333333333303.
...@@ -46,6 +47,7 @@ fn incrementVoidPtrArray(array: ?*anyopaque, len: usize) void {...@@ -46,6 +47,7 @@ fn incrementVoidPtrArray(array: ?*anyopaque, len: usize) void {
46}47}
4748
48test "compile time int to ptr of function" {49test "compile time int to ptr of function" {
50 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) return error.SkipZigTest; // TODO
49 try foobar(FUNCTION_CONSTANT);51 try foobar(FUNCTION_CONSTANT);
50}52}
5153
test/behavior/inttoptr.zig+3
...@@ -1,4 +1,7 @@...@@ -1,4 +1,7 @@
1const builtin = @import("builtin");
2
1test "casting random address to function pointer" {3test "casting random address to function pointer" {
4 if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) return error.SkipZigTest; // TODO
2 randomAddressToFunction();5 randomAddressToFunction();
3 comptime randomAddressToFunction();6 comptime randomAddressToFunction();
4}7}