mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
fix merge conflicts from previous commit
Any PRs merged after the one that made testing functions return errors needs to get rebased!
This commit is contained in:
parent
b88d381dec
commit
2299e5ff1d
@ -582,7 +582,7 @@ test "x86_64 Encoder helpers" {
|
||||
Register.edi.low_id(),
|
||||
);
|
||||
|
||||
testing.expectEqualSlices(u8, &[_]u8{ 0x0f, 0xaf, 0xc7 }, code.items);
|
||||
try testing.expectEqualSlices(u8, &[_]u8{ 0x0f, 0xaf, 0xc7 }, code.items);
|
||||
}
|
||||
|
||||
// simple mov
|
||||
@ -602,7 +602,7 @@ test "x86_64 Encoder helpers" {
|
||||
Register.eax.low_id(),
|
||||
);
|
||||
|
||||
testing.expectEqualSlices(u8, &[_]u8{ 0x89, 0xf8 }, code.items);
|
||||
try testing.expectEqualSlices(u8, &[_]u8{ 0x89, 0xf8 }, code.items);
|
||||
}
|
||||
|
||||
// signed integer addition of 32-bit sign extended immediate to 64 bit register
|
||||
@ -629,7 +629,7 @@ test "x86_64 Encoder helpers" {
|
||||
);
|
||||
encoder.imm32(2147483647);
|
||||
|
||||
testing.expectEqualSlices(u8, &[_]u8{ 0x48, 0x81, 0xc1, 0xff, 0xff, 0xff, 0x7f }, code.items);
|
||||
try testing.expectEqualSlices(u8, &[_]u8{ 0x48, 0x81, 0xc1, 0xff, 0xff, 0xff, 0x7f }, code.items);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user