Lines Matching refs:loc

47                      const uint8_t *loc) const override;
48 void relocate(uint8_t *loc, const Relocation &rel,
56 const uint8_t *loc) const { in getRelExpr()
66 static void writeLDI(uint8_t *loc, uint64_t val) { in writeLDI() argument
67 write16le(loc, (read16le(loc) & 0xf0f0) | (val & 0xf0) << 4 | (val & 0x0f)); in writeLDI()
70 void AVR::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate() argument
73 checkUInt(loc, val, 8, rel); in relocate()
74 *loc = val; in relocate()
80 write16le(loc, val & 0xffff); in relocate()
83 checkAlignment(loc, val, 2, rel); in relocate()
84 checkUInt(loc, val >> 1, 16, rel); in relocate()
85 write16le(loc, val >> 1); in relocate()
88 checkUInt(loc, val, 32, rel); in relocate()
89 write32le(loc, val); in relocate()
93 checkUInt(loc, val, 8, rel); in relocate()
94 writeLDI(loc, val & 0xff); in relocate()
98 writeLDI(loc, -val & 0xff); in relocate()
101 writeLDI(loc, val & 0xff); in relocate()
104 writeLDI(loc, (-val >> 8) & 0xff); in relocate()
107 writeLDI(loc, (val >> 8) & 0xff); in relocate()
110 writeLDI(loc, (-val >> 16) & 0xff); in relocate()
113 writeLDI(loc, (val >> 16) & 0xff); in relocate()
116 writeLDI(loc, (-val >> 24) & 0xff); in relocate()
119 writeLDI(loc, (val >> 24) & 0xff); in relocate()
123 checkAlignment(loc, val, 2, rel); in relocate()
124 writeLDI(loc, (val >> 1) & 0xff); in relocate()
127 checkAlignment(loc, val, 2, rel); in relocate()
128 writeLDI(loc, (val >> 9) & 0xff); in relocate()
131 checkAlignment(loc, val, 2, rel); in relocate()
132 writeLDI(loc, (val >> 17) & 0xff); in relocate()
136 checkAlignment(loc, val, 2, rel); in relocate()
137 writeLDI(loc, (-val >> 1) & 0xff); in relocate()
140 checkAlignment(loc, val, 2, rel); in relocate()
141 writeLDI(loc, (-val >> 9) & 0xff); in relocate()
144 checkAlignment(loc, val, 2, rel); in relocate()
145 writeLDI(loc, (-val >> 17) & 0xff); in relocate()
149 checkUInt(loc, val, 5, rel); in relocate()
150 write16le(loc, (read16le(loc) & 0xff07) | (val << 3)); in relocate()
153 checkUInt(loc, val, 6, rel); in relocate()
154 write16le(loc, (read16le(loc) & 0xf9f0) | (val & 0x30) << 5 | (val & 0x0f)); in relocate()
159 checkInt(loc, val, 7, rel); in relocate()
160 checkAlignment(loc, val, 2, rel); in relocate()
162 write16le(loc, (read16le(loc) & 0xfc07) | ((target & 0x7f) << 3)); in relocate()
166 checkAlignment(loc, val, 2, rel); in relocate()
168 write16le(loc, (read16le(loc) & 0xf000) | (target & 0xfff)); in relocate()
173 checkInt(loc, val, 6, rel); in relocate()
174 write16le(loc, (read16le(loc) & 0xd3f8) | (val & 0x20) << 8 | in relocate()
178 checkInt(loc, val, 6, rel); in relocate()
179 write16le(loc, (read16le(loc) & 0xff30) | (val & 0x30) << 2 | (val & 0x0F)); in relocate()
185 write16le(loc, read16le(loc) | ((hi >> 1) << 4) | (hi & 1)); in relocate()
186 write16le(loc + 2, lo); in relocate()
190 error(getErrorLocation(loc) + "unrecognized relocation " + in relocate()