Home
last modified time | relevance | path

Searched refs:imm (Results 1 – 25 of 1029) sorted by relevance

12345678910>>...42

/external/mesa3d/src/intel/compiler/
Dbrw_fs_combine_constants.cpp109 struct imm { struct
161 struct imm *imm; argument
166 static struct imm *
170 if (table->imm[i].size == size && in find_imm()
171 !memcmp(table->imm[i].bytes, data, size)) { in find_imm()
172 return &table->imm[i]; in find_imm()
178 static struct imm *
183 table->imm = reralloc(mem_ctx, table->imm, struct imm, table->size); in new_imm()
185 return &table->imm[table->len++]; in new_imm()
199 const struct imm *a = (const struct imm *)_a, in compare()
[all …]
Dbrw_reg.h646 struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_DF); in brw_imm_df() local
647 imm.df = df; in brw_imm_df()
648 return imm; in brw_imm_df()
654 struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_UQ); in brw_imm_u64() local
655 imm.u64 = u64; in brw_imm_u64()
656 return imm; in brw_imm_u64()
662 struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_F); in brw_imm_f() local
663 imm.f = f; in brw_imm_f()
664 return imm; in brw_imm_f()
671 struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_Q); in brw_imm_q() local
[all …]
/external/clang/lib/Headers/
Davx512bwintrin.h1632 #define _mm512_shufflehi_epi16(A, imm) __extension__ ({ \ argument
1636 4 + (((imm) >> 0) & 0x3), \
1637 4 + (((imm) >> 2) & 0x3), \
1638 4 + (((imm) >> 4) & 0x3), \
1639 4 + (((imm) >> 6) & 0x3), \
1641 12 + (((imm) >> 0) & 0x3), \
1642 12 + (((imm) >> 2) & 0x3), \
1643 12 + (((imm) >> 4) & 0x3), \
1644 12 + (((imm) >> 6) & 0x3), \
1646 20 + (((imm) >> 0) & 0x3), \
[all …]
Davx2intrin.h498 #define _mm256_shuffle_epi32(a, imm) __extension__ ({ \ argument
501 0 + (((imm) >> 0) & 0x3), \
502 0 + (((imm) >> 2) & 0x3), \
503 0 + (((imm) >> 4) & 0x3), \
504 0 + (((imm) >> 6) & 0x3), \
505 4 + (((imm) >> 0) & 0x3), \
506 4 + (((imm) >> 2) & 0x3), \
507 4 + (((imm) >> 4) & 0x3), \
508 4 + (((imm) >> 6) & 0x3)); })
510 #define _mm256_shufflehi_epi16(a, imm) __extension__ ({ \ argument
[all …]
Demmintrin.h1102 #define _mm_slli_si128(a, imm) __extension__ ({ \ argument
1106 ((char)(imm)&0xF0) ? 0 : 16 - (char)(imm), \
1107 ((char)(imm)&0xF0) ? 1 : 17 - (char)(imm), \
1108 ((char)(imm)&0xF0) ? 2 : 18 - (char)(imm), \
1109 ((char)(imm)&0xF0) ? 3 : 19 - (char)(imm), \
1110 ((char)(imm)&0xF0) ? 4 : 20 - (char)(imm), \
1111 ((char)(imm)&0xF0) ? 5 : 21 - (char)(imm), \
1112 ((char)(imm)&0xF0) ? 6 : 22 - (char)(imm), \
1113 ((char)(imm)&0xF0) ? 7 : 23 - (char)(imm), \
1114 ((char)(imm)&0xF0) ? 8 : 24 - (char)(imm), \
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/RISCV/
DRISCVInstrInfoC.td214 : RVInst16CI<funct3, 0b10, (outs cls:$rd), (ins SP:$rs1, opnd:$imm),
215 OpcodeStr, "$rd, ${imm}(${rs1})">;
220 : RVInst16CSS<funct3, 0b10, (outs), (ins cls:$rs2, SP:$rs1, opnd:$imm),
221 OpcodeStr, "$rs2, ${imm}(${rs1})">;
226 : RVInst16CL<funct3, 0b00, (outs cls:$rd), (ins GPRC:$rs1, opnd:$imm),
227 OpcodeStr, "$rd, ${imm}(${rs1})">;
232 : RVInst16CS<funct3, 0b00, (outs), (ins cls:$rs2, GPRC:$rs1, opnd:$imm),
233 OpcodeStr, "$rs2, ${imm}(${rs1})">;
238 : RVInst16CB<funct3, 0b01, (outs), (ins cls:$rs1, simm9_lsb0:$imm),
239 OpcodeStr, "$rs1, $imm"> {
[all …]
/external/v8/src/wasm/
Dfunction-body-decoder-impl.h665 const BranchTableImmediate<validate>& imm) in BranchTableIterator() argument
667 start_(imm.start), in BranchTableIterator()
668 pc_(imm.table), in BranchTableIterator()
669 table_count_(imm.table_count) {} in BranchTableIterator()
964 F(LocalGet, Value* result, const LocalIndexImmediate<validate>& imm) \
965 F(LocalSet, const Value& value, const LocalIndexImmediate<validate>& imm) \
967 const LocalIndexImmediate<validate>& imm) \
970 F(GlobalGet, Value* result, const GlobalIndexImmediate<validate>& imm) \
971 F(GlobalSet, const Value& value, const GlobalIndexImmediate<validate>& imm) \
973 const TableIndexImmediate<validate>& imm) \
[all …]
Dgraph-builder-interface.cc266 void S128Const(FullDecoder* decoder, const Simd128Immediate<validate>& imm, in S128Const() argument
268 result->node = builder_->Simd128Constant(imm.value); in S128Const()
295 const LocalIndexImmediate<validate>& imm) { in LocalGet() argument
296 result->node = ssa_env_->locals[imm.index]; in LocalGet()
300 const LocalIndexImmediate<validate>& imm) { in LocalSet() argument
301 ssa_env_->locals[imm.index] = value.node; in LocalSet()
305 const LocalIndexImmediate<validate>& imm) { in LocalTee() argument
307 ssa_env_->locals[imm.index] = value.node; in LocalTee()
324 const GlobalIndexImmediate<validate>& imm) { in GlobalGet() argument
325 result->node = BUILD(GlobalGet, imm.index); in GlobalGet()
[all …]
/external/vixl/src/aarch32/
Dinstructions-aarch32.cc605 ImmediateT32::ImmediateT32(uint32_t imm) { in ImmediateT32() argument
607 if ((imm & ~0xff) == 0) { in ImmediateT32()
608 SetEncodingValue(imm); in ImmediateT32()
611 if ((imm >> 16) == (imm & 0xffff)) { in ImmediateT32()
612 if ((imm & 0xff00) == 0) { in ImmediateT32()
614 SetEncodingValue((imm & 0xff) | (0x1 << 8)); in ImmediateT32()
617 if ((imm & 0xff) == 0) { in ImmediateT32()
619 SetEncodingValue(((imm >> 8) & 0xff) | (0x2 << 8)); in ImmediateT32()
622 if (((imm >> 8) & 0xff) == (imm & 0xff)) { in ImmediateT32()
624 SetEncodingValue((imm & 0xff) | (0x3 << 8)); in ImmediateT32()
[all …]
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyInstrMemory.td83 def : Pat<(i32 (load (regPlusImm I32:$addr, imm:$off))),
84 (LOAD_I32 imm:$off, $addr, 0)>;
85 def : Pat<(i64 (load (regPlusImm I32:$addr, imm:$off))),
86 (LOAD_I64 imm:$off, $addr, 0)>;
87 def : Pat<(f32 (load (regPlusImm I32:$addr, imm:$off))),
88 (LOAD_F32 imm:$off, $addr, 0)>;
89 def : Pat<(f64 (load (regPlusImm I32:$addr, imm:$off))),
90 (LOAD_F64 imm:$off, $addr, 0)>;
91 def : Pat<(i32 (load (or_is_add I32:$addr, imm:$off))),
92 (LOAD_I32 imm:$off, $addr, 0)>;
[all …]
/external/mesa3d/src/amd/compiler/
Daco_insert_waitcnt.cpp153 uint16_t imm = 0; in pack() local
160 imm = ((vm & 0x30) << 10) | ((lgkm & 0x3f) << 8) | ((exp & 0x7) << 4) | (vm & 0xf); in pack()
165 imm = ((vm & 0x30) << 10) | ((lgkm & 0xf) << 8) | ((exp & 0x7) << 4) | (vm & 0xf); in pack()
170 imm = ((lgkm & 0xf) << 8) | ((exp & 0x7) << 4) | (vm & 0xf); in pack()
174imm |= 0xc000; /* should have no effect on pre-GFX9 and now we won't have to worry about the archi… in pack()
176imm |= 0x3000; /* should have no effect on pre-GFX10 and now we won't have to worry about the arch… in pack()
177 return imm; in pack()
198 wait_imm imm; member
206 wait_entry(wait_event event, wait_imm imm, bool logical, bool wait_on_read) in wait_entry()
207 : imm(imm), events(event), counters(get_counters_for_event(event)), in wait_entry()
[all …]
/external/llvm/lib/Target/AMDGPU/
DSIIntrinsics.td26 llvm_i32_ty, // num_channels(imm), selects opcode suffix: 1=X, 2=XY, 3=XYZ, 4=XYZW
29 llvm_i32_ty, // inst_offset(imm)
30 llvm_i32_ty, // dfmt(imm)
31 llvm_i32_ty, // nfmt(imm)
32 llvm_i32_ty, // offen(imm)
33 llvm_i32_ty, // idxen(imm)
34 llvm_i32_ty, // glc(imm)
35 llvm_i32_ty, // slc(imm)
36 llvm_i32_ty], // tfe(imm)
45 llvm_i32_ty, // inst_offset(imm)
[all …]
/external/llvm/lib/Target/Sparc/
DSparcInstrAliases.td66 // b<cond> $imm
67 def : InstAlias<!strconcat(!strconcat("b", cond), " $imm"),
68 (BCOND brtarget:$imm, condVal)>;
70 // b<cond>,a $imm
71 def : InstAlias<!strconcat(!strconcat("b", cond), ",a $imm"),
72 (BCONDA brtarget:$imm, condVal)>;
74 // b<cond> %icc, $imm
75 def : InstAlias<!strconcat(!strconcat("b", cond), " %icc, $imm"),
76 (BPICC brtarget:$imm, condVal)>, Requires<[HasV9]>;
78 // b<cond>,pt %icc, $imm
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Sparc/
DSparcInstrAliases.td66 // b<cond> $imm
67 def : InstAlias<!strconcat(!strconcat("b", cond), " $imm"),
68 (BCOND brtarget:$imm, condVal)>;
70 // b<cond>,a $imm
71 def : InstAlias<!strconcat(!strconcat("b", cond), ",a $imm"),
72 (BCONDA brtarget:$imm, condVal)>;
74 // b<cond> %icc, $imm
75 def : InstAlias<!strconcat(!strconcat("b", cond), " %icc, $imm"),
76 (BPICC brtarget:$imm, condVal)>, Requires<[HasV9]>;
78 // b<cond>,pt %icc, $imm
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIIntrinsics.td24 llvm_i32_ty, // num_channels(imm), selects opcode suffix: 1=X, 2=XY, 3=XYZ, 4=XYZW
27 llvm_i32_ty, // inst_offset(imm)
28 llvm_i32_ty, // dfmt(imm)
29 llvm_i32_ty, // nfmt(imm)
30 llvm_i32_ty, // offen(imm)
31 llvm_i32_ty, // idxen(imm)
32 llvm_i32_ty, // glc(imm)
33 llvm_i32_ty, // slc(imm)
34 llvm_i32_ty], // tfe(imm)
43 llvm_i32_ty, // inst_offset(imm)
[all …]
/external/capstone/arch/Mips/
DMipsInstPrinter.c206 int64_t imm = MCOperand_getImm(Op); in printOperand() local
208 if (imm) { // only print Imm offset if it is not 0 in printOperand()
209 if (imm >= 0) { in printOperand()
210 if (imm > HEX_THRESHOLD) in printOperand()
211 SStream_concat(O, "0x%"PRIx64, imm); in printOperand()
213 SStream_concat(O, "%"PRIu64, imm); in printOperand()
215 if (imm < -HEX_THRESHOLD) in printOperand()
216 SStream_concat(O, "-0x%"PRIx64, -imm); in printOperand()
218 SStream_concat(O, "-%"PRIu64, -imm); in printOperand()
222 MI->flat_insn->detail->mips.operands[MI->flat_insn->detail->mips.op_count].mem.disp = imm; in printOperand()
[all …]
/external/pcre/dist2/src/sljit/
DsljitNativePPC_32.c29 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw imm) in load_immediate() argument
31 if (imm <= SIMM_MAX && imm >= SIMM_MIN) in load_immediate()
32 return push_inst(compiler, ADDI | D(reg) | A(0) | IMM(imm)); in load_immediate()
34 if (!(imm & ~0xffff)) in load_immediate()
35 return push_inst(compiler, ORI | S(TMP_ZERO) | A(reg) | IMM(imm)); in load_immediate()
37 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(imm >> 16))); in load_immediate()
38 return (imm & 0xffff) ? push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)) : SLJIT_SUCCESS; in load_immediate()
109 return push_inst(compiler, ADDIS | D(dst) | A(src1) | compiler->imm); in emit_single_op()
112 …h_inst(compiler, ADDIS | D(dst) | A(src1) | (((compiler->imm >> 16) & 0xffff) + ((compiler->imm >>… in emit_single_op()
116 return push_inst(compiler, ADDI | D(dst) | A(src1) | (compiler->imm & 0xffff)); in emit_single_op()
[all …]
DsljitNativePPC_64.c44 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 reg, sljit_sw imm) in load_immediate() argument
51 if (imm <= SIMM_MAX && imm >= SIMM_MIN) in load_immediate()
52 return push_inst(compiler, ADDI | D(reg) | A(0) | IMM(imm)); in load_immediate()
54 if (!(imm & ~0xffff)) in load_immediate()
55 return push_inst(compiler, ORI | S(TMP_ZERO) | A(reg) | IMM(imm)); in load_immediate()
57 if (imm <= 0x7fffffffl && imm >= -0x80000000l) { in load_immediate()
58 FAIL_IF(push_inst(compiler, ADDIS | D(reg) | A(0) | IMM(imm >> 16))); in load_immediate()
59 return (imm & 0xffff) ? push_inst(compiler, ORI | S(reg) | A(reg) | IMM(imm)) : SLJIT_SUCCESS; in load_immediate()
63 tmp = (imm >= 0) ? imm : ~imm; in load_immediate()
67 tmp = (imm << shift); in load_immediate()
[all …]
DsljitNativeARM_T2_32.c64 #define IMM3(imm) (imm << 6) argument
65 #define IMM8(imm) (imm) argument
83 #define IMM5(imm) \ argument
84 (COPY_BITS(imm, 2, 12, 3) | ((imm & 0x3) << 6))
85 #define IMM12(imm) \ argument
86 (COPY_BITS(imm, 11, 26, 1) | COPY_BITS(imm, 8, 12, 3) | (imm & 0xff))
222 …JIT_INLINE sljit_s32 emit_imm32_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_uw imm) in emit_imm32_const() argument
225 …| COPY_BITS(imm, 12, 16, 4) | COPY_BITS(imm, 11, 26, 1) | COPY_BITS(imm, 8, 12, 3) | (imm & 0xff))… in emit_imm32_const()
227 …| COPY_BITS(imm, 12 + 16, 16, 4) | COPY_BITS(imm, 11 + 16, 26, 1) | COPY_BITS(imm, 8 + 16, 12, 3) … in emit_imm32_const()
474 static sljit_uw get_imm(sljit_uw imm) in get_imm() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/BPF/
DBPFInstrInfo.td67 def i64immSExt32 : PatLeaf<(i64 imm),
69 def i32immSExt32 : PatLeaf<(i32 imm),
85 def BPF_CC_EQ : PatLeaf<(i64 imm),
87 def BPF_CC_NE : PatLeaf<(i64 imm),
89 def BPF_CC_GE : PatLeaf<(i64 imm),
91 def BPF_CC_GT : PatLeaf<(i64 imm),
93 def BPF_CC_GTU : PatLeaf<(i64 imm),
95 def BPF_CC_GEU : PatLeaf<(i64 imm),
97 def BPF_CC_LE : PatLeaf<(i64 imm),
99 def BPF_CC_LT : PatLeaf<(i64 imm),
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dbitreverse.ll17 ; X86-NEXT: andl $3855, %edx # imm = 0xF0F
19 ; X86-NEXT: andl $61680, %eax # imm = 0xF0F0
23 ; X86-NEXT: andl $13107, %edx # imm = 0x3333
24 ; X86-NEXT: andl $52428, %eax # imm = 0xCCCC
28 ; X86-NEXT: andl $21845, %edx # imm = 0x5555
29 ; X86-NEXT: andl $43690, %eax # imm = 0xAAAA
34 ; X86-NEXT: andl $3855, %edx # imm = 0xF0F
36 ; X86-NEXT: andl $61680, %ecx # imm = 0xF0F0
40 ; X86-NEXT: andl $13107, %edx # imm = 0x3333
41 ; X86-NEXT: andl $52428, %ecx # imm = 0xCCCC
[all …]
/external/iproute2/include/
Dbpf_util.h76 .imm = 0 })
84 .imm = 0 })
94 .imm = IMM })
102 .imm = IMM })
112 .imm = 0 })
120 .imm = 0 })
130 .imm = IMM })
138 .imm = IMM })
150 .imm = (__u32) (IMM) }), \
156 .imm = ((__u64) (IMM)) >> 32 })
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonDepOperands.td15 def s4_0ImmPred : PatLeaf<(i32 imm), [{ return isShiftedInt<4, 0>(N->getSExtValue());}]>;
18 def s29_3ImmPred : PatLeaf<(i32 imm), [{ return isShiftedInt<32, 3>(N->getSExtValue());}]>;
21 def s10_6ImmPred : PatLeaf<(i32 imm), [{ return isShiftedInt<10, 6>(N->getSExtValue());}]>;
24 def u6_0ImmPred : PatLeaf<(i32 imm), [{ return isShiftedUInt<6, 0>(N->getSExtValue());}]>;
27 def a30_2ImmPred : PatLeaf<(i32 imm), [{ return isShiftedInt<32, 2>(N->getSExtValue());}]>;
30 def u29_3ImmPred : PatLeaf<(i32 imm), [{ return isShiftedUInt<32, 3>(N->getSExtValue());}]>;
33 def s8_0ImmPred : PatLeaf<(i32 imm), [{ return isShiftedInt<8, 0>(N->getSExtValue());}]>;
36 def u32_0ImmPred : PatLeaf<(i32 imm), [{ return isShiftedUInt<32, 0>(N->getSExtValue());}]>;
39 def u4_2ImmPred : PatLeaf<(i32 imm), [{ return isShiftedUInt<4, 2>(N->getSExtValue());}]>;
42 def u3_0ImmPred : PatLeaf<(i32 imm), [{ return isShiftedUInt<3, 0>(N->getSExtValue());}]>;
[all …]
/external/capstone/arch/X86/
DX86ATTInstPrinter.c252 int64_t imm = MCOperand_getImm(Op); in _printOperand() local
253 if (imm < 0) { in _printOperand()
254 if (imm < -HEX_THRESHOLD) in _printOperand()
255 SStream_concat(O, "$-0x%"PRIx64, -imm); in _printOperand()
257 SStream_concat(O, "$-%"PRIu64, -imm); in _printOperand()
259 if (imm > HEX_THRESHOLD) in _printOperand()
260 SStream_concat(O, "$0x%"PRIx64, imm); in _printOperand()
262 SStream_concat(O, "$%"PRIu64, imm); in _printOperand()
408 int64_t imm = MCOperand_getImm(DispSpec); in printMemOffset() local
410 MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].mem.disp = imm; in printMemOffset()
[all …]
/external/igt-gpu-tools/assembler/
Dbrw_reg.h379 struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_F); in brw_imm_f() local
380 imm.dw1.f = f; in brw_imm_f()
381 return imm; in brw_imm_f()
388 struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_D); in brw_imm_d() local
389 imm.dw1.d = d; in brw_imm_d()
390 return imm; in brw_imm_d()
397 struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_UD); in brw_imm_ud() local
398 imm.dw1.ud = ud; in brw_imm_ud()
399 return imm; in brw_imm_ud()
406 struct brw_reg imm = brw_imm_reg(BRW_REGISTER_TYPE_UW); in brw_imm_uw() local
[all …]

12345678910>>...42