Lines Matching refs:Value
35 // Prepare value for the target space for it
36 static unsigned adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
60 Value &= 0xffff;
68 // address range. Forcing a signed division because Value can be negative.
69 Value = (int64_t)Value / 4;
70 // We now check if Value can be encoded as a 16-bit signed immediate.
71 if (!isInt<16>(Value) && Ctx) {
78 // Forcing a signed division because Value can be negative.
79 Value = (int64_t)Value / 4;
80 // We now check if Value can be encoded as a 19-bit signed immediate.
81 if (!isInt<19>(Value) && Ctx) {
90 Value >>= 2;
100 Value = ((Value + 0x8000) >> 16) & 0xffff;
104 Value = ((Value + 0x80008000LL) >> 32) & 0xffff;
108 Value = ((Value + 0x800080008000LL) >> 48) & 0xffff;
111 Value >>= 1;
114 Value -= 4;
115 // Forcing a signed division because Value can be negative.
116 Value = (int64_t) Value / 2;
117 // We now check if Value can be encoded as a 7-bit signed immediate.
118 if (!isInt<7>(Value) && Ctx) {
124 Value -= 2;
125 // Forcing a signed division because Value can be negative.
126 Value = (int64_t) Value / 2;
127 // We now check if Value can be encoded as a 10-bit signed immediate.
128 if (!isInt<10>(Value) && Ctx) {
134 Value -= 4;
135 // Forcing a signed division because Value can be negative.
136 Value = (int64_t)Value / 2;
137 // We now check if Value can be encoded as a 16-bit signed immediate.
138 if (!isInt<16>(Value) && Ctx) {
144 // Forcing a signed division because Value can be negative.
145 Value = (int64_t)Value / 8;
146 // We now check if Value can be encoded as a 18-bit signed immediate.
147 if (!isInt<18>(Value) && Ctx) {
154 if ((Value & 7) && Ctx) {
157 // Forcing a signed division because Value can be negative.
158 Value = (int64_t)Value / 8;
159 // We now check if Value can be encoded as a 18-bit signed immediate.
160 if (!isInt<18>(Value) && Ctx) {
166 // Forcing a signed division because Value can be negative.
167 Value = (int64_t) Value / 4;
168 // We now check if Value can be encoded as a 21-bit signed immediate.
169 if (!isInt<21>(Value) && Ctx) {
175 // Forcing a signed division because Value can be negative.
176 Value = (int64_t) Value / 4;
177 // We now check if Value can be encoded as a 26-bit signed immediate.
178 if (!isInt<26>(Value) && Ctx) {
184 // Forcing a signed division because Value can be negative.
185 Value = (int64_t)Value / 2;
186 // We now check if Value can be encoded as a 26-bit signed immediate.
187 if (!isInt<26>(Value) && Ctx) {
193 // Forcing a signed division because Value can be negative.
194 Value = (int64_t)Value / 2;
195 // We now check if Value can be encoded as a 21-bit signed immediate.
196 if (!isInt<21>(Value) && Ctx) {
203 return Value;
229 /// ApplyFixup - Apply the \p Value for given \p Fixup into the provided
233 unsigned DataSize, uint64_t Value,
236 Value = adjustFixupValue(Fixup, Value);
238 if (!Value)
264 // Grab current value, if any, from bits.
278 CurVal |= Value & Mask;
464 /// processFixupValue - Target hook to process the literal value of a fixup
471 uint64_t &Value,
473 // At this point we'll ignore the value returned by adjustFixupValue as
477 // The caller will also ignore any changes we make to Value
479 (void)adjustFixupValue(Fixup, Value, &Asm.getContext());