/art/test/952-invoke-custom/util-src/transformer/ |
D | IndyTransformer.java | 129 private Object decodeConstant(int index, Constant constant) { in visitMethod() argument 130 if (constant.booleanValue().length == 1) { in visitMethod() 131 return constant.booleanValue()[0]; in visitMethod() 132 } else if (constant.byteValue().length == 1) { in visitMethod() 133 return constant.byteValue()[0]; in visitMethod() 134 } else if (constant.charValue().length == 1) { in visitMethod() 135 return constant.charValue()[0]; in visitMethod() 136 } else if (constant.shortValue().length == 1) { in visitMethod() 137 return constant.shortValue()[0]; in visitMethod() 138 } else if (constant.intValue().length == 1) { in visitMethod() [all …]
|
/art/test/436-shift-constant/ |
D | Android.bp | 3 // Build rules for ART run-test `436-shift-constant`. 16 name: "art-run-test-436-shift-constant", 21 ":art-run-test-436-shift-constant-expected-stdout", 22 ":art-run-test-436-shift-constant-expected-stderr", 28 name: "art-run-test-436-shift-constant-expected-stdout", 29 out: ["art-run-test-436-shift-constant-expected-stdout.txt"], 36 name: "art-run-test-436-shift-constant-expected-stderr", 37 out: ["art-run-test-436-shift-constant-expected-stderr.txt"],
|
/art/compiler/optimizing/ |
D | locations.cc | 65 HConstant* constant = instruction->AsConstantOrNull(); in RegisterOrInt32Constant() local 66 if (constant != nullptr) { in RegisterOrInt32Constant() 67 int64_t value = CodeGenerator::GetInt64ValueOf(constant); in RegisterOrInt32Constant() 69 return Location::ConstantLocation(constant); in RegisterOrInt32Constant() 76 HConstant* constant = instruction->AsConstantOrNull(); in FpuRegisterOrInt32Constant() local 77 if (constant != nullptr) { in FpuRegisterOrInt32Constant() 78 int64_t value = CodeGenerator::GetInt64ValueOf(constant); in FpuRegisterOrInt32Constant() 80 return Location::ConstantLocation(constant); in FpuRegisterOrInt32Constant()
|
D | common_arm64.h | 255 inline bool Arm64CanEncodeConstantAsImmediate(HConstant* constant, HInstruction* instr) { in Arm64CanEncodeConstantAsImmediate() argument 256 int64_t value = CodeGenerator::GetInt64ValueOf(constant); in Arm64CanEncodeConstantAsImmediate() 260 if (constant->IsLongConstant()) { in Arm64CanEncodeConstantAsImmediate() 262 } else if (constant->IsFloatConstant()) { in Arm64CanEncodeConstantAsImmediate() 263 return vixl::aarch64::Assembler::IsImmFP32(constant->AsFloatConstant()->GetValue()); in Arm64CanEncodeConstantAsImmediate() 264 } else if (constant->IsDoubleConstant()) { in Arm64CanEncodeConstantAsImmediate() 265 return vixl::aarch64::Assembler::IsImmFP64(constant->AsDoubleConstant()->GetValue()); in Arm64CanEncodeConstantAsImmediate() 274 if (constant->GetUses().HasExactlyOneElement()) { in Arm64CanEncodeConstantAsImmediate() 281 return constant->IsZeroBitPattern() || constant->IsOne() || constant->IsMinusOne(); in Arm64CanEncodeConstantAsImmediate() 286 if (constant->GetUses().HasExactlyOneElement()) { in Arm64CanEncodeConstantAsImmediate() [all …]
|
D | code_generator.h | 551 static int8_t GetInt8ValueOf(HConstant* constant) { in GetInt8ValueOf() argument 552 DCHECK(constant->IsIntConstant()); in GetInt8ValueOf() 553 return constant->AsIntConstant()->GetValue(); in GetInt8ValueOf() 556 static int16_t GetInt16ValueOf(HConstant* constant) { in GetInt16ValueOf() argument 557 DCHECK(constant->IsIntConstant()); in GetInt16ValueOf() 558 return constant->AsIntConstant()->GetValue(); in GetInt16ValueOf() 561 static int32_t GetInt32ValueOf(HConstant* constant) { in GetInt32ValueOf() argument 562 if (constant->IsIntConstant()) { in GetInt32ValueOf() 563 return constant->AsIntConstant()->GetValue(); in GetInt32ValueOf() 564 } else if (constant->IsNullConstant()) { in GetInt32ValueOf() [all …]
|
D | constant_folding.cc | 57 void PropagateValue(HBasicBlock* starting_block, HInstruction* variable, HConstant* constant); 128 HConstant* constant = inst->TryStaticEvaluation(); in VisitUnaryOperation() local 129 if (constant != nullptr) { in VisitUnaryOperation() 130 inst->ReplaceWith(constant); in VisitUnaryOperation() 198 HConstant* constant = inst->TryStaticEvaluation(); in VisitBinaryOperation() local 199 if (constant != nullptr) { in VisitBinaryOperation() 200 inst->ReplaceWith(constant); in VisitBinaryOperation() 221 HConstant* constant) { in PropagateValue() argument 231 starting_block->GetFirstInstruction(), constant, /* strictly_dominated= */ false); in PropagateValue() 289 HConstant* constant = left->IsConstant() ? left->AsConstant() : right->AsConstant(); in VisitIf() local [all …]
|
D | ssa_builder.cc | 605 HFloatConstant* SsaBuilder::GetFloatEquivalent(HIntConstant* constant) { in GetFloatEquivalent() argument 607 HFloatConstant* result = constant->GetNext()->AsFloatConstantOrNull(); in GetFloatEquivalent() 609 float value = bit_cast<float, int32_t>(constant->GetValue()); in GetFloatEquivalent() 611 constant->GetBlock()->InsertInstructionBefore(result, constant->GetNext()); in GetFloatEquivalent() 616 DCHECK_EQ((bit_cast<int32_t, float>(result->GetValue())), constant->GetValue()); in GetFloatEquivalent() 627 HDoubleConstant* SsaBuilder::GetDoubleEquivalent(HLongConstant* constant) { in GetDoubleEquivalent() argument 629 HDoubleConstant* result = constant->GetNext()->AsDoubleConstantOrNull(); in GetDoubleEquivalent() 631 double value = bit_cast<double, int64_t>(constant->GetValue()); in GetDoubleEquivalent() 633 constant->GetBlock()->InsertInstructionBefore(result, constant->GetNext()); in GetDoubleEquivalent() 638 DCHECK_EQ((bit_cast<int64_t, double>(result->GetValue())), constant->GetValue()); in GetDoubleEquivalent()
|
D | ssa_test.cc | 58 void VisitIntConstant(HIntConstant* constant) override { in VisitIntConstant() argument 59 PrintPreInstruction(constant); in VisitIntConstant() 60 str_ += constant->DebugName(); in VisitIntConstant() 62 PrintInt(constant->GetValue()); in VisitIntConstant() 63 PrintPostInstruction(constant); in VisitIntConstant()
|
/art/test/614-checker-dump-constant-location/ |
D | Android.bp | 3 // Build rules for ART run-test `614-checker-dump-constant-location`. 16 name: "art-run-test-614-checker-dump-constant-location", 21 ":art-run-test-614-checker-dump-constant-location-expected-stdout", 22 ":art-run-test-614-checker-dump-constant-location-expected-stderr", 31 name: "art-run-test-614-checker-dump-constant-location-expected-stdout", 32 out: ["art-run-test-614-checker-dump-constant-location-expected-stdout.txt"], 39 name: "art-run-test-614-checker-dump-constant-location-expected-stderr", 40 out: ["art-run-test-614-checker-dump-constant-location-expected-stderr.txt"],
|
/art/test/2269-checker-constant-folding-instrinsics/ |
D | Android.bp | 3 // Build rules for ART run-test `2269-checker-constant-folding-instrinsics`. 16 name: "art-run-test-2269-checker-constant-folding-instrinsics", 21 ":art-run-test-2269-checker-constant-folding-instrinsics-expected-stdout", 22 ":art-run-test-2269-checker-constant-folding-instrinsics-expected-stderr", 31 name: "art-run-test-2269-checker-constant-folding-instrinsics-expected-stdout", 32 out: ["art-run-test-2269-checker-constant-folding-instrinsics-expected-stdout.txt"], 39 name: "art-run-test-2269-checker-constant-folding-instrinsics-expected-stderr", 40 out: ["art-run-test-2269-checker-constant-folding-instrinsics-expected-stderr.txt"],
|
D | info.txt | 1 Tests we properly optimize intrinsics during constant folding
|
/art/test/2257-checker-constant-folding-before-codegen/ |
D | Android.bp | 3 // Build rules for ART run-test `2257-checker-constant-folding-before-codegen`. 16 name: "art-run-test-2257-checker-constant-folding-before-codegen", 21 ":art-run-test-2257-checker-constant-folding-before-codegen-expected-stdout", 22 ":art-run-test-2257-checker-constant-folding-before-codegen-expected-stderr", 31 name: "art-run-test-2257-checker-constant-folding-before-codegen-expected-stdout", 32 out: ["art-run-test-2257-checker-constant-folding-before-codegen-expected-stdout.txt"], 39 name: "art-run-test-2257-checker-constant-folding-before-codegen-expected-stderr", 40 out: ["art-run-test-2257-checker-constant-folding-before-codegen-expected-stderr.txt"],
|
D | info.txt | 1 Test the benefits of running constant folding after LSE.
|
/art/test/957-methodhandle-transforms/src/ |
D | Main.java | 554 MethodHandle constant = MethodHandles.constant(int.class, 56); in testConstant() local 555 int value = (int) constant.invoke(); in testConstant() 561 constant = MethodHandles.constant(int.class, (short) 52); in testConstant() 562 value = (int) constant.invoke(); in testConstant() 568 constant = MethodHandles.constant(int.class, (char) 'b'); in testConstant() 569 value = (int) constant.invoke(); in testConstant() 575 constant = MethodHandles.constant(int.class, (byte) 0x1); in testConstant() 576 value = (int) constant.invoke(); in testConstant() 584 MethodHandles.constant(int.class, false); in testConstant() 590 MethodHandles.constant(int.class, 0.1f); in testConstant() [all …]
|
/art/test/302-float-conversion/ |
D | info.txt | 1 Tests whether constant conversions of double values to long values are 3 should not overflow under constant conversions.
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/ |
D | Format11n.java | 53 public void setConst(Instruction insn, long constant) { in setConst() argument 54 insn.vregB = constant; in setConst()
|
D | Format21s.java | 54 public void setConst(Instruction insn, long constant) { in setConst() argument 55 insn.vregB = constant; in setConst()
|
D | Format31i.java | 54 public void setConst(Instruction insn, long constant) { in setConst() argument 55 insn.vregB = constant; in setConst()
|
D | Format21h.java | 54 public void setConst(Instruction insn, long constant) { in setConst() argument 55 insn.vregB = constant; in setConst()
|
D | Format22b.java | 55 public void setConst(Instruction insn, long constant) { in setConst() argument 56 insn.vregC = constant; in setConst()
|
D | Format22s.java | 54 public void setConst(Instruction insn, long constant) { in setConst() argument 55 insn.vregC = constant; in setConst()
|
D | Format51l.java | 57 public void setConst(Instruction insn, long constant) { in setConst() argument 58 insn.vregB = constant; in setConst()
|
/art/runtime/jit/ |
D | small_pattern_matcher.cc | 242 int32_t constant = -1; in TryMatch() local 248 constant = instruction.VRegB_11n(); in TryMatch() 249 if (constant != 0 && constant != 1) { in TryMatch() 256 constant = instruction.VRegB_21s(); in TryMatch() 257 if (constant != 0 && constant != 1) { in TryMatch() 265 if (constant == 0) { in TryMatch() 267 } else if (constant == 1) { in TryMatch()
|
/art/test/442-checker-constant-folding/ |
D | info.txt | 1 Tests constant folding in the optimizing compiler.
|
/art/test/2245-checker-smali-instance-of-comparison/ |
D | info.txt | 1 Smali test comparing instance-of (which returns 0 or 1) with a constant 2.
|