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