Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 55) sorted by relevance

123

/art/test/549-checker-types-merge/src/
DMain.java44 private Object testMergeNullContant(boolean cond) { in testMergeNullContant() argument
45 return cond ? null : new Main(); in testMergeNullContant()
51 private Object testMergeClasses(boolean cond, ClassExtendsA a, ClassExtendsB b) { in testMergeClasses() argument
53 return cond ? a : b; in testMergeClasses()
59 private Object testMergeClasses(boolean cond, ClassExtendsA a, ClassSuper b) { in testMergeClasses() argument
61 return cond ? a : b; in testMergeClasses()
67 private Object testMergeClasses(boolean cond, ClassSuper a, ClassSuper b) { in testMergeClasses() argument
69 return cond ? a : b; in testMergeClasses()
75 private Object testMergeClasses(boolean cond, ClassOtherSuper a, ClassSuper b) { in testMergeClasses() argument
77 return cond ? a : b; in testMergeClasses()
[all …]
/art/test/540-checker-rtp-bug/src/
DMain.java37 public static Final testKeepCheckCast(Object o, boolean cond) { in testKeepCheckCast() argument
39 while (cond) { in testKeepCheckCast()
41 cond = false; in testKeepCheckCast()
55 public static void testKeepInstanceOf(Object o, boolean cond) { in testKeepInstanceOf() argument
57 while (cond) { in testKeepInstanceOf()
59 cond = false; in testKeepInstanceOf()
79 public static String testNoInline(Object o, boolean cond) { in testNoInline() argument
81 while (cond) { in testNoInline()
83 cond = false; in testNoInline()
/art/test/570-checker-select/src/
DMain.java39 public static int BoolCond_IntVarVar(boolean cond, int x, int y) { in BoolCond_IntVarVar() argument
44 return cond ? x : y; in BoolCond_IntVarVar()
65 public static int BoolCond_IntVarCst(boolean cond, int x) { in BoolCond_IntVarCst() argument
70 return cond ? x : 1; in BoolCond_IntVarCst()
91 public static int BoolCond_IntCstVar(boolean cond, int y) { in BoolCond_IntCstVar() argument
96 return cond ? 1 : y; in BoolCond_IntCstVar()
118 public static long BoolCond_LongVarVar(boolean cond, long x, long y) { in BoolCond_LongVarVar() argument
123 return cond ? x : y; in BoolCond_LongVarVar()
145 public static long BoolCond_LongVarCst(boolean cond, long x) { in BoolCond_LongVarCst() argument
150 return cond ? x : 1L; in BoolCond_LongVarCst()
[all …]
/art/test/476-checker-ctor-memory-barrier/src/
DMain.java30 public ClassWithFinals(boolean cond) { in ClassWithFinals() argument
103 public InheritFromClassWithFinals(boolean cond) { in InheritFromClassWithFinals() argument
104 super(cond); in InheritFromClassWithFinals()
149 public HaveFinalsAndInheritFromClassWithFinals(boolean cond) { in HaveFinalsAndInheritFromClassWithFinals() argument
150 super(cond); in HaveFinalsAndInheritFromClassWithFinals()
/art/test/557-checker-ref-equivalent/src/
DMain.java21 private void testRedundantPhiCycle(boolean cond) { in testRedundantPhiCycle() argument
24 if (cond) { in testRedundantPhiCycle()
33 private void testLoopPhisWithNullAndCrossUses(boolean cond) { in testLoopPhisWithNullAndCrossUses() argument
37 if (cond) { in testLoopPhisWithNullAndCrossUses()
/art/compiler/optimizing/
Dpc_relative_fixups_x86.cc104 void VisitEqual(HEqual* cond) override { in VisitEqual() argument
105 BinaryFP(cond); in VisitEqual()
108 void VisitNotEqual(HNotEqual* cond) override { in VisitNotEqual() argument
109 BinaryFP(cond); in VisitNotEqual()
112 void VisitLessThan(HLessThan* cond) override { in VisitLessThan() argument
113 BinaryFP(cond); in VisitLessThan()
116 void VisitLessThanOrEqual(HLessThanOrEqual* cond) override { in VisitLessThanOrEqual() argument
117 BinaryFP(cond); in VisitLessThanOrEqual()
120 void VisitGreaterThan(HGreaterThan* cond) override { in VisitGreaterThan() argument
121 BinaryFP(cond); in VisitGreaterThan()
[all …]
Dscheduler_arm.h112 bool CanGenerateTest(HCondition* cond);
113 void HandleGenerateConditionWithZero(IfCondition cond);
114 void HandleGenerateLongTestConstant(HCondition* cond);
115 void HandleGenerateLongTest(HCondition* cond);
117 void HandleGenerateTest(HCondition* cond);
118 void HandleGenerateConditionGeneric(HCondition* cond);
119 void HandleGenerateEqualLong(HCondition* cond);
120 void HandleGenerateConditionLong(HCondition* cond);
121 void HandleGenerateConditionIntegralOrNonPrimitive(HCondition* cond);
Dscheduler_arm.cc209 IfCondition cond = condition->GetCondition(); in HandleGenerateLongTestConstant() local
217 switch (cond) { in HandleGenerateLongTestConstant()
240 switch (cond) { in HandleGenerateLongTestConstant()
275 IfCondition cond = condition->GetCondition(); in HandleGenerateLongTest() local
277 switch (cond) { in HandleGenerateLongTest()
347 void SchedulingLatencyVisitorARM::HandleGenerateConditionGeneric(HCondition* cond) { in HandleGenerateConditionGeneric() argument
348 HandleGenerateTest(cond); in HandleGenerateConditionGeneric()
357 void SchedulingLatencyVisitorARM::HandleGenerateEqualLong(HCondition* cond) { in HandleGenerateEqualLong() argument
358 DCHECK_EQ(cond->GetLeft()->GetType(), DataType::Type::kInt64); in HandleGenerateEqualLong()
360 IfCondition condition = cond->GetCondition(); in HandleGenerateEqualLong()
[all …]
Ddead_code_elimination.cc165 HInstruction* cond = ifs->InputAt(0); in RemoveNonNullControlDependences() local
167 if (throws == ifs->IfTrueSuccessor() && cond->IsEqual()) { in RemoveNonNullControlDependences()
169 } else if (throws == ifs->IfFalseSuccessor() && cond->IsNotEqual()) { in RemoveNonNullControlDependences()
174 DCHECK(cond->IsEqual() || cond->IsNotEqual()); in RemoveNonNullControlDependences()
175 HInstruction* obj = cond->InputAt(1); in RemoveNonNullControlDependences()
177 obj = cond->InputAt(0); in RemoveNonNullControlDependences()
178 } else if (!cond->InputAt(0)->IsNullConstant()) { in RemoveNonNullControlDependences()
Dbounds_check_elimination.cc629 IfCondition cond, in HandleIfBetweenTwoMonotonicValueRanges() argument
649 if (cond == kCondLT) { in HandleIfBetweenTwoMonotonicValueRanges()
653 } else if (cond == kCondLE) { in HandleIfBetweenTwoMonotonicValueRanges()
655 } else if (cond == kCondGT) { in HandleIfBetweenTwoMonotonicValueRanges()
657 } else if (cond == kCondGE) { in HandleIfBetweenTwoMonotonicValueRanges()
692 void HandleIf(HIf* instruction, HInstruction* left, HInstruction* right, IfCondition cond) { in HandleIf() argument
730 HandleIfBetweenTwoMonotonicValueRanges(instruction, left, right, cond, in HandleIf()
745 if (cond == kCondLT || cond == kCondLE) { in HandleIf()
747 int32_t compensation = (cond == kCondLT) ? -1 : 0; // upper bound is inclusive in HandleIf()
759 int32_t compensation = (cond == kCondLE) ? 1 : 0; // lower bound is inclusive in HandleIf()
[all …]
Dcode_generator_mips.h298 void GenerateIntCompare(IfCondition cond, LocationSummary* locations);
302 bool MaterializeIntCompare(IfCondition cond,
305 void GenerateIntCompareAndBranch(IfCondition cond,
308 void GenerateLongCompare(IfCondition cond, LocationSummary* locations);
309 void GenerateLongCompareAndBranch(IfCondition cond,
312 void GenerateFpCompare(IfCondition cond,
319 bool MaterializeFpCompareR2(IfCondition cond,
327 bool MaterializeFpCompareR6(IfCondition cond,
332 void GenerateFpCompareAndBranch(IfCondition cond,
Dcode_generator_arm_vixl.cc948 inline vixl32::Condition ARMCondition(IfCondition cond) { in ARMCondition() argument
949 switch (cond) { in ARMCondition()
966 inline vixl32::Condition ARMUnsignedCondition(IfCondition cond) { in ARMUnsignedCondition() argument
967 switch (cond) { in ARMUnsignedCondition()
985 inline vixl32::Condition ARMFPCondition(IfCondition cond, bool gt_bias) { in ARMFPCondition() argument
990 switch (cond) { in ARMFPCondition()
1309 IfCondition cond = condition->GetCondition(); in GenerateLongTestConstant() local
1313 std::swap(cond, opposite); in GenerateLongTestConstant()
1324 int64_t value = AdjustConstantForCondition(Int64ConstantFrom(right), &cond, &opposite); in GenerateLongTestConstant()
1329 switch (cond) { in GenerateLongTestConstant()
[all …]
Dcode_generator_mips64.h301 void GenerateIntLongCompare(IfCondition cond, bool is64bit, LocationSummary* locations);
305 bool MaterializeIntLongCompare(IfCondition cond,
309 void GenerateIntLongCompareAndBranch(IfCondition cond,
313 void GenerateFpCompare(IfCondition cond,
320 bool MaterializeFpCompare(IfCondition cond,
325 void GenerateFpCompareAndBranch(IfCondition cond,
Dcodegen_test.cc698 for (int cond = kCondFirst; cond <= kCondLast; cond++) { in TEST_F() local
700 static_cast<IfCondition>(cond), i, j, DataType::Type::kInt32, target_config); in TEST_F()
711 for (int cond = kCondFirst; cond <= kCondLast; cond++) { in TEST_F() local
713 static_cast<IfCondition>(cond), i, j, DataType::Type::kInt64, target_config); in TEST_F()
Dbounds_check_elimination_test.cc362 IfCondition cond = kCondGE) { in BuildSSAGraph1() argument
395 if (cond == kCondGE) { in BuildSSAGraph1()
398 DCHECK(cond == kCondGT); in BuildSSAGraph1()
477 IfCondition cond = kCondLE) { in BuildSSAGraph2() argument
513 if (cond == kCondLE) { in BuildSSAGraph2()
516 DCHECK(cond == kCondLT); in BuildSSAGraph2()
587 IfCondition cond) { in BuildSSAGraph3() argument
622 if (cond == kCondGE) { in BuildSSAGraph3()
625 DCHECK(cond == kCondGT); in BuildSSAGraph3()
689 IfCondition cond = kCondGE) { in BuildSSAGraph4() argument
[all …]
/art/test/450-checker-types/src/
DMain.java34 public int $inline$h(boolean cond) { in $inline$h() argument
35 Super obj = (cond ? this : null); in $inline$h()
591 private void updateNodesInTheSameBlockAsPhi(boolean cond) { in updateNodesInTheSameBlockAsPhi() argument
593 if (cond) { in updateNodesInTheSameBlockAsPhi()
637 private SuperInterface getWiderType(boolean cond, Interface a, OtherInterface b) { in getWiderType() argument
638 return cond ? a : b; in getWiderType()
650 private void testInlinerWidensReturnType(boolean cond, Interface a, OtherInterface b) { in testInlinerWidensReturnType() argument
651 getWiderType(cond, a, b).superInterfaceMethod(); in testInlinerWidensReturnType()
681 public void testThisArgumentMoreSpecific(boolean cond) { in testThisArgumentMoreSpecific() argument
685 ((Super) obj).$inline$h(cond); in testThisArgumentMoreSpecific()
[all …]
/art/test/611-checker-simplify-if/src/
DMain.java230 boolean cond = false; in testSwitch()
234 cond = true; in testSwitch()
238 cond = true; in testSwitch()
241 cond = false; in testSwitch()
244 if (cond) { in testSwitch()
/art/test/112-double-math/src/
DMain.java18 public static double cond_neg_double(double value, boolean cond) { in cond_neg_double() argument
19 return cond ? -value : value; in cond_neg_double()
/art/runtime/interpreter/mterp/arm64/
Dfloating_point.S72 %def fcmp(wide="", r1="s1", r2="s2", cond="lt"):
91 cneg w0, w0, $cond
191 % fcmp(wide="_WIDE", r1="d1", r2="d2", cond="cc")
194 % fcmp(wide="", r1="s1", r2="s2", cond="cc")
197 % fcmp(wide="_WIDE", r1="d1", r2="d2", cond="lt")
200 % fcmp(wide="", r1="s1", r2="s2", cond="lt")
/art/test/441-checker-inliner/src/
DMain.java128 public static int InlineWithControlFlow(boolean cond) { in InlineWithControlFlow() argument
132 return (Integer) m.invoke(null, cond); in InlineWithControlFlow()
/art/compiler/utils/arm64/
Djni_macro_assembler_arm64.h179 void Jump(JNIMacroLabel* label, JNIMacroUnaryCondition cond, ManagedRegister test) override;
216 vixl::aarch64::Condition cond = vixl::aarch64::al);
227 vixl::aarch64::Condition cond = vixl::aarch64::al);
231 vixl::aarch64::Condition cond = vixl::aarch64::al);
Djni_macro_assembler_arm64.cc72 void Arm64JNIMacroAssembler::AddConstant(XRegister rd, int32_t value, Condition cond) { in AddConstant() argument
73 AddConstant(rd, rd, value, cond); in AddConstant()
79 Condition cond) { in AddConstant() argument
80 if ((cond == al) || (cond == nv)) { in AddConstant()
90 ___ Csel(reg_x(rd), temp, reg_x(rd), cond); in AddConstant()
195 void Arm64JNIMacroAssembler::LoadImmediate(XRegister dest, int32_t value, Condition cond) { in LoadImmediate() argument
196 if ((cond == al) || (cond == nv)) { in LoadImmediate()
206 ___ Csel(reg_x(dest), temp, reg_x(dest), cond); in LoadImmediate()
208 ___ Csel(reg_x(dest), reg_x(XZR), reg_x(dest), cond); in LoadImmediate()
/art/compiler/utils/arm/
Dassembler_arm_vixl.cc448 vixl32::Condition cond) { in AddConstantInIt() argument
451 ___ mov(cond, rd, rn); in AddConstantInIt()
453 ___ add(cond, rd, rn, value); in AddConstantInIt()
493 void ArmVIXLMacroAssembler::B(vixl32::Condition cond, vixl32::Label* label, bool is_far_target) { in B() argument
497 BPreferNear(cond, label); in B()
500 MacroAssembler::B(cond, label); in B()
/art/test/441-checker-inliner/smali/
DSmali.smali39 # if (cond) {
47 .param p0, "cond" # Z
/art/tools/veridex/
Dflow_analysis.cc149 #define IF_XX(cond, op) \ in GetBranchFlags() argument
150 case Instruction::IF_##cond: { \ in GetBranchFlags()
162 case Instruction::IF_##cond##Z: { \ in GetBranchFlags()
348 #define IF_XX(cond) \ in ProcessDexInstruction() argument
349 case Instruction::IF_##cond: break; \ in ProcessDexInstruction()
350 case Instruction::IF_##cond##Z: break in ProcessDexInstruction()

123