Lines Matching refs:CmpSize
132 static bool ComputeCmp(size_t CmpSize, size_t CmpType, uint64_t Arg1, in ComputeCmp() argument
134 if (CmpSize == 8) return ComputeCmp<uint64_t, int64_t>(CmpType, Arg1, Arg2); in ComputeCmp()
135 if (CmpSize == 4) return ComputeCmp<uint32_t, int32_t>(CmpType, Arg1, Arg2); in ComputeCmp()
136 if (CmpSize == 2) return ComputeCmp<uint16_t, int16_t>(CmpType, Arg1, Arg2); in ComputeCmp()
137 if (CmpSize == 1) return ComputeCmp<uint8_t, int8_t>(CmpType, Arg1, Arg2); in ComputeCmp()
179 void DFSanCmpCallback(uintptr_t PC, size_t CmpSize, size_t CmpType,
184 void TraceCmpCallback(uintptr_t PC, size_t CmpSize, size_t CmpType,
237 void TraceState::DFSanCmpCallback(uintptr_t PC, size_t CmpSize, size_t CmpType, in DFSanCmpCallback() argument
246 bool Res = ComputeCmp(CmpSize, CmpType, Arg1, Arg2); in DFSanCmpCallback()
250 for (size_t Pos = LR.Beg; Pos + CmpSize <= LR.End; Pos++) { in DFSanCmpCallback()
251 Mutations.push_back({Pos, CmpSize, Data}); in DFSanCmpCallback()
252 Mutations.push_back({Pos, CmpSize, Data + 1}); in DFSanCmpCallback()
253 Mutations.push_back({Pos, CmpSize, Data - 1}); in DFSanCmpCallback()
256 if (CmpSize > LR.End - LR.Beg) in DFSanCmpCallback()
263 PC, CmpSize, CmpType, Arg1, Arg2, Res, L1, L2, Mutations.size()); in DFSanCmpCallback()
313 void TraceState::TraceCmpCallback(uintptr_t PC, size_t CmpSize, size_t CmpType, in TraceCmpCallback() argument
318 Printf("TraceCmp %zd/%zd: %p %zd %zd\n", CmpSize, CmpType, PC, Arg1, Arg2); in TraceCmpCallback()
319 Added += TryToAddDesiredData(Arg1, Arg2, CmpSize); in TraceCmpCallback()
320 Added += TryToAddDesiredData(Arg2, Arg1, CmpSize); in TraceCmpCallback()
321 if (!Added && CmpSize == 4 && IsTwoByteData(Arg1) && IsTwoByteData(Arg2)) { in TraceCmpCallback()
401 uint64_t CmpSize = (SizeAndType >> 32) / 8; in __dfsw___sanitizer_cov_trace_cmp() local
403 TS->DFSanCmpCallback(PC, CmpSize, Type, Arg1, Arg2, L1, L2); in __dfsw___sanitizer_cov_trace_cmp()
507 uint64_t CmpSize = (SizeAndType >> 32) / 8; in __sanitizer_cov_trace_cmp() local
509 TS->TraceCmpCallback(PC, CmpSize, Type, Arg1, Arg2); in __sanitizer_cov_trace_cmp()