mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 14:24:43 +00:00
x86_64: rewrite inst tracking
This commit is contained in:
parent
6f09a7041e
commit
488d804a1c
3 changed files with 495 additions and 667 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -95,6 +95,10 @@ pub fn RegisterManager(
|
|||
return indexOfReg(tracked_registers, reg);
|
||||
}
|
||||
|
||||
pub fn regAtTrackedIndex(index: RegisterBitSet.ShiftInt) Register {
|
||||
return tracked_registers[index];
|
||||
}
|
||||
|
||||
/// Returns true when this register is not tracked
|
||||
pub fn isRegFree(self: Self, reg: Register) bool {
|
||||
const index = indexOfRegIntoTracked(reg) orelse return true;
|
||||
|
|
|
|||
|
|
@ -274,7 +274,6 @@ test "two counters" {
|
|||
test "1-based counter and ptr to array" {
|
||||
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
|
||||
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
|
||||
if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest;
|
||||
|
||||
var ok: usize = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue