| author | |
| committer | |
| log | d819663543bd2f19bcabb86978adf06931a2dd8b |
| tree | 7bd7c1c1db35ee3e2890a2739cf2eaa16d1dace7 |
| parent | ba55e32ef2d8ed5875bff8524fbbb05c6d8afd40 |
3 files changed, 9 insertions(+), 2 deletions(-)
lib/std/special/compiler_rt.zig+3-1| ... | ... | @@ -26,7 +26,9 @@ comptime { |
| 26 | 26 | if (builtin.zig_backend == .stage1) { |
| 27 | 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 | } | |
| 30 | 32 | |
| 31 | 33 | const __extenddftf2 = @import("compiler_rt/extendXfYf2.zig").__extenddftf2; |
| 32 | 34 | @export(__extenddftf2, .{ .name = "__extenddftf2", .linkage = linkage }); |
test/behavior/cast_llvm.zig+3-1| ... | ... | @@ -1,8 +1,9 @@ |
| 1 | const builtin = @import("builtin"); | |
| 1 | 2 | const std = @import("std"); |
| 2 | 3 | const expect = std.testing.expect; |
| 3 | 4 | const mem = std.mem; |
| 4 | 5 | const maxInt = std.math.maxInt; |
| 5 | const native_endian = @import("builtin").target.cpu.arch.endian(); | |
| 6 | const native_endian = builtin.target.cpu.arch.endian(); | |
| 6 | 7 | |
| 7 | 8 | test "pointer reinterpret const float to int" { |
| 8 | 9 | // The hex representation is 0x3fe3333333333303. |
| ... | ... | @@ -46,6 +47,7 @@ fn incrementVoidPtrArray(array: ?*anyopaque, len: usize) void { |
| 46 | 47 | } |
| 47 | 48 | |
| 48 | 49 | test "compile time int to ptr of function" { |
| 50 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) return error.SkipZigTest; // TODO | |
| 49 | 51 | try foobar(FUNCTION_CONSTANT); |
| 50 | 52 | } |
| 51 | 53 |
test/behavior/inttoptr.zig+3| ... | ... | @@ -1,4 +1,7 @@ |
| 1 | const builtin = @import("builtin"); | |
| 2 | ||
| 1 | 3 | test "casting random address to function pointer" { |
| 4 | if (builtin.zig_backend == .stage2_llvm and builtin.cpu.arch == .aarch64) return error.SkipZigTest; // TODO | |
| 2 | 5 | randomAddressToFunction(); |
| 3 | 6 | comptime randomAddressToFunction(); |
| 4 | 7 | } |