lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaulo Andrade <pcpa@gnu.org>2018年04月20日 15:01:44 -0300
committerPaulo Andrade <pcpa@gnu.org>2018年04月20日 15:01:44 -0300
commitd2ff737812184d8f184e6c8964f7e002a31b50ed (patch)
treef310c14e135ec98b6eeaff128a368c0685d6a519
parent2cea99361bfb2281eb4304b1a8b47b54c70bbbbc (diff)
downloadlightning-d2ff737812184d8f184e6c8964f7e002a31b50ed.tar.gz
HPPA: Correct wrong regarg_p check
If argument registers are in incremental order in the global _rvs vector, the check if a register argument is reversed. Adapted from a regression found in sparc 64.
Diffstat
-rw-r--r--lib/jit_hppa.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jit_hppa.c b/lib/jit_hppa.c
index bb71827..558524b 100644
--- a/lib/jit_hppa.c
+++ b/lib/jit_hppa.c
@@ -743,7 +743,7 @@ _jit_regarg_p(jit_state_t *_jit, jit_node_t *node, jit_int32_t regno)
spec = jit_class(_rvs[regno].spec);
if (spec & jit_class_arg) {
if (spec & jit_class_gpr) {
- regno = _R26 - regno;
+ regno -= _R23;
if (regno >= 0 && regno < node->v.w)
return (1);
}
generated by cgit v1.2.3 (git 2.25.1) at 2025年10月07日 15:37:06 +0000

AltStyle によって変換されたページ (->オリジナル) /