mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
x86_64: rewrite inst tracking
This commit is contained in:
parent
6f09a7041e
commit
488d804a1c
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…
Reference in New Issue
Block a user