Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/Target/CSKY/
H A DCSKYInstrFormatsF2.td119 !strconcat(op, "\t$vrz, ($rx, ${imm8})"), []> {
120 bits<10> imm8;
125 let Inst{24-21} = imm8{7-4};
130 let Inst{7-4} = imm8{3-0};
195 !strconcat(op, "\t$vrz, ${imm8}"), []> {
196 bits<10> imm8;
201 let Inst{24-21} = imm8{7-4};
206 let Inst{7-4} = imm8{3-0};
H A DCSKYInstrFormatsF1.td146 bits<8> imm8;
148 let Inst{24 - 21} = imm8{7 - 4}; //imm4h
152 let Inst{7 - 4} = imm8{3 - 0}; // imm4l
173 bits<8> imm8;
175 let Inst{24 - 21} = imm8{7 - 4}; //imm4h
179 let Inst{7 - 4} = imm8{3 - 0}; // imm4l
202 : F_I8_XY_MEM<sop, sop_su, (outs regtype:$vrz), (ins GPR:$rx, operand:$imm8),
203 !strconcat(op#op_su, "\t$vrz, ($rx, ${imm8})"), []>;
212 : F_I8_XY_MEM<sop, sop_su, (outs), (ins regtype:$vrz, GPR:$rx, operand:$imm8),
213 !strconcat(op#op_su, "\t$vrz, ($rx, ${imm8})"), []>;
H A DCSKYInstrInfo16Instr.td94 let isAdd = 1, Pattern = [(set mGPR:$rz, (add mGPR:$rZ, oimm8:$imm8))] in
95 def ADDI16 : I16_Z_8<0b100, (ins mGPR:$rZ, oimm8:$imm8), "addi16\t$rz, $imm8">;
96 let Pattern = [(set mGPR:$rz, (sub mGPR:$rZ, oimm8:$imm8))] in
97 def SUBI16 : I16_Z_8<0b101, (ins mGPR:$rZ, oimm8:$imm8), "subi16\t$rz, $imm8">;
101 def ADDI16ZSP : I16_Z_8<0b011, (ins GPRSP:$sp, uimm8_2:$imm8),
102 "addi16\t$rz, $sp, $imm8">;
123 (ins mGPR:$rx, uimm8:$imm8), "rsubi16 $rd, $rx, $imm8", []>;
168 def MOVI16 : I16_Z_8<0b110, (ins uimm8:$imm8), "movi16\t$rz, $imm8"> {
172 let Pattern = [(set mGPR:$rz, uimm8:$imm8)];
H A DCSKYInstrInfoF2.td61 def f2FLD_S : F2_LDST_S<0b0, "fld", (outs FPR32Op:$vrz), (ins GPR:$rx, uimm8_2:$imm8)>;
63 def f2FLD_D : F2_LDST_D<0b0, "fld", (outs FPR64Op:$vrz), (ins GPR:$rx, uimm8_2:$imm8)>;
66 def f2FST_S : F2_LDST_S<0b1, "fst", (outs), (ins FPR32Op:$vrz, GPR:$rx, uimm8_2:$imm8)>;
68 def f2FST_D : F2_LDST_D<0b1, "fst", (outs), (ins FPR64Op:$vrz, GPR:$rx, uimm8_2:$imm8)>;
106 def f2FLRW_S : F2_LRW<0b00, 0b0, "flrw.32", (outs FPR32Op:$vrz), (ins fconstpool_symbol:$imm8)>;
107 def f2FLRW_D : F2_LRW<0b01, 0b0, "flrw.64", (outs FPR64Op:$vrz), (ins fconstpool_symbol:$imm8)>;
H A DCSKYInstrFormats16Instr.td129 bits<8> imm8;
133 let Inst{7 - 0} = imm8;
/llvm-project-15.0.7/lldb/source/Plugins/Process/Utility/
H A DARMUtils.h351 const uint32_t imm8 = bits(opcode, 7, 0); in ThumbImm12() local
352 const uint32_t imm12 = i << 11 | imm3 << 8 | imm8; in ThumbImm12()
364 const uint32_t imm8 = bits(opcode, 7, 0); in ThumbImm8Scaled() local
365 return imm8 * 4; in ThumbImm8Scaled()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMInstrThumb.td399 // ADD <Rd>, sp, #<imm8>
961 bits<8> imm8;
963 let Inst{7-0} = imm8;
1128 bits<8> imm8;
1130 let Inst{7-0} = imm8;
1205 bits<8> imm8;
1207 let Inst{7-0} = imm8;
1405 def : T1Pat<(ARMsubs tGPR:$Rn, imm0_255:$imm8), (tSUBSi8 $Rn, imm0_255:$imm8)>;
1435 def tUDF : TI<(outs), (ins imm0_255:$imm8), IIC_Br, "udf\t$imm8",
1437 bits<8> imm8;
[all …]
H A DARMInstrInfo.td871 /// imm8 predicate - Immediate is exactly 8.
1132 // {8} 1 is imm8 is non-negative. 0 otherwise.
1133 // {7-0} [0,255] imm8 value.
1144 // {8} 1 is imm8 is non-negative. 0 otherwise.
1145 // {7-0} [0,255] imm8 value, scaled by 4.
1196 // addrmode3 := reg +/- imm8
1239 // addrmode5 := reg +/- imm8*4
1258 // addrmode5fp16 := reg +/- imm8*2
2970 let Inst{22} = addr{13}; // 1 == imm8, 0 == Rm
3270 let Inst{22} = addr{13}; // 1 == imm8, 0 == Rm
[all …]
H A DARMInstrFormats.td859 let Inst{22} = addr{13}; // 1 == imm8, 0 == Rm
891 // {13} 1 == imm8, 0 == Rm
917 let Inst{22} = addr{13}; // 1 == imm8, 0 == Rm
1613 let Inst{7-0} = addr{7-0}; // imm8
1638 let Inst{7-0} = addr{7-0}; // imm8
1665 let Inst{7-0} = addr{7-0}; // imm8
H A DARMInstrThumb2.td221 // t2addrmode_posimm8 := reg + imm8
234 // t2addrmode_negimm8 := reg - imm8
248 // t2addrmode_imm8 := reg +/- imm8
277 // t2addrmode_imm8s4 := reg +/- (imm8 << 2)
312 // They are printed the same way as the imm8 version
317 // They are printed the same way as the imm8 version
323 // They are printed the same way as the imm8 version
330 // t2addrmode_imm0_1020s4 := reg + (imm8 << 2)
1173 /// T2I_ld - Defines a set of (op r, {imm12|imm8|so_reg}) load patterns.
1265 /// T2I_st - Defines a set of (op r, {imm12|imm8|so_reg}) store patterns.
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMips16InstrFormats.td114 // Format RI instruction class in Mips : <|opcode|rx|imm8|>
122 bits<8> imm8;
127 let Inst{7-0} = imm8;
314 // Format i8 instruction class in Mips : <|opcode|funct|imm8>
322 bits<8> imm8;
328 let Inst{7-0} = imm8;
/llvm-project-15.0.7/llvm/test/TableGen/
H A DTargetInstrInfo.td18 def imm8 : RTLNode;
92 def MOV8ri : Inst<(ops R8:$dst, imm8:$src),
94 [(set R8:$dst, imm8:$src)]>;
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dcommuted-blend-mask.ll5 ; mask can be encoded as a imm8.
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A Dconstants-i64.ll252 define i64 @imm8() #0 {
253 ; CHECK-LABEL: imm8:
/llvm-project-15.0.7/llvm/lib/Target/LoongArch/
H A DLoongArchInstrFormats.td142 bits<8> imm8;
147 let Inst{17-10} = imm8;
H A DLoongArchInstrInfo.td927 (ins GPR:$rj, uimm8:$imm8), "lddir", "$rd, $rj, $imm8">;
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstrArithmetic.td580 /// Imm8Operand - This is the operand kind to use for an imm8 of this type.
582 /// only used for instructions that have a sign-extended imm8 field form.
777 // BinOpRI8 - Instructions like "add reg, reg, imm8".
787 // BinOpRI8_F - Instructions like "cmp reg, imm8".
794 // BinOpRI8_RF - Instructions like "add reg, reg, imm8".
801 // BinOpRI8_RFF - Instructions like "adc reg, reg, imm8".
881 // BinOpMI8 - Instructions like "add [mem], imm8".
890 // BinOpMI8_RMW - Instructions like "add [mem], imm8".
898 // BinOpMI8_RMW_FF - Instructions like "adc [mem], imm8".
906 // BinOpMI8_F - Instructions like "cmp [mem], imm8".
[all …]
H A DX86InstrXOP.td243 // Instruction where second source can be memory, third must be imm8
/llvm-project-15.0.7/llvm/test/CodeGen/Thumb/
H A Dconsthoist-few-dependents.ll60 ; test/CodeGen/Thumb/consthoist-imm8-costs-1.ll
/llvm-project-15.0.7/lld/ELF/Arch/
H A DRISCV.cpp314 uint16_t imm8 = extractBits(val, 8, 8) << 12; in relocate() local
319 insn |= imm8 | imm4_3 | imm7_6 | imm2_1 | imm5; in relocate()
/llvm-project-15.0.7/llvm/lib/Support/BLAKE3/
H A Dblake3_sse2.c81 INLINE __m128i blend_epi16(__m128i a, __m128i b, const int16_t imm8) { in blend_epi16() argument
83 __m128i mask = _mm_set1_epi16(imm8); in blend_epi16()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DSVEInstrFormats.td1555 bits<8> imm8;
1557 let Inst{20-16} = imm8{7-3};
1559 let Inst{12-10} = imm8{2-0};
1577 asm, "\t$Zd, $Zn, $imm8",
1581 bits<8> imm8;
1583 let Inst{20-16} = imm8{7-3};
4345 asm, "\t$Zd, $imm8",
4349 bits<8> imm8;
4354 let Inst{12-5} = imm8;
4599 bits<8> imm8;
[all …]
H A DAArch64InstrInfo.td6238 [(set FPR64:$Rd, simdimmtype10:$imm8)]>;
6298 def : Pat<(v2i32 (AArch64movi_shift imm0_255:$imm8, (i32 imm:$shift))),
6299 (MOVIv2i32 imm0_255:$imm8, imm:$shift)>;
6300 def : Pat<(v4i32 (AArch64movi_shift imm0_255:$imm8, (i32 imm:$shift))),
6301 (MOVIv4i32 imm0_255:$imm8, imm:$shift)>;
6303 (MOVIv4i16 imm0_255:$imm8, imm:$shift)>;
6305 (MOVIv8i16 imm0_255:$imm8, imm:$shift)>;
6343 (MVNIv2i32 imm0_255:$imm8, imm:$shift)>;
6345 (MVNIv4i32 imm0_255:$imm8, imm:$shift)>;
6347 (MVNIv4i16 imm0_255:$imm8, imm:$shift)>;
[all …]
H A DAArch64SVEInstrInfo.td748 def : Pat<(nxv8f16 (splat_vector fpimm16:$imm8)),
749 (FDUP_ZI_H fpimm16:$imm8)>;
750 def : Pat<(nxv4f16 (splat_vector fpimm16:$imm8)),
751 (FDUP_ZI_H fpimm16:$imm8)>;
752 def : Pat<(nxv2f16 (splat_vector fpimm16:$imm8)),
753 (FDUP_ZI_H fpimm16:$imm8)>;
754 def : Pat<(nxv4f32 (splat_vector fpimm32:$imm8)),
755 (FDUP_ZI_S fpimm32:$imm8)>;
756 def : Pat<(nxv2f32 (splat_vector fpimm32:$imm8)),
757 (FDUP_ZI_S fpimm32:$imm8)>;
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/Disassembler/
H A DX86Disassembler.cpp1423 uint8_t imm8; in readImmediate() local
1437 if (consume(insn, imm8)) in readImmediate()
1439 insn->immediates[insn->numImmediatesConsumed] = imm8; in readImmediate()

12