Lines Matching refs:sad
18 * Tests for SAD (sum of absolute differences).
44 /// CHECK-DAG: <<SAD:d\d+>> VecSADAccumulate [<<Phi2>>,<<Load1>>,<<Load2>>] loop:<<Loop>> outer_loop:none
48 long sad = 0;
50 sad += Math.abs(x[i] - y[i]);
52 return sad;
69 // No ABS? No SAD!
75 long sad = 0;
79 sad += s >= p ? s - p : p - s;
81 return sad;
106 /// CHECK-DAG: <<SAD:d\d+>> VecSADAccumulate [<<Phi2>>,<<Load1>>,<<Load2>>] loop:<<Loop>> outer_loop:none
110 long sad = 0;
116 sad += m;
118 return sad;
143 /// CHECK-DAG: <<SAD:d\d+>> VecSADAccumulate [<<Phi2>>,<<Load1>>,<<Load2>>] loop:<<Loop>> outer_loop:none
147 long sad = 1; // starts at 1
149 sad += Math.abs(x[i] - y[i]);
151 return sad;