Home
last modified time | relevance | path

Searched refs:Disp (Results 1 – 25 of 64) sorted by relevance

123

/netbsd-src/external/gpl3/binutils/dist/include/opcode/
H A Dtic30.h198 #define Disp 0x0080 macro
261 { "b" ,1,0x68000000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
262 { "bu" ,1,0x68000000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
263 { "blo" ,1,0x68010000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
264 { "bls" ,1,0x68020000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
265 { "bhi" ,1,0x68030000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
266 { "bhs" ,1,0x68040000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
267 { "beq" ,1,0x68050000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
268 { "bne" ,1,0x68060000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
269 { "blt" ,1,0x68070000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/include/opcode/
H A Dtic30.h198 #define Disp 0x0080 macro
261 { "b" ,1,0x68000000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
262 { "bu" ,1,0x68000000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
263 { "blo" ,1,0x68010000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
264 { "bls" ,1,0x68020000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
265 { "bhi" ,1,0x68030000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
266 { "bhs" ,1,0x68040000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
267 { "beq" ,1,0x68050000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
268 { "bne" ,1,0x68060000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
269 { "blt" ,1,0x68070000,PCRel, { AllReg|Disp, 0, 0 }, Imm_None },
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/M68k/
H A DM68kISelDAGToDAG.cpp63 int64_t Disp; member
83 : AM(AT), BaseType(Base::RegBase), Disp(0), BaseFrameIndex(0), IndexReg(), in M68kISelAddressMode()
152 dbgs() << "\nDisp: " << Disp; in dump()
232 SDValue &Disp, SDValue &Base) { in getFrameIndexAddress() argument
234 Disp = getI32Imm(AM.Disp, DL); in getFrameIndexAddress()
247 Sym = CurDAG->getTargetGlobalAddress(AM.GV, SDLoc(), MVT::i32, AM.Disp, in getSymbolicDisplacement()
254 AM.Disp, AM.SymbolFlags); in getSymbolicDisplacement()
259 assert(!AM.Disp && "Non-zero displacement is ignored with ES."); in getSymbolicDisplacement()
265 assert(!AM.Disp && "Non-zero displacement is ignored with MCSym."); in getSymbolicDisplacement()
272 assert(!AM.Disp && "Non-zero displacement is ignored with JT."); in getSymbolicDisplacement()
[all …]
H A DM68kRegisterInfo.cpp173 MachineOperand &Disp = MI.getOperand(FIOperandNum - 1); in eliminateFrameIndex() local
176 int Imm = (int)(Disp.getImm()); in eliminateFrameIndex()
209 Disp.ChangeToImmediate(FIOffset + Imm); in eliminateFrameIndex()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCCodeEmitter.cpp187 uint64_t Disp = getMachineOpValue(MI, MI.getOperand(OpNum + 1), Fixups, STI); in getBDAddr12Encoding() local
188 assert(isUInt<4>(Base) && isUInt<12>(Disp)); in getBDAddr12Encoding()
189 return (Base << 12) | Disp; in getBDAddr12Encoding()
197 uint64_t Disp = getMachineOpValue(MI, MI.getOperand(OpNum + 1), Fixups, STI); in getBDAddr20Encoding() local
198 assert(isUInt<4>(Base) && isInt<20>(Disp)); in getBDAddr20Encoding()
199 return (Base << 20) | ((Disp & 0xfff) << 8) | ((Disp & 0xff000) >> 12); in getBDAddr20Encoding()
207 uint64_t Disp = getMachineOpValue(MI, MI.getOperand(OpNum + 1), Fixups, STI); in getBDXAddr12Encoding() local
209 assert(isUInt<4>(Base) && isUInt<12>(Disp) && isUInt<4>(Index)); in getBDXAddr12Encoding()
210 return (Index << 16) | (Base << 12) | Disp; in getBDXAddr12Encoding()
218 uint64_t Disp = getMachineOpValue(MI, MI.getOperand(OpNum + 1), Fixups, STI); in getBDXAddr20Encoding() local
[all …]
H A DSystemZInstPrinter.cpp27 int64_t Disp, unsigned Index, in printAddress() argument
29 O << Disp; in printAddress()
211 uint64_t Disp = MI->getOperand(OpNum + 1).getImm(); in printBDLAddrOperand() local
213 O << Disp << '(' << Length; in printBDLAddrOperand()
224 uint64_t Disp = MI->getOperand(OpNum + 1).getImm(); in printBDRAddrOperand() local
226 O << Disp << "("; in printBDRAddrOperand()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp60 int64_t Disp; member
65 : Form(form), DR(dr), Base(), Disp(0), Index(), in SystemZAddressingMode()
91 errs() << " Disp " << Disp; in dump()
159 SDValue &Base, SDValue &Disp) const;
161 SDValue &Base, SDValue &Disp, SDValue &Index) const;
167 SDValue &Base, SDValue &Disp) const;
173 SDValue &Base, SDValue &Disp) const;
180 SDValue &Base, SDValue &Disp, SDValue &Index) const;
192 bool selectBDAddr12Only(SDValue Addr, SDValue &Base, SDValue &Disp) const { in selectBDAddr12Only()
193 return selectBDAddr(SystemZAddressingMode::Disp12Only, Addr, Base, Disp); in selectBDAddr12Only()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/PowerPC/Disassembler/
H A DPPCDisassembler.cpp232 uint64_t Disp = Imm & 0xFFFF; in decodeMemRIOperands() local
256 Inst.addOperand(MCOperand::createImm(SignExtend64<16>(Disp))); in decodeMemRIOperands()
267 uint64_t Disp = Imm & 0x3FFF; in decodeMemRIXOperands() local
277 Inst.addOperand(MCOperand::createImm(SignExtend64<16>(Disp << 2))); in decodeMemRIXOperands()
290 const int64_t Disp = SignExtend64<7>((Imm & 0x3F) + 64) * 8; in decodeMemRIHashOperands() local
294 Inst.addOperand(MCOperand::createImm(Disp)); in decodeMemRIHashOperands()
305 uint64_t Disp = Imm & 0xFFF; in decodeMemRIX16Operands() local
309 Inst.addOperand(MCOperand::createImm(SignExtend64<16>(Disp << 4))); in decodeMemRIX16Operands()
320 uint64_t Disp = Imm & 0x3FFFFFFFFUL; in decodeMemRI34PCRelOperands() local
324 Inst.addOperand(MCOperand::createImm(SignExtend64<34>(Disp))); in decodeMemRI34PCRelOperands()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/MSP430/
H A DMSP430ISelDAGToDAG.cpp47 int16_t Disp = 0; member
70 errs() << " Disp " << Disp << '\n'; in dump()
119 bool SelectAddr(SDValue Addr, SDValue &Base, SDValue &Disp);
145 AM.Disp += G->getOffset(); in MatchWrapper()
150 AM.Disp += CP->getOffset(); in MatchWrapper()
187 AM.Disp += Val; in MatchAddress()
230 AM.Disp += Offset; in MatchAddress()
245 SDValue &Base, SDValue &Disp) { in SelectAddr() argument
262 Disp = CurDAG->getTargetGlobalAddress(AM.GV, SDLoc(N), in SelectAddr()
263 MVT::i16, AM.Disp, in SelectAddr()
[all …]
H A DMSP430AsmPrinter.cpp110 const MachineOperand &Disp = MI->getOperand(OpNum+1); in printSrcMemOperand() local
115 if (Disp.isImm() && Base.getReg() == MSP430::SR) in printSrcMemOperand()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86OptimizeLEAs.cpp85 const MachineOperand *Disp) in MemOpKey() argument
86 : Disp(Disp) { in MemOpKey()
103 return isSimilarDispOp(*Disp, *Other.Disp); in operator ==()
110 const MachineOperand *Disp; member in __anond5aed4620111::MemOpKey
136 assert(Val.Disp != PtrInfo::getEmptyKey() && "Cannot hash the empty key"); in getHashValue()
137 assert(Val.Disp != PtrInfo::getTombstoneKey() && in getHashValue()
147 switch (Val.Disp->getType()) { in getHashValue()
152 Hash = hash_combine(Hash, Val.Disp->getIndex()); in getHashValue()
155 Hash = hash_combine(Hash, Val.Disp->getSymbolName()); in getHashValue()
158 Hash = hash_combine(Hash, Val.Disp->getGlobal()); in getHashValue()
[all …]
H A DX86InstrBuilder.h55 int Disp; member
60 : BaseType(RegBase), Scale(1), IndexReg(0), Disp(0), GV(nullptr), in X86AddressMode()
81 MO.push_back(MachineOperand::CreateGA(GV, Disp, GVOpFlags)); in getFullAddress()
83 MO.push_back(MachineOperand::CreateImm(Disp)); in getFullAddress()
114 AM.Disp = Op3.getImm(); in getAddressFromInstr()
185 MIB.addGlobalAddress(AM.GV, AM.Disp, AM.GVOpFlags); in addFullAddress()
187 MIB.addImm(AM.Disp); in addFullAddress()
H A DX86ISelDAGToDAG.cpp70 int32_t Disp; member
83 : BaseType(RegBase), Base_FrameIndex(0), Scale(1), IndexReg(), Disp(0), in X86ISelAddressMode()
129 dbgs() << " Disp " << Disp << '\n' in dump()
221 SDValue &Scale, SDValue &Index, SDValue &Disp,
225 SDValue &Index, SDValue &Disp, SDValue &Segment);
228 SDValue &Scale, SDValue &Index, SDValue &Disp,
231 SDValue &Scale, SDValue &Index, SDValue &Disp,
234 SDValue &Scale, SDValue &Index, SDValue &Disp,
240 SDValue &Index, SDValue &Disp,
246 SDValue &Index, SDValue &Disp, in tryFoldLoad() argument
[all …]
H A DX86FixupLEAs.cpp375 const MachineOperand &Disp = MI.getOperand(1 + X86::AddrDisp); in optTwoAddrLEA() local
378 if (Segment.getReg() != 0 || !Disp.isImm() || Scale.getImm() > 1 || in optTwoAddrLEA()
403 if (BaseReg != 0 && IndexReg != 0 && Disp.getImm() == 0 && in optTwoAddrLEA()
426 if (OptIncDec && (Disp.getImm() == 1 || Disp.getImm() == -1)) { in optTwoAddrLEA()
427 bool IsINC = Disp.getImm() == 1; in optTwoAddrLEA()
439 unsigned NewOpcode = getADDriFromLEA(MI.getOpcode(), Disp); in optTwoAddrLEA()
443 .addReg(BaseReg).addImm(Disp.getImm()) in optTwoAddrLEA()
447 .addReg(BaseReg).addImm(Disp.getImm()); in optTwoAddrLEA()
H A DX86ExpandPseudo.cpp463 int64_t Disp = MBBI->getOperand(1 + X86::AddrDisp).getImm(); in ExpandMI() local
464 assert(Disp >= 0 && Disp <= INT32_MAX - 2 && "Unexpected displacement"); in ExpandMI()
478 MIBHi.addImm(Disp + 2); in ExpandMI()
497 int64_t Disp = MBBI->getOperand(X86::AddrDisp).getImm(); in ExpandMI() local
498 assert(Disp >= 0 && Disp <= INT32_MAX - 2 && "Unexpected displacement"); in ExpandMI()
510 MIBHi.addImm(Disp + 2); in ExpandMI()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/Disassembler/
H A DSystemZDisassembler.cpp294 uint64_t Disp = Field & 0xfff; in decodeBDAddr12Operand() local
297 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDAddr12Operand()
304 uint64_t Disp = ((Field << 12) & 0xff000) | ((Field >> 8) & 0xfff); in decodeBDAddr20Operand() local
307 Inst.addOperand(MCOperand::createImm(SignExtend64<20>(Disp))); in decodeBDAddr20Operand()
315 uint64_t Disp = Field & 0xfff; in decodeBDXAddr12Operand() local
318 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDXAddr12Operand()
327 uint64_t Disp = ((Field & 0xfff00) >> 8) | ((Field & 0xff) << 12); in decodeBDXAddr20Operand() local
330 Inst.addOperand(MCOperand::createImm(SignExtend64<20>(Disp))); in decodeBDXAddr20Operand()
339 uint64_t Disp = Field & 0xfff; in decodeBDLAddr12Len4Operand() local
342 Inst.addOperand(MCOperand::createImm(Disp)); in decodeBDLAddr12Len4Operand()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430InstPrinter.cpp71 const MCOperand &Disp = MI->getOperand(OpNo+1); in printSrcMemOperand() local
84 if (Disp.isExpr()) in printSrcMemOperand()
85 Disp.getExpr()->print(O, &MAI); in printSrcMemOperand()
87 assert(Disp.isImm() && "Expected immediate in displacement field"); in printSrcMemOperand()
88 O << Disp.getImm(); in printSrcMemOperand()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AVR/
H A DAVRISelDAGToDAG.cpp38 bool SelectAddr(SDNode *Op, SDValue N, SDValue &Base, SDValue &Disp);
65 SDValue &Disp) { in SelectAddr() argument
73 Disp = CurDAG->getTargetConstant(0, dl, MVT::i8); in SelectAddr()
100 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i16); in SelectAddr()
112 Disp = CurDAG->getTargetConstant(RHSC, dl, MVT::i8); in SelectAddr()
225 SDValue Base, Disp; in SelectInlineAsmMemoryOperand() local
227 if (SelectAddr(Op.getNode(), Op, Base, Disp)) { in SelectInlineAsmMemoryOperand()
229 OutOps.push_back(Disp); in SelectInlineAsmMemoryOperand()
260 SDValue Base, Disp; in SelectInlineAsmMemoryOperand() local
279 Disp = CurDAG->getTargetConstant(ImmNode->getAPIntValue().getZExtValue(), dl, MVT::i8); in SelectInlineAsmMemoryOperand()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DMachineInstrBuilder.h284 const MachineInstrBuilder &addDisp(const MachineOperand &Disp, int64_t off,
291 TargetFlags = Disp.getTargetFlags();
293 switch (Disp.getType()) {
297 return addImm(Disp.getImm() + off);
299 return addConstantPoolIndex(Disp.getIndex(), Disp.getOffset() + off,
302 return addGlobalAddress(Disp.getGlobal(), Disp.getOffset() + off,
305 return addBlockAddress(Disp.getBlockAddress(), Disp.getOffset() + off,
309 return addJumpTableIndex(Disp.getIndex(), TargetFlags);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MCCodeEmitter.cpp68 void emitImmediate(const MCOperand &Disp, SMLoc Loc, unsigned ImmSize,
385 const MCOperand &Disp = MI.getOperand(Op + X86::AddrDisp); in emitMemModRMByte() local
404 if (!(Disp.isExpr() && isa<MCSymbolRefExpr>(Disp.getExpr()))) in emitMemModRMByte()
452 int ImmSize = !Disp.isImm() && X86II::hasImm(TSFlags) in emitMemModRMByte()
456 emitImmediate(Disp, MI.getLoc(), 4, MCFixupKind(FixupKind), StartByte, OS, in emitMemModRMByte()
500 if (Disp.isImm() && isInt<8>(Disp.getImm())) { in emitMemModRMByte()
501 if (Disp.getImm() == 0 && RMfield != 6) { in emitMemModRMByte()
508 emitImmediate(Disp, MI.getLoc(), 1, FK_Data_1, StartByte, OS, Fixups); in emitMemModRMByte()
520 emitImmediate(Disp, MI.getLoc(), 2, FK_Data_2, StartByte, OS, Fixups); in emitMemModRMByte()
547 emitImmediate(Disp, MI.getLoc(), 4, FK_Data_4, StartByte, OS, Fixups); in emitMemModRMByte()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/AsmParser/
H A DX86Operand.h59 const MCExpr *Disp; member
141 if (Mem.Disp) in print()
142 PrintImmValue(Mem.Disp, ",Disp="); in print()
176 return Mem.Disp; in getMemDisp()
664 CreateMem(unsigned ModeSize, const MCExpr *Disp, SMLoc StartLoc, SMLoc EndLoc,
669 Res->Mem.Disp = Disp;
685 CreateMem(unsigned ModeSize, unsigned SegReg, const MCExpr *Disp,
701 Res->Mem.Disp = Disp;
H A DX86AsmParser.cpp1115 bool ParseMemOperand(unsigned SegReg, const MCExpr *Disp, SMLoc StartLoc,
1121 bool CreateMemForMSInlineAsm(unsigned SegReg, const MCExpr *Disp,
1582 const MCExpr *Disp = MCConstantExpr::create(0, getContext()); in DefaultMemSIOperand() local
1583 return X86Operand::CreateMem(getPointerWidth(), /*SegReg=*/0, Disp, in DefaultMemSIOperand()
1591 const MCExpr *Disp = MCConstantExpr::create(0, getContext()); in DefaultMemDIOperand() local
1592 return X86Operand::CreateMem(getPointerWidth(), /*SegReg=*/0, Disp, in DefaultMemDIOperand()
1727 unsigned SegReg, const MCExpr *Disp, unsigned BaseReg, unsigned IndexReg, in CreateMemForMSInlineAsm() argument
1741 Operands.push_back(X86Operand::CreateMem(getPointerWidth(), Disp, Start, in CreateMemForMSInlineAsm()
1762 X86Operand::CreateMem(getPointerWidth(), Disp, Start, End)); in CreateMemForMSInlineAsm()
1770 getPointerWidth(), SegReg, Disp, BaseReg, IndexReg, Scale, Start, End, in CreateMemForMSInlineAsm()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/AsmParser/
H A DSystemZAsmParser.cpp119 const MCExpr *Disp; member
185 const MCExpr *Disp, unsigned Index, const MCExpr *LengthImm, in createMem() argument
192 Op->Mem.Disp = Disp; in createMem()
267 return isMem(MemKind, RegKind) && inRange(Mem.Disp, 0, 0xfff); in isMemDisp12()
270 return isMem(MemKind, RegKind) && inRange(Mem.Disp, -524288, 524287); in isMemDisp20()
307 addExpr(Inst, Mem.Disp); in addBDAddrOperands()
313 addExpr(Inst, Mem.Disp); in addBDXAddrOperands()
320 addExpr(Inst, Mem.Disp); in addBDLAddrOperands()
327 addExpr(Inst, Mem.Disp); in addBDRAddrOperands()
334 addExpr(Inst, Mem.Disp); in addBDVAddrOperands()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DFileSystem.h962 CreationDisposition Disp, FileAccess Access,
979 Expected<file_t> openNativeFile(const Twine &Name, CreationDisposition Disp,
1043 CreationDisposition Disp = CD_CreateAlways,
1045 return openFile(Name, ResultFD, Disp, FA_Write, Flags, Mode);
1062 CreationDisposition Disp,
1065 return openNativeFile(Name, Disp, FA_Write, Flags, Mode);
1084 CreationDisposition Disp,
1087 return openFile(Name, ResultFD, Disp, FA_Write | FA_Read, Flags, Mode);
1104 CreationDisposition Disp,
1107 return openNativeFile(Name, Disp, FA_Write | FA_Read, Flags, Mode);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A Draw_ostream.cpp568 sys::fs::CreationDisposition Disp, sys::fs::FileAccess Access, in getFD() argument
584 EC = sys::fs::openFileForReadWrite(Filename, FD, Disp, Flags); in getFD()
586 EC = sys::fs::openFileForWrite(Filename, FD, Disp, Flags); in getFD()
598 sys::fs::CreationDisposition Disp) in raw_fd_ostream() argument
599 : raw_fd_ostream(Filename, EC, Disp, sys::fs::FA_Write, sys::fs::OF_None) {} in raw_fd_ostream()
612 sys::fs::CreationDisposition Disp, in raw_fd_ostream() argument
615 : raw_fd_ostream(getFD(Filename, EC, Disp, Access, Flags), true) {} in raw_fd_ostream()

123