Home
last modified time | relevance | path

Searched refs:imm8 (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/include/zephyr/arch/riscv/
Delf.h110 #define R_RISCV_IMM8_GET_BIT(imm8, bit) (((imm8) & BIT(bit)) >> (bit)) argument
118 #define R_RISCV_BTYPE_IMM8_MASK(imm8) \ argument
119 ((R_RISCV_IMM8_GET_BIT(imm8, 12) << 31) | (R_RISCV_IMM8_GET_BIT(imm8, 10) << 30) | \
120 (R_RISCV_IMM8_GET_BIT(imm8, 9) << 29) | (R_RISCV_IMM8_GET_BIT(imm8, 8) << 28) | \
121 (R_RISCV_IMM8_GET_BIT(imm8, 7) << 27) | (R_RISCV_IMM8_GET_BIT(imm8, 6) << 26) | \
122 (R_RISCV_IMM8_GET_BIT(imm8, 5) << 25) | (R_RISCV_IMM8_GET_BIT(imm8, 4) << 11) | \
123 (R_RISCV_IMM8_GET_BIT(imm8, 3) << 10) | (R_RISCV_IMM8_GET_BIT(imm8, 2) << 9) | \
124 (R_RISCV_IMM8_GET_BIT(imm8, 1) << 8) | (R_RISCV_IMM8_GET_BIT(imm8, 11) << 7))
132 #define R_RISCV_JTYPE_IMM8_MASK(imm8) \ argument
133 ((R_RISCV_IMM8_GET_BIT(imm8, 20) << 31) | (R_RISCV_IMM8_GET_BIT(imm8, 10) << 30) | \
[all …]
/Zephyr-latest/arch/riscv/core/
Delf.c91 int32_t imm8; in arch_elf_relocate() local
125 imm8 = jump_target; in arch_elf_relocate()
127 modified_operand = R_RISCV_SET_BTYPE_IMM8(modified_operand, imm8); in arch_elf_relocate()
134 imm8 = jump_target; in arch_elf_relocate()
136 modified_operand = R_RISCV_SET_JTYPE_IMM8(modified_operand, imm8); in arch_elf_relocate()
145 imm8 = jump_target; in arch_elf_relocate()
151 imm8 += imm8 & 0x800; in arch_elf_relocate()
153 original_imm8 = imm8; in arch_elf_relocate()
156 modified_operand = R_RISCV_SET_UTYPE_IMM8(modified_operand, imm8); in arch_elf_relocate()
164 imm8 = jump_target; in arch_elf_relocate()
[all …]