1 .macro sign_check reloc_sym reloc_name reloc_bits
4 .reloc 0, R_LARCH_SOP_PUSH_ABSOLUTE, 1 << (\reloc_bits - 1)
7 .reloc 0, R_LARCH_SOP_PUSH_ABSOLUTE, -(1 << (\reloc_bits - 1)) - 1
14 .macro sign_check_s2 reloc_sym reloc_name reloc_bits
17 .reloc 0, R_LARCH_SOP_PUSH_ABSOLUTE, (1 << (\reloc_bits - 1)) << 2
20 .reloc 0, R_LARCH_SOP_PUSH_ABSOLUTE, (-(1 << (\reloc_bits - 1)) - 1) << 2
27 .macro unsign_check reloc_sym reloc_name reloc_bits
29 .reloc 0, R_LARCH_SOP_PUSH_ABSOLUTE, 1 << \reloc_bits
35 sign_check s_10_5 R_LARCH_SOP_POP_32_S_10_5
5
36 sign_check s_10_12 R_LARCH_SOP_POP_32_S_10_12
12
37 sign_check s_10_16 R_LARCH_SOP_POP_32_S_10_16
16
38 sign_check_s2 s_10_16_s2 R_LARCH_SOP_POP_32_S_10_16_S2
16
39 sign_check_s2 s_0_5_10_16_s2 R_LARCH_SOP_POP_32_S_0_5_10_16_S2
21
40 sign_check_s2 s_0_10_10_16_s2 R_LARCH_SOP_POP_32_S_0_10_10_16_S2
26
41 sign_check s_5_20 R_LARCH_SOP_POP_32_S_5_20
20
42 unsign_check u_10_12 R_LARCH_SOP_POP_32_U_10_12
12
43 unsign_check u R_LARCH_SOP_POP_32_U
32