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

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
path: root/lib/jit_mips-cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jit_mips-cpu.c')
-rw-r--r--lib/jit_mips-cpu.c 8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/jit_mips-cpu.c b/lib/jit_mips-cpu.c
index 569a009..ce364f2 100644
--- a/lib/jit_mips-cpu.c
+++ b/lib/jit_mips-cpu.c
@@ -2954,8 +2954,12 @@ _extr(jit_state_t *_jit,
# if __BYTE_ORDER == __BIG_ENDIAN
i0 = __WORDSIZE - (i0 + i1);
# endif
- lshi(r0, r1, __WORDSIZE - (i0 + i1));
- rshi(r0, r0, __WORDSIZE - i1);
+ if (__WORDSIZE - (i0 + i1)) {
+ lshi(r0, r1, __WORDSIZE - (i0 + i1));
+ rshi(r0, r0, __WORDSIZE - i1);
+ }
+ else
+ rshi(r0, r1, __WORDSIZE - i1);
}
}
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月13日 02:19:27 +0000

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