summaryrefslogtreecommitdiff
path: root/sys/lib/python/posixpath.py
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-04-17 23:38:00 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2019-04-17 23:38:00 +0200
commit15c3f45e5f7bccd121726de9b3adac001ffac887 (patch)
treea296d9da1ae8c7009939929f053e8a3e099ef830 /sys/lib/python/posixpath.py
parentb44440bd165bdaa8c5764eead3fc54cadab7334f (diff)
7c: fix long to vlong/pointer conversion, avoid negative immediate offsets
we have to explicitely convert to vlong by sign or zero extending as not every operation leaves a proper zero/sign extended result in the register. for example NEGW will zero extend, breaking negative int offsets on pointers. we explicitely insert SXTW or MOVWU instructions which the peephole optimizer takes out again when it is safe todo so. when promoting constant offsets to immediate offsets, make sure the offset will be in range. otherwise the linker will produce not so optimal pointer arithmetic instructions to calculate the offset.
Diffstat (limited to 'sys/lib/python/posixpath.py')
0 files changed, 0 insertions, 0 deletions