< prev index next >
src/hotspot/cpu/arm/macroAssembler_arm.cpp
Print this page
rev 54072 : 8213845: ARM32: Interpreter doesn't call result handler after native calls
Summary: Fix mapping of native jboolean result to 0..1 on ARM32
Reviewed-by: aph, phh
Contributed-by: christoph.goettschkes@microdoc.com
*** 1227,1236 ****
--- 1227,1245 ----
b(done);
bind_literal(Lmsg);
bind(done);
}
+ void MacroAssembler::c2bool(Register x) {
+ tst(x, 0xff); // Only look at the lowest byte
+ #ifdef AARCH64
+ cset(x, ne);
+ #else
+ mov(x, 1, ne);
+ #endif
+ }
+
void MacroAssembler::null_check(Register reg, Register tmp, int offset) {
if (needs_explicit_null_check(offset)) {
#ifdef AARCH64
ldr(ZR, Address(reg));
#else
< prev index next >