Home
last modified time | relevance | path

Searched full:addend (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOAArch64.h34 /// Extract the addend encoded in the instruction / memory location.
39 int64_t Addend = 0; in decodeAddend() local
84 Addend = *reinterpret_cast<support::ulittle32_t *>(LocalAddress); in decodeAddend()
86 Addend = *reinterpret_cast<support::ulittle64_t *>(LocalAddress); in decodeAddend()
95 // Get the 26 bit addend encoded in the branch instruction and sign-extend in decodeAddend()
98 Addend = (*p & 0x03FFFFFF) << 2; in decodeAddend()
99 Addend = SignExtend64(Addend, 28); in decodeAddend()
108 // Get the 21 bit addend encoded in the adrp instruction and sign-extend in decodeAddend()
111 Addend = ((*p & 0x60000000) >> 29) | ((*p & 0x01FFFFE0) >> 3) << 12; in decodeAddend()
112 Addend = SignExtend64(Addend, 33); in decodeAddend()
[all …]
DRuntimeDyldELFMips.cpp19 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation()
21 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
24 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
32 uint64_t Addend) { in evaluateRelocation() argument
36 Addend, RE.SymOffset, RE.SectionID); in evaluateRelocation()
111 int64_t Addend, uint64_t SymOffset, SID SectionID) { in evaluateMIPS64Relocation() argument
118 << format("%x", Type) << " Addend: 0x" in evaluateMIPS64Relocation()
119 << format("%llx", Addend) in evaluateMIPS64Relocation()
133 return Value + Addend; in evaluateMIPS64Relocation()
135 return ((Value + Addend) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation()
[all …]
DRuntimeDyldCOFFThumb.h80 // Determine the Addend used to adjust the relocation value. in processRelocationRef()
81 uint64_t Addend = 0; in processRelocationRef() local
90 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
102 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef()
126 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
133 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
146 getSymbolOffset(*Symbol) + Addend); in processRelocationRef()
152 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
162 getSymbolOffset(*Symbol) + Addend, true, 0); in processRelocationRef()
187 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend); in resolveRelocation()
[all …]
DRuntimeDyldCOFFX86_64.h45 void write32BitOffset(uint8_t *Target, int64_t Addend, uint64_t Delta) { in write32BitOffset() argument
46 uint64_t Result = Addend + Delta; in write32BitOffset()
78 // the symbol resides (RE.Addend provides additional information about the
98 uint64_t Result = Value + RE.Addend; in resolveRelocation()
115 write32BitOffset(Target, RE.Addend, Value - ImageBase); in resolveRelocation()
121 writeBytesUnaligned(Value + RE.Addend, Target, 8); in resolveRelocation()
133 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument
141 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
166 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
170 Addend = 0; in generateRelocationStub()
[all …]
DRuntimeDyldCOFFI386.h61 // Determine the Addend used to adjust the relocation value. in processRelocationRef()
62 uint64_t Addend = 0; in processRelocationRef() local
72 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
85 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef()
106 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
119 getSymbolOffset(*Symbol) + Addend); in processRelocationRef()
146 RE.Addend); in resolveRelocation()
160 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation()
176 Result = Result - Section.getLoadAddress() + RE.Addend - 4 - RE.Offset; in resolveRelocation()
200 assert(static_cast<uint64_t>(RE.Addend) <= UINT32_MAX && in resolveRelocation()
[all …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOAArch64.h34 /// Extract the addend encoded in the instruction / memory location.
39 int64_t Addend = 0; in decodeAddend() local
64 Addend = *reinterpret_cast<support::ulittle32_t *>(LocalAddress); in decodeAddend()
66 Addend = *reinterpret_cast<support::ulittle64_t *>(LocalAddress); in decodeAddend()
73 // Get the 26 bit addend encoded in the branch instruction and sign-extend in decodeAddend()
76 Addend = (*p & 0x03FFFFFF) << 2; in decodeAddend()
77 Addend = SignExtend64(Addend, 28); in decodeAddend()
86 // Get the 21 bit addend encoded in the adrp instruction and sign-extend in decodeAddend()
89 Addend = ((*p & 0x60000000) >> 29) | ((*p & 0x01FFFFE0) >> 3) << 12; in decodeAddend()
90 Addend = SignExtend64(Addend, 33); in decodeAddend()
[all …]
DRuntimeDyldCOFFThumb.h60 // Determine the Addend used to adjust the relocation value. in processRelocationRef()
61 uint64_t Addend = 0; in processRelocationRef() local
70 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
82 << " Addend " << Addend << "\n"); in processRelocationRef()
103 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
116 getSymbolOffset(*Symbol) + Addend); in processRelocationRef()
122 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
132 getSymbolOffset(*Symbol) + Addend, true, 0); in processRelocationRef()
156 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend); in resolveRelocation()
172 Sections[0].getLoadAddress() + RE.Addend; in resolveRelocation()
[all …]
DRuntimeDyldCOFFI386.h61 // Determine the Addend used to adjust the relocation value. in processRelocationRef()
62 uint64_t Addend = 0; in processRelocationRef() local
72 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
85 << " Addend " << Addend << "\n"); in processRelocationRef()
106 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
119 getSymbolOffset(*Symbol) + Addend); in processRelocationRef()
146 RE.Addend); in resolveRelocation()
162 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation()
180 Result = Result - Section.getLoadAddress() + RE.Addend - 4 - RE.Offset; in resolveRelocation()
205 assert(static_cast<int32_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
[all …]
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp228 uint32_t Type, int64_t Addend, in resolveX86_64Relocation() argument
236 Value + Addend; in resolveX86_64Relocation()
237 DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
243 Value += Addend; in resolveX86_64Relocation()
256 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
264 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
273 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
283 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument
287 Value + Addend; in resolveX86Relocation()
293 uint32_t RealOffset = Value + Addend - FinalAddress; in resolveX86Relocation()
[all …]
DRuntimeDyldImpl.h130 /// Addend - the relocation addend encoded in the instruction itself. Also
132 int64_t Addend; variable
152 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend) in RelocationEntry() argument
153 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
156 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
158 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
161 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
163 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
166 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
170 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
[all …]
DRuntimeDyldELF.h30 uint64_t Value, uint32_t Type, int64_t Addend,
34 uint64_t Value, uint32_t Type, int64_t Addend,
38 uint32_t Value, uint32_t Type, int32_t Addend);
41 uint64_t Value, uint32_t Type, int64_t Addend);
44 uint32_t Value, uint32_t Type, int32_t Addend);
47 uint32_t Value, uint32_t Type, int32_t Addend);
50 uint64_t Value, uint32_t Type, int64_t Addend);
53 uint64_t Value, uint32_t Type, int64_t Addend);
56 uint64_t Value, uint32_t Type, int64_t Addend);
59 uint64_t Value, uint32_t Type, int64_t Addend,
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp265 uint32_t Type, int64_t Addend, in resolveX86_64Relocation() argument
275 Value + Addend; in resolveX86_64Relocation()
276 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
282 Value += Addend; in resolveX86_64Relocation()
295 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
303 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
312 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
329 int64_t GOTOffset = Value - GOTBase + Addend; in resolveX86_64Relocation()
338 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument
342 Value + Addend; in resolveX86Relocation()
[all …]
DRuntimeDyldImpl.h130 /// Addend - the relocation addend encoded in the instruction itself. Also
132 int64_t Addend; variable
155 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend) in RelocationEntry() argument
156 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
159 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
161 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
165 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
167 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
170 RelocationEntry(unsigned id, uint64_t offset, uint32_t type, int64_t addend, in RelocationEntry() argument
174 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
[all …]
/external/llvm/include/llvm/Object/
DRelocVisitor.h268 // Ideally the Addend here will be the addend in the data for
284 int64_t Addend = getELFAddend(R); in visitELF_X86_64_64() local
285 return RelocToApply(Value + Addend, 8); in visitELF_X86_64_64()
288 int64_t Addend = getELFAddend(R); in visitELF_X86_64_PC32() local
290 return RelocToApply(Value + Addend - Address, 4); in visitELF_X86_64_PC32()
293 int64_t Addend = getELFAddend(R); in visitELF_X86_64_32() local
294 uint32_t Res = (Value + Addend) & 0xFFFFFFFF; in visitELF_X86_64_32()
298 int64_t Addend = getELFAddend(R); in visitELF_X86_64_32S() local
299 int32_t Res = (Value + Addend) & 0xFFFFFFFF; in visitELF_X86_64_32S()
305 int64_t Addend = getELFAddend(R); in visitELF_PPC64_ADDR32() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Analysis/BasicAA/
Dsequential-gep.ll5 define void @t1([8 x i32]* %p, i32 %addend, i32* %q) {
7 %add = add nsw nuw i32 %addend, %knownnonzero
8 %gep1 = getelementptr [8 x i32], [8 x i32]* %p, i32 2, i32 %addend
15 define void @t2([8 x i32]* %p, i32 %addend, i32* %q) {
17 %add = add nsw nuw i32 %addend, %knownnonzero
18 %gep1 = getelementptr [8 x i32], [8 x i32]* %p, i32 1, i32 %addend
25 define void @t3([8 x i32]* %p, i32 %addend, i32* %q) {
27 %add = add nsw nuw i32 %addend, %knownnonzero
35 define void @t4([8 x i32]* %p, i32 %addend, i32* %q) {
37 %add = add nsw nuw i32 %addend, %knownnonzero
[all …]
/external/llvm/test/Analysis/BasicAA/
Dsequential-gep.ll5 define void @t1([8 x i32]* %p, i32 %addend, i32* %q) {
7 %add = add nsw nuw i32 %addend, %knownnonzero
8 %gep1 = getelementptr [8 x i32], [8 x i32]* %p, i32 2, i32 %addend
15 define void @t2([8 x i32]* %p, i32 %addend, i32* %q) {
17 %add = add nsw nuw i32 %addend, %knownnonzero
18 %gep1 = getelementptr [8 x i32], [8 x i32]* %p, i32 1, i32 %addend
25 define void @t3([8 x i32]* %p, i32 %addend, i32* %q) {
27 %add = add nsw nuw i32 %addend, %knownnonzero
35 define void @t4([8 x i32]* %p, i32 %addend, i32* %q) {
37 %add = add nsw nuw i32 %addend, %knownnonzero
[all …]
/external/swiftshader/third_party/subzero/tests_lit/llvm2ice_tests/
Dvector-align.ll16 define internal <4 x i32> @test_add(i32 %addr_i, <4 x i32> %addend) {
20 %result = add <4 x i32> %addend, %loaded
33 define internal <4 x i32> @test_and(i32 %addr_i, <4 x i32> %addend) {
37 %result = and <4 x i32> %addend, %loaded
50 define internal <4 x i32> @test_or(i32 %addr_i, <4 x i32> %addend) {
54 %result = or <4 x i32> %addend, %loaded
67 define internal <4 x i32> @test_xor(i32 %addr_i, <4 x i32> %addend) {
71 %result = xor <4 x i32> %addend, %loaded
84 define internal <4 x i32> @test_sub(i32 %addr_i, <4 x i32> %addend) {
88 %result = sub <4 x i32> %addend, %loaded
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LICM/
Ddropped-tbaa.ll6 ; void add(double *restrict data, int *restrict addend) {
7 ; *data += *addend;
10 ; void foo(double *data, int *addend) {
12 ; *data += *addend;
13 ; add(data, addend);
16 ; We want to make sure the load of addend gets hoisted, independent of the second load
19 define void @foo(double* %data, i32* %addend) #0 {
21 ; CHECK-NEXT: [[TMP1:%.*]] = load i32, i32* [[ADDEND:%.*]], align 4, !tbaa !1
23 ; CHECK-NEXT: [[TMP2:%.*]] = load i32, i32* [[ADDEND]], align 4, !tbaa !1, !alias.scope !5, !noa…
44 %2 = load i32, i32* %addend, align 4, !tbaa !1
[all …]
/external/brotli/c/fuzz/
Ddecode_fuzzer.c13 size_t addend = 0; in LLVMFuzzerTestOneInput() local
15 addend = data[size - 1] & 7; in LLVMFuzzerTestOneInput()
26 const size_t total_out_limit = (addend == 0) ? (1 << 26) : (1 << 24); in LLVMFuzzerTestOneInput()
31 if (addend == 0) in LLVMFuzzerTestOneInput()
32 addend = size; in LLVMFuzzerTestOneInput()
33 /* Test both fast (addend == size) and slow (addend <= 7) decoding paths. */ in LLVMFuzzerTestOneInput()
35 size_t next_i = i + addend; in LLVMFuzzerTestOneInput()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Object/
Ddyn-rel-relocation.test20 // .word v2+4 # R_MIPS_32 target v2 addend 4
21 // .word v1 # R_MIPS_32 target v1 addend 0
35 // CHECK-NEXT: Addend: 0x0
41 // CHECK-NEXT: Addend: 0x0
47 // CHECK-NEXT: Addend: 0x0
57 // CHECK-NEXT: Addend: 0x0
63 // CHECK-NEXT: Addend: 0x0
69 // CHECK-NEXT: Addend: 0x0
Drelocation-executable.test12 // CHECK-NEXT: Addend: 0x0
20 // CHECK-NEXT: Addend: 0x0
26 // CHECK-NEXT: Addend: 0x0
35 // DYN-NEXT: Addend: 0x0
41 // DYN-NEXT: Addend: 0x0
47 // DYN-NEXT: Addend: 0x0
59 // DYN2-NEXT: Addend: 0x0
/external/llvm/test/Object/Mips/
Delf-mips64-rel.yaml22 # YAML-NEXT: Addend: 4
28 # YAML-NEXT: Addend: 8
69 Addend: 4
75 Addend: 8
79 Addend: 0
83 Addend: 0
87 Addend: 0
93 Addend: 0
/external/swiftshader/third_party/llvm-7.0/llvm/test/Object/Mips/
Delf-mips64-rel.yaml22 # YAML-NEXT: Addend: 4
28 # YAML-NEXT: Addend: 8
69 Addend: 4
75 Addend: 8
79 Addend: 0
83 Addend: 0
87 Addend: 0
93 Addend: 0
/external/llvm/test/Object/
Ddyn-rel-relocation.test20 // .word v2+4 # R_MIPS_32 target v2 addend 4
21 // .word v1 # R_MIPS_32 target v1 addend 0
35 // CHECK-NEXT: Addend: 0x0
41 // CHECK-NEXT: Addend: 0x0
47 // CHECK-NEXT: Addend: 0x0
57 // CHECK-NEXT: Addend: 0x0
63 // CHECK-NEXT: Addend: 0x0
69 // CHECK-NEXT: Addend: 0x0
Drelocation-executable.test12 // CHECK-NEXT: Addend: 0x0
20 // CHECK-NEXT: Addend: 0x0
26 // CHECK-NEXT: Addend: 0x0
35 // DYN-NEXT: Addend: 0x0
41 // DYN-NEXT: Addend: 0x0
47 // DYN-NEXT: Addend: 0x0
59 // DYN2-NEXT: Addend: 0x0

12345678910>>...14