Lines Matching refs:imm
42 #define IMM16(imm) ((imm) & 0xffff) argument
418 #define SHRUI(dst, srca, imm) \ argument
419 push_3_buffer(compiler, TILEGX_OPC_SHRUI, dst, srca, imm, __LINE__)
421 #define XORI(dst, srca, imm) \ argument
422 push_3_buffer(compiler, TILEGX_OPC_XORI, dst, srca, imm, __LINE__)
424 #define ORI(dst, srca, imm) \ argument
425 push_3_buffer(compiler, TILEGX_OPC_ORI, dst, srca, imm, __LINE__)
433 #define CMPLTUI(dst, srca, imm) \ argument
434 push_3_buffer(compiler, TILEGX_OPC_CMPLTUI, dst, srca, imm, __LINE__)
466 #define ADDI_SOLO(dest, srca, imm) \ argument
467 push_inst(compiler, ADDI_X1 | DEST_X1(dest) | SRCA_X1(srca) | IMM8_X1(imm))
469 #define ADDLI_SOLO(dest, srca, imm) \ argument
470 push_inst(compiler, ADDLI_X1 | DEST_X1(dest) | SRCA_X1(srca) | IMM16_X1(imm))
472 #define SHL16INSLI_SOLO(dest, srca, imm) \ argument
473 push_inst(compiler, SHL16INSLI_X1 | DEST_X1(dest) | SRCA_X1(srca) | IMM16_X1(imm))
1120 static sljit_si load_immediate(struct sljit_compiler *compiler, sljit_si dst_ar, sljit_sw imm) in load_immediate() argument
1123 if (imm <= SIMM_16BIT_MAX && imm >= SIMM_16BIT_MIN) in load_immediate()
1124 return ADDLI(dst_ar, ZERO, imm); in load_immediate()
1126 if (imm <= SIMM_32BIT_MAX && imm >= SIMM_32BIT_MIN) { in load_immediate()
1127 FAIL_IF(ADDLI(dst_ar, ZERO, imm >> 16)); in load_immediate()
1128 return SHL16INSLI(dst_ar, dst_ar, imm); in load_immediate()
1131 if (imm <= SIMM_48BIT_MAX && imm >= SIMM_48BIT_MIN) { in load_immediate()
1132 FAIL_IF(ADDLI(dst_ar, ZERO, imm >> 32)); in load_immediate()
1133 FAIL_IF(SHL16INSLI(dst_ar, dst_ar, imm >> 16)); in load_immediate()
1134 return SHL16INSLI(dst_ar, dst_ar, imm); in load_immediate()
1137 FAIL_IF(ADDLI(dst_ar, ZERO, imm >> 48)); in load_immediate()
1138 FAIL_IF(SHL16INSLI(dst_ar, dst_ar, imm >> 32)); in load_immediate()
1139 FAIL_IF(SHL16INSLI(dst_ar, dst_ar, imm >> 16)); in load_immediate()
1140 return SHL16INSLI(dst_ar, dst_ar, imm); in load_immediate()
1143 static sljit_si emit_const(struct sljit_compiler *compiler, sljit_si dst_ar, sljit_sw imm, int flus… in emit_const() argument
1148 FAIL_IF(ADDLI_SOLO(dst_ar, ZERO, imm >> 32)); in emit_const()
1149 FAIL_IF(SHL16INSLI_SOLO(dst_ar, dst_ar, imm >> 16)); in emit_const()
1150 return SHL16INSLI_SOLO(dst_ar, dst_ar, imm); in emit_const()
1153 FAIL_IF(ADDLI(dst_ar, ZERO, imm >> 32)); in emit_const()
1154 FAIL_IF(SHL16INSLI(dst_ar, dst_ar, imm >> 16)); in emit_const()
1155 return SHL16INSLI(dst_ar, dst_ar, imm); in emit_const()
1158 static sljit_si emit_const_64(struct sljit_compiler *compiler, sljit_si dst_ar, sljit_sw imm, int f… in emit_const_64() argument
1163 FAIL_IF(ADDLI_SOLO(reg_map[dst_ar], ZERO, imm >> 48)); in emit_const_64()
1164 FAIL_IF(SHL16INSLI_SOLO(reg_map[dst_ar], reg_map[dst_ar], imm >> 32)); in emit_const_64()
1165 FAIL_IF(SHL16INSLI_SOLO(reg_map[dst_ar], reg_map[dst_ar], imm >> 16)); in emit_const_64()
1166 return SHL16INSLI_SOLO(reg_map[dst_ar], reg_map[dst_ar], imm); in emit_const_64()
1169 FAIL_IF(ADDLI(reg_map[dst_ar], ZERO, imm >> 48)); in emit_const_64()
1170 FAIL_IF(SHL16INSLI(reg_map[dst_ar], reg_map[dst_ar], imm >> 32)); in emit_const_64()
1171 FAIL_IF(SHL16INSLI(reg_map[dst_ar], reg_map[dst_ar], imm >> 16)); in emit_const_64()
1172 return SHL16INSLI(reg_map[dst_ar], reg_map[dst_ar], imm); in emit_const_64()