If the following is specified for imm in syntax "add imm, reg2" and "mulh imm, reg2", the assembler executes instruction expansion to generate one or more machine instructions. |
Absolute expression exceeding the range of -16 to +15, but within the range of -32,768 to +32,767 |
If all the lower 16 bits of the value of imm are 0
Relative expression having !label or %label, or that having $label for a label with a definition in the sdata/sbss-attribute section |
add !label, reg |
addi !label, reg, reg |
add %label, reg |
addi %label, reg, reg |
add $label, reg |
addi $label, reg, reg |
Relative expression having #label or label, or that having $label for a label having no definition in the sdata/sbss-attribute section |