From 81ca3a1d594cb25dcd7dbedf175dd9931cad0d0f Mon Sep 17 00:00:00 2001 From: David Rubin Date: Mon, 15 Jul 2024 03:37:06 -0700 Subject: riscv: fix logic bug in `ptr_elem_ptr` I was doing duplicate work with `elemOffset` multiplying by the abi size and then the `ptr_add` `genBinOp` also multiplying. This led to having writes happening in the wrong place. --- test/behavior/basic.zig | 1 - 1 file changed, 1 deletion(-) (limited to 'test/behavior/basic.zig') diff --git a/test/behavior/basic.zig b/test/behavior/basic.zig index 494240c63a..bd942bab49 100644 --- a/test/behavior/basic.zig +++ b/test/behavior/basic.zig @@ -620,7 +620,6 @@ var global_ptr = &gdt[0]; test "global constant is loaded with a runtime-known index" { if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO - if (builtin.zig_backend == .stage2_riscv64) return error.SkipZigTest; const S = struct { fn doTheTest() !void { -- cgit v1.2.3