Home
last modified time | relevance | path

Searched refs:cmp (Results 1 – 25 of 53) sorted by relevance

123

/art/dex2oat/dex/
Ddex_to_dex_decompiler_test.cc73 int cmp = memcmp(original_dex_file->Begin(), in RunTest() local
76 ASSERT_EQ(0, cmp); in RunTest()
81 cmp = memcmp(original_dex_file->Begin(), updated_dex_file->Begin(), updated_dex_file->Size()); in RunTest()
82 ASSERT_NE(0, cmp); in RunTest()
102 cmp = memcmp(original_dex_file->Begin(), updated_dex_file->Begin(), updated_dex_file->Size()); in RunTest()
103 ASSERT_EQ(0, cmp); in RunTest()
/art/libdexfile/dex/
Dstring_reference_test.cc48 StringReferenceValueComparator cmp; in TEST() local
49 EXPECT_TRUE(cmp(sr1, sr2)); // "String1" < "String2" is true. in TEST()
50 EXPECT_FALSE(cmp(sr2, sr1)); // "String2" < "String1" is false. in TEST()
99 StringReferenceValueComparator cmp; in TEST() local
104 EXPECT_EQ(expectedCmp12[index1][index2], cmp(sr1, sr2)) << index1 << " " << index2; in TEST()
105 EXPECT_EQ(expectedCmp21[index2][index1], cmp(sr2, sr1)) << index1 << " " << index2; in TEST()
/art/test/069-field-type/src/
DMain.java29 Comparable cmp = (Comparable) holder.mValue; in main() local
30 cmp.compareTo(cmp); in main()
/art/runtime/arch/x86/
Dmemcmp16_x86.S52 cmp $48, %ecx
95 cmp $0, %edx
97 cmp $2, %edx
99 cmp $4, %edx
101 cmp $6, %edx
103 cmp $8, %edx
105 cmp $10, %edx
107 cmp $12, %edx
113 cmp $80, %ecx
160 cmp $0, %ecx
[all …]
/art/runtime/interpreter/mterp/arm/
Darray.S19 cmp r0, #0 @ null array object?
23 cmp r1, r3 @ compare unsigned index, length
56 cmp r1, #0
79 cmp r0, #0 @ null array object?
83 cmp r1, r3 @ compare unsigned index, length
111 cmp r0, #0 @ null array object?
115 cmp r1, r3 @ compare unsigned index, length
142 cmp r0, #0
164 cmp r0, #0 @ null array object?
168 cmp r1, r3 @ compare unsigned index, length
[all …]
Dinvoke.S14 cmp r0, #0
18 cmp r0, #0
37 cmp r0, #0
41 cmp r0, #0
Dobject.S12 cmp r0, #0
31 cmp r0, #0
119 cmp r3, #0
156 cmp r3, #0 @ check object for null
184 cmp r1, #0 @ exception pending?
221 cmp r0, #0
234 cmp r3, #0 @ check object for null
257 cmp r2, #0 @ check object for null
276 cmp r0, #0
Dcontrol_flow.S14 cmp r0, r3 @ compare (vA, vB)
16 cmp rPROFILE, #JIT_CHECK_OSR @ possible OSR re-entry?
33 cmp r0, #0 @ compare (vA, 0)
35 cmp rPROFILE, #JIT_CHECK_OSR @ possible OSR re-entry?
206 cmp r1, #0 @ null object?
Dfloating_point.S339 cmp r2, r3 @ MINLONG < x > MAXLONG?
344 cmp r2, r3
380 cmp r2, #0xbe @ MININT < x > MAXINT?
384 cmp r2, #0xff @ NaN or infinity?
Dmain.S540 cmp r0, #0 @ Exception pending?
552 cmp r0, #0
560 cmp r0, #0
593 cmp rINST, #0
735 cmp rPROFILE, #0
Darithmetic.S25 cmp r1, #0 @ is second operand zero?
58 cmp r1, #0 @ is second operand zero?
89 cmp r1, #0 @ is second operand zero?
125 @cmp r1, #0 @ is second operand zero?
350 cmp r0, r2
378 cmp r1, #0 @ is second operand zero?
407 cmp r1, #0 @ is second operand zero?
437 cmp r1, #0 @ is second operand zero?
467 @cmp r1, #0 @ is second operand zero?
633 cmp r1, #0 @ is second operand zero?
[all …]
Dother.S14 cmp r0, #0 @ fail?
88 cmp r0, #0 @ fail?
159 cmp r0, #0
163 cmp r0, #0
182 cmp r0, #0 @ failed?
186 cmp r0, #0
/art/runtime/arch/x86_64/
Dmemcmp16_x86_64.S48 cmp $79, %rdx
71 cmp $128, %rdx
95 cmp $32, %rdx
118 cmp $512, %rdx
120 cmp $256, %rdx
168 cmp $64, %rdx
171 cmp $32, %rdx
276 cmp $128, %rdx
279 cmp $64, %rdx
282 cmp $32, %rdx
[all …]
/art/compiler/optimizing/
Dbounds_check_elimination_test.cc82 HInstruction* cmp = new (GetAllocator()) HGreaterThanOrEqual(parameter2, constant_0); in TEST_F() local
83 HIf* if_inst = new (GetAllocator()) HIf(cmp); in TEST_F()
84 block1->AddInstruction(cmp); in TEST_F()
105 cmp = new (GetAllocator()) HLessThan(parameter2, array_length); in TEST_F()
106 if_inst = new (GetAllocator()) HIf(cmp); in TEST_F()
109 block3->AddInstruction(cmp); in TEST_F()
180 HInstruction* cmp = new (GetAllocator()) HLessThanOrEqual(parameter2, constant_0); in TEST_F() local
181 HIf* if_inst = new (GetAllocator()) HIf(cmp); in TEST_F()
182 block1->AddInstruction(cmp); in TEST_F()
247 HInstruction* cmp = new (GetAllocator()) HGreaterThanOrEqual(parameter2, array_length); in TEST_F() local
[all …]
Dinduction_var_analysis.cc100 IfCondition cmp, in IsGuardedBy() argument
131 return cmp == other_cmp; in IsGuardedBy()
133 switch (cmp) { in IsGuardedBy()
138 default: LOG(FATAL) << "unexpected cmp: " << cmp; in IsGuardedBy()
925 IfCondition cmp) { in VisitCondition() argument
928 switch (cmp) { in VisitCondition()
951 if (cmp == kCondNE && RewriteBreakLoop(loop, body, stride_value, type)) { in VisitCondition()
952 cmp = stride_value > 0 ? kCondLE : kCondGE; in VisitCondition()
957 if (cmp == kCondNE && ((stride_value == +1 && IsTaken(lower_expr, upper_expr, kCondLE)) || in VisitCondition()
959 cmp = stride_value > 0 ? kCondLT : kCondGT; in VisitCondition()
[all …]
Dinduction_var_analysis.h209 IfCondition cmp);
216 IfCondition cmp);
217 bool IsTaken(InductionInfo* lower_expr, InductionInfo* upper_expr, IfCondition cmp);
221 IfCondition cmp);
226 IfCondition cmp);
Dinstruction_simplifier.cc900 static HInstruction* AllowInMinMax(IfCondition cmp, in AllowInMinMax() argument
906 (((cmp == kCondLT || cmp == kCondLE) && c->IsMax()) || in AllowInMinMax()
907 ((cmp == kCondGT || cmp == kCondGE) && c->IsMin()))) { in AllowInMinMax()
911 bool is_max = (cmp == kCondLT || cmp == kCondLE); in AllowInMinMax()
959 IfCondition cmp = condition->AsCondition()->GetCondition(); in VisitSelect() local
972 HInstruction* new_a = AllowInMinMax(cmp, a, b, true_value); in VisitSelect()
977 if ((cmp == kCondLT || cmp == kCondLE || cmp == kCondGT || cmp == kCondGE) && in VisitSelect()
982 bool is_min = (cmp == kCondLT || cmp == kCondLE) == (a == true_value); in VisitSelect()
984 } else if (((cmp == kCondLT || cmp == kCondLE) && true_value->IsNeg()) || in VisitSelect()
985 ((cmp == kCondGT || cmp == kCondGE) && false_value->IsNeg())) { in VisitSelect()
[all …]
/art/runtime/interpreter/mterp/arm64/
Dcontrol_flow.S14 cmp w2, w3 // compare (vA, vB)
16 cmp wPROFILE, #JIT_CHECK_OSR // possible OSR re-entry?
34 cmp w2, #0 // compare (vA, 0)
37 cmp wPROFILE, #JIT_CHECK_OSR // possible OSR re-entry?
Darray.S22 cmp w1, w3 // compare unsigned index, length
79 cmp w1, w3 // compare unsigned index, length
108 cmp w1, w3 // compare unsigned index, length
158 cmp w1, w3 // compare unsigned index, length
/art/runtime/arch/arm64/
Dquick_entrypoints_arm64.S666 cmp w10, #'V'
670 cmp w10, #'D'
674 cmp w10, #'F'
757 cmp w17, #'F' // is this a float?
760 cmp x15, # 8*12 // Skip this load if all registers full.
767 cmp w17, #'D' // is this a double?
770 cmp x15, # 8*12 // Skip this load if all registers full.
777 cmp w17, #'J' // is this a long?
780 cmp x8, # 6*12 // Skip this load if all registers full.
787 cmp x8, # 6*12 // Skip this load if all registers full.
[all …]
/art/compiler/utils/
Dintrusive_forward_list.h327 void merge(IntrusiveForwardList& other, Compare cmp) { in merge() argument
333 if (cmp(*other_current, *current)) { in merge()
347 void merge(IntrusiveForwardList&& other, Compare cmp) { in merge() argument
348 merge(other, cmp); // Use l-value overload. in merge()
354 void sort(Compare cmp) { in sort() argument
361 sort(cmp); in sort()
362 second_half.sort(cmp); in sort()
363 merge(second_half, cmp); in sort()
/art/runtime/arch/arm/
Dquick_entrypoints_arm.S637 cmp r4, #68 @ Test if result type char == 'D'.
639 cmp r4, #70 @ Test if result type char == 'F'.
916 cmp r3, ip @ value's type == array's component type - trivial assignability
1198 cmp r3, r12
1202 cmp r3, #ROSALLOC_MAX_THREAD_LOCAL_BRACKET_SIZE // Check if the size is for a thread
1323 cmp r3, r12 // Check if it fits.
1418 cmp r2, r12 // Check if the total_size fits.
1473 cmp r1, r2
1500 cmp r1, r2
1510 cmp r1, r2
[all …]
/art/test/800-smali/smali/
DCmpLong.smali16 cmp-long v0, v101, v4
/art/runtime/interpreter/mterp/mips64/
Dfloating_point.S88 cmp.eq.s f2, f0, f1
92 cmp.lt.s f2, f0, f1
97 cmp.lt.s f2, f1, f0
121 cmp.eq.d f2, f0, f1
125 cmp.lt.d f2, f0, f1
130 cmp.lt.d f2, f1, f0
/art/test/432-optimizing-cmp/smali/
Dcmp.smali7 cmp-long v0, v1, v3

123