stage2 aarch64: assert register is 64bits in PCrel

Thanks @joachimschmidt557 for pointing out this fix!
This commit is contained in:
Jakub Konka
2020-11-18 10:12:39 +01:00
parent 5ff8dd179e
commit 39336fd2e9

View File

@@ -417,6 +417,7 @@ pub const Instruction = union(enum) {
}
fn pcRelativeAddress(rd: Register, imm21: i21, op: u1) Instruction {
assert(rd.size() == 64);
const imm21_u = @bitCast(u21, imm21);
return Instruction{
.PCRelativeAddress = .{