summaryrefslogtreecommitdiff
path: root/spec/ruby/core/math
diff options
context:
space:
mode:
authorjeremyd2019 <github@jdrake.com>2024-11-29 16:29:57 -0800
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2024-11-30 14:22:55 +0900
commit4745338a3f336d7bedb02895534721661551ebb9 (patch)
tree965e38b1d13629cb8175f4504939863a57f69685 /spec/ruby/core/math
parent8149f4d6abd4df27d07c047b133451a1364f8d9a (diff)
[win32] fix arm64 instruction decoding
Two minor fixes to arm64 instruction decoding when looking for __pioinfo: 1. add_mask was shifted by one bit, it was intended to be 0x7f800000. However, since the mask was already excluding matching the 'sh' bit, and since the purpose of the add following the adrp is to add in the lower 12 bits, I opted to set the mask to 0x7fc00000 and simply remove the handling for the 12 bit shift option which is now required to be disabled in order to match. 2. adrp's immediate was supposed to be sign extended. So far, I have not seen cases where the global variable ends up before the code in memory, but it's a possibility, so handle the sign extension.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12222
Diffstat (limited to 'spec/ruby/core/math')
0 files changed, 0 insertions, 0 deletions