Home | History | Annotate | Download | only in MCTargetDesc

Lines Matching refs:Value

71                   uint64_t Value, bool IsPCRel) const override;
74 bool fixupNeedsRelaxation(const MCFixup &Fixup, uint64_t Value,
126 static unsigned AdrImmBits(unsigned Value) {
127 unsigned lo2 = Value & 0x3;
128 unsigned hi19 = (Value & 0x1ffffc) >> 2;
132 static uint64_t adjustFixupValue(unsigned Kind, uint64_t Value) {
133 int64_t SignedValue = static_cast<int64_t>(Value);
139 report_fatal_error("fixup value out of range");
140 return AdrImmBits(Value & 0x1fffffULL);
142 return AdrImmBits((Value & 0x1fffff000ULL) >> 12);
147 report_fatal_error("fixup value out of range");
149 return (Value >> 2) & 0x7ffff;
153 if (Value >= 0x1000)
154 report_fatal_error("invalid imm12 fixup value");
155 return Value;
158 if (Value & 1 || Value >= 0x2000)
159 report_fatal_error("invalid imm12 fixup value");
160 return Value >> 1;
163 if (Value & 3 || Value >= 0x4000)
164 report_fatal_error("invalid imm12 fixup value");
165 return Value >> 2;
168 if (Value & 7 || Value >= 0x8000)
169 report_fatal_error("invalid imm12 fixup value");
170 return Value >> 3;
173 if (Value & 15 || Value >= 0x10000)
174 report_fatal_error("invalid imm12 fixup value");
175 return Value >> 4;
178 return Value;
182 report_fatal_error("fixup value out of range");
184 if (Value & 0x3)
186 return (Value >> 2) & 0x3fff;
191 report_fatal_error("fixup value out of range");
193 if (Value & 0x3)
195 return (Value >> 2) & 0x3ffffff;
200 return Value;
205 unsigned DataSize, uint64_t Value,
208 if (!Value)
211 // Apply any target-specific value adjustments.
212 Value = adjustFixupValue(Fixup.getKind(), Value);
214 // Shift the value into position.
215 Value <<= Info.TargetOffset;
221 // bits from the fixup value.
223 Data[Offset + i] |= uint8_t((Value >> (i * 8)) & 0xff);
231 uint64_t Value,
237 // Relax if the value is too big for a (signed) i8.
238 return int64_t(Value) != int64_t(int8_t(Value));
467 const MCValue &Target, uint64_t &Value,
471 uint64_t Value, bool IsPCRel) const override;
476 const MCFragment *DF, const MCValue &Target, uint64_t &Value,
511 unsigned DataSize, uint64_t Value,
516 Value = ByteSwap_32(unsigned(Value));
518 AArch64AsmBackend::applyFixup (Fixup, Data, DataSize, Value, IsPCRel);