Skip to content

x86_64: fix broken unit test for register IDs #24032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/arch/x86_64/bits.zig
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ test "Register id - different classes" {
try expect(Register.xmm0.id() != Register.mm0.id());
try expect(Register.mm0.id() != Register.st0.id());

try expect(Register.es.id() == 0b110000);
try expect(Register.es.id() == 0b1000000);
}

test "Register enc - different classes" {
Expand Down
1 change: 1 addition & 0 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const dev = @import("dev.zig");

test {
_ = Package;
_ = @import("arch/x86_64/Mir.zig");
}

const thread_stack_size = 50 << 20;
Expand Down
Loading