git: libnvmm(3): Fix sign-extension on immediates
Aaron LI
aly at crater.dragonflybsd.org
Sun Aug 16 22:26:13 PDT 2026
commit b604ef80bcca821d8aede0b5d8445bcbb10b5e15
Author: Aaron LI <aly at aaronly.me>
Date: Mon Aug 17 12:47:05 2026 +0800
libnvmm(3): Fix sign-extension on immediates
It's the immediate size that should be used for sign-extension, not the
operand size. Fix this, and add a unit-test for it.
Credit: Maxime Villard (m00nbsd)
Summary of changes:
lib/libnvmm/libnvmm_x86.c | 9 ++-------
test/testcases/libnvmm/h_mem_assist.c | 2 ++
test/testcases/libnvmm/h_mem_assist_asm.S | 21 +++++++++++++++++++++
3 files changed, 25 insertions(+), 7 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b604ef80bcca821d8aede0b5d8445bcbb10b5e15
--
DragonFly BSD source repository
More information about the Commits
mailing list