plan9fox/sys
cinap_lenrek 15c3f45e5f 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.
2019-04-17 23:38:00 +02:00
..
doc
games/lib fortunes: Open source may not be safe if it has no super excellent moderator. 2019-03-17 23:13:27 -04:00
include dtracy: avoid dmachlock() race 2019-03-30 09:17:46 +01:00
lib rootstub: create arm64 directories 2019-04-08 13:07:18 +02:00
man ip(3): document TCP ctl close command 2019-04-14 04:50:55 +00:00
src 7c: fix long to vlong/pointer conversion, avoid negative immediate offsets 2019-04-17 23:38:00 +02:00