Skip to content

Commit da2bed3

Browse files
committed
Fixed incorrect range check (missed sign bit)
1 parent 1a6bcd0 commit da2bed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_arm64.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
#define LDR_STR_PIMM32 (MAX_IMM12*4) // ldr/str insn for 32-bit register: pimm is imm12 * 4
102102
#define LDRB_STRB_PIMM MAX_IMM12 // ldrb/strb insn
103103

104-
#define B_IMM26 (((1<<26)-1)*4)
104+
#define B_IMM26 (1<<27) // signed imm26 * 4
105105

106106
static bool arm64_may_use_b(const void *addr)
107107
{

0 commit comments

Comments
 (0)