summaryrefslogtreecommitdiff
path: root/spec/mspec
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2022-08-26 19:21:45 -0400
committerTakashi Kokubun <takashikkbn@gmail.com>2022-08-29 09:09:41 -0700
commitd694f320e40e77ab432f4d21575251ac0ab4ab76 (patch)
treea7cae862ea2bd33a3bc71e77d4b966772b71af5b /spec/mspec
parent46007b88af82d6ff22fc01edb7c74922dfa5c68a (diff)
Fixed width immediates (https://github.com/Shopify/ruby/pull/437)
There are a lot of times when encoding AArch64 instructions that we need to represent an integer value with a custom fixed width. For example, the offset for a B instruction is 26 bits, so we store an i32 on the instruction struct and then mask it when we encode. We've been doing this masking everywhere, which has worked, but it's getting a bit copy-pasty all over the place. This commit centralizes that logic to make sure we stay consistent.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6289
Diffstat (limited to 'spec/mspec')
0 files changed, 0 insertions, 0 deletions