ARM64: Fix code generation for S19 offsets.

Contributed by Zhongwei Yao.
This commit is contained in:
Mike Pall
2016-12-08 05:53:36 +01:00
parent 3975b6c9f4
commit 986854cbb2
3 changed files with 4 additions and 4 deletions

View File

@@ -126,7 +126,7 @@ static LJ_AINLINE uint32_t *exitstub_trace_addr_(uint32_t *p, uint32_t exitno)
#define A64F_U16(x) ((x) << 5)
#define A64F_U12(x) ((x) << 10)
#define A64F_S26(x) (x)
#define A64F_S19(x) ((x) << 5)
#define A64F_S19(x) (((uint32_t)(x) & 0x7ffffu) << 5)
#define A64F_S14(x) ((x) << 5)
#define A64F_S9(x) ((x) << 12)
#define A64F_BIT(x) ((x) << 19)