Lines Matching refs:Arg1
105 bool ComputeCmp(size_t CmpType, U Arg1, U Arg2) { in ComputeCmp() argument
107 case ICMP_EQ : return Arg1 == Arg2; in ComputeCmp()
108 case ICMP_NE : return Arg1 != Arg2; in ComputeCmp()
109 case ICMP_UGT: return Arg1 > Arg2; in ComputeCmp()
110 case ICMP_UGE: return Arg1 >= Arg2; in ComputeCmp()
111 case ICMP_ULT: return Arg1 < Arg2; in ComputeCmp()
112 case ICMP_ULE: return Arg1 <= Arg2; in ComputeCmp()
113 case ICMP_SGT: return (S)Arg1 > (S)Arg2; in ComputeCmp()
114 case ICMP_SGE: return (S)Arg1 >= (S)Arg2; in ComputeCmp()
115 case ICMP_SLT: return (S)Arg1 < (S)Arg2; in ComputeCmp()
116 case ICMP_SLE: return (S)Arg1 <= (S)Arg2; in ComputeCmp()
122 static bool ComputeCmp(size_t CmpSize, size_t CmpType, uint64_t Arg1, in ComputeCmp() argument
124 if (CmpSize == 8) return ComputeCmp<uint64_t, int64_t>(CmpType, Arg1, Arg2); in ComputeCmp()
125 if (CmpSize == 4) return ComputeCmp<uint32_t, int32_t>(CmpType, Arg1, Arg2); in ComputeCmp()
126 if (CmpSize == 2) return ComputeCmp<uint16_t, int16_t>(CmpType, Arg1, Arg2); in ComputeCmp()
127 if (CmpSize == 1) return ComputeCmp<uint8_t, int8_t>(CmpType, Arg1, Arg2); in ComputeCmp()
172 uint64_t Arg1, uint64_t Arg2, dfsan_label L1,
193 uint64_t Arg1, uint64_t Arg2, dfsan_label L1, in DFSanCmpCallback() argument
199 bool Res = ComputeCmp(CmpSize, CmpType, Arg1, Arg2); in DFSanCmpCallback()
203 if (!L1) CSI.CountedConstants[Arg1]++; in DFSanCmpCallback()
214 << " A1 " << Arg1 << " A2 " << Arg2 << " R " << Res in DFSanCmpCallback()
266 void __dfsw___sanitizer_cov_trace_cmp(uint64_t SizeAndType, uint64_t Arg1, in __dfsw___sanitizer_cov_trace_cmp() argument
273 DFSan->DFSanCmpCallback(PC, CmpSize, Type, Arg1, Arg2, L1, L2); in __dfsw___sanitizer_cov_trace_cmp()