/external/deqp-deps/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_add_equation_instructions.cpp | 112 type->AsInteger()->width())) { in Apply() 138 vector->element_type()->AsInteger()->width()), in Apply() 141 FindOrCreateFloatType(type->AsInteger()->width()); in Apply() 176 vector->element_type()->AsInteger()) { in Apply() 187 } else if (const auto* int_type = operand_type->AsInteger()) { in Apply() 227 ->AsInteger() in Apply() 231 lhs_bit_width = lhs_type->AsInteger()->width(); in Apply() 305 if (type->AsInteger() || in GetIntegerInstructions() 306 (type->AsVector() && type->AsVector()->element_type()->AsInteger())) { in GetIntegerInstructions() 371 assert((type->AsInteger() || type->AsFloat()) && in RestrictToElementBitWidth() [all …]
|
D | transformation_equation_instruction.cpp | 127 if (!vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 132 ir_context, vector->element_type()->AsInteger()->width())) { in MaybeGetResultTypeId() 139 if (!type->AsInteger()) { in MaybeGetResultTypeId() 144 type->AsInteger()->width()); in MaybeGetResultTypeId() 170 if (const auto* int_type = vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 193 } else if (const auto* int_type = operand_type->AsInteger()) { in MaybeGetResultTypeId() 224 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId() 226 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId() 230 operand_type->AsInteger() in MaybeGetResultTypeId() 277 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId() [all …]
|
D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 62 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply() 168 constant->type()->AsInteger()->width(), in Apply() 169 constant->type()->AsInteger()->IsSigned(), num_iterations); in Apply() 173 constant->AsVectorConstant()->component_type()->AsInteger() && in Apply() 188 constant->AsVectorConstant()->component_type()->AsInteger()->width(); in Apply() 191 ->AsInteger() in Apply()
|
D | fuzzer_pass_add_image_sample_unused_components.cpp | 113 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 131 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 144 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 166 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
|
D | fuzzer_pass_obfuscate_constants.cpp | 180 assert(signed_int_constant_1->type()->AsInteger()->width() == in ObfuscateBoolConstantViaSignedIntConstantPair() 181 signed_int_constant_2->type()->AsInteger()->width() && in ObfuscateBoolConstantViaSignedIntConstantPair() 183 assert(signed_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair() 184 assert(signed_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair() 222 assert(unsigned_int_constant_1->type()->AsInteger()->width() == in ObfuscateBoolConstantViaUnsignedIntConstantPair() 223 unsigned_int_constant_2->type()->AsInteger()->width() && in ObfuscateBoolConstantViaUnsignedIntConstantPair() 225 assert(!unsigned_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair() 226 assert(!unsigned_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair() 328 assert(chosen_type->AsInteger() && in ObfuscateBoolConstant() 330 if (chosen_type->AsInteger()->IsSigned()) { in ObfuscateBoolConstant()
|
D | transformation_replace_add_sub_mul_with_carrying_extended.cpp | 89 operand_is_signed = operand_type->AsInteger()->IsSigned(); in Apply() 91 operand_is_signed = type->AsInteger()->IsSigned(); in Apply() 212 ? type->AsVector()->element_type()->AsInteger()->IsSigned() in IsInstructionSuitable() 213 : type->AsInteger()->IsSigned(); in IsInstructionSuitable()
|
D | transformation_replace_boolean_constant_with_constant_binary.cpp | 206 if (lhs_constant->type()->AsInteger()->IsSigned()) { in IsApplicable() 207 if (lhs_constant->type()->AsInteger()->width() == 32) { in IsApplicable() 214 assert(lhs_constant->type()->AsInteger()->width() == 64); in IsApplicable() 222 if (lhs_constant->type()->AsInteger()->width() == 32) { in IsApplicable() 229 assert(lhs_constant->type()->AsInteger()->width() == 64); in IsApplicable()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/fuzz/ |
D | fuzzer_pass_add_equation_instructions.cpp | 109 type->AsInteger()->width())) { in Apply() 135 vector->element_type()->AsInteger()->width()), in Apply() 138 FindOrCreateFloatType(type->AsInteger()->width()); in Apply() 173 vector->element_type()->AsInteger()) { in Apply() 184 } else if (const auto* int_type = operand_type->AsInteger()) { in Apply() 224 ->AsInteger() in Apply() 228 lhs_bit_width = lhs_type->AsInteger()->width(); in Apply() 302 if (type->AsInteger() || in GetIntegerInstructions() 303 (type->AsVector() && type->AsVector()->element_type()->AsInteger())) { in GetIntegerInstructions() 368 assert((type->AsInteger() || type->AsFloat()) && in RestrictToElementBitWidth() [all …]
|
D | transformation_equation_instruction.cpp | 131 if (!vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 136 ir_context, vector->element_type()->AsInteger()->width())) { in MaybeGetResultTypeId() 143 if (!type->AsInteger()) { in MaybeGetResultTypeId() 148 type->AsInteger()->width()); in MaybeGetResultTypeId() 174 if (const auto* int_type = vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 197 } else if (const auto* int_type = operand_type->AsInteger()) { in MaybeGetResultTypeId() 228 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId() 230 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId() 234 operand_type->AsInteger() in MaybeGetResultTypeId() 281 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId() [all …]
|
D | transformation_add_bit_instruction_synonym.cpp | 54 ->AsInteger() in IsApplicable() 127 auto operand_sign = operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 131 ->AsInteger() in IsInstructionSupported() 143 auto first_operand_sign = first_operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 150 auto second_operand_sign = second_operand_type->AsInteger()->IsSigned(); in IsInstructionSupported() 154 ->AsInteger() in IsInstructionSupported() 181 ->AsInteger() in GetRequiredFreshIdCount() 199 ->AsInteger() in AddOpBitwiseOrOpNotSynonym()
|
D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 59 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply() 165 constant->type()->AsInteger()->width(), in Apply() 166 constant->type()->AsInteger()->IsSigned(), num_iterations); in Apply() 170 constant->AsVectorConstant()->component_type()->AsInteger() && in Apply() 185 constant->AsVectorConstant()->component_type()->AsInteger()->width(); in Apply() 188 ->AsInteger() in Apply()
|
D | fuzzer_pass_add_image_sample_unused_components.cpp | 110 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 128 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 141 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 163 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
|
D | fuzzer_pass_obfuscate_constants.cpp | 178 assert(signed_int_constant_1->type()->AsInteger()->width() == in ObfuscateBoolConstantViaSignedIntConstantPair() 179 signed_int_constant_2->type()->AsInteger()->width() && in ObfuscateBoolConstantViaSignedIntConstantPair() 181 assert(signed_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair() 182 assert(signed_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair() 220 assert(unsigned_int_constant_1->type()->AsInteger()->width() == in ObfuscateBoolConstantViaUnsignedIntConstantPair() 221 unsigned_int_constant_2->type()->AsInteger()->width() && in ObfuscateBoolConstantViaUnsignedIntConstantPair() 223 assert(!unsigned_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair() 224 assert(!unsigned_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair() 326 assert(chosen_type->AsInteger() && in ObfuscateBoolConstant() 328 if (chosen_type->AsInteger()->IsSigned()) { in ObfuscateBoolConstant()
|
D | transformation_replace_add_sub_mul_with_carrying_extended.cpp | 88 operand_is_signed = operand_type->AsInteger()->IsSigned(); in Apply() 90 operand_is_signed = type->AsInteger()->IsSigned(); in Apply() 211 ? type->AsVector()->element_type()->AsInteger()->IsSigned() in IsInstructionSuitable() 212 : type->AsInteger()->IsSigned(); in IsInstructionSuitable()
|
D | transformation_replace_boolean_constant_with_constant_binary.cpp | 206 if (lhs_constant->type()->AsInteger()->IsSigned()) { in IsApplicable() 207 if (lhs_constant->type()->AsInteger()->width() == 32) { in IsApplicable() 214 assert(lhs_constant->type()->AsInteger()->width() == 64); in IsApplicable() 222 if (lhs_constant->type()->AsInteger()->width() == 32) { in IsApplicable() 229 assert(lhs_constant->type()->AsInteger()->width() == 64); in IsApplicable()
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_add_equation_instructions.cpp | 112 type->AsInteger()->width())) { in Apply() 138 vector->element_type()->AsInteger()->width()), in Apply() 141 FindOrCreateFloatType(type->AsInteger()->width()); in Apply() 176 vector->element_type()->AsInteger()) { in Apply() 187 } else if (const auto* int_type = operand_type->AsInteger()) { in Apply() 227 ->AsInteger() in Apply() 231 lhs_bit_width = lhs_type->AsInteger()->width(); in Apply() 305 if (type->AsInteger() || in GetIntegerInstructions() 306 (type->AsVector() && type->AsVector()->element_type()->AsInteger())) { in GetIntegerInstructions() 371 assert((type->AsInteger() || type->AsFloat()) && in RestrictToElementBitWidth() [all …]
|
D | transformation_equation_instruction.cpp | 127 if (!vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 132 ir_context, vector->element_type()->AsInteger()->width())) { in MaybeGetResultTypeId() 139 if (!type->AsInteger()) { in MaybeGetResultTypeId() 144 type->AsInteger()->width()); in MaybeGetResultTypeId() 170 if (const auto* int_type = vector->element_type()->AsInteger()) { in MaybeGetResultTypeId() 193 } else if (const auto* int_type = operand_type->AsInteger()) { in MaybeGetResultTypeId() 224 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId() 226 operand_type->AsVector()->element_type()->AsInteger()))) { in MaybeGetResultTypeId() 230 operand_type->AsInteger() in MaybeGetResultTypeId() 277 if (!(operand_type->AsInteger() || in MaybeGetResultTypeId() [all …]
|
D | fuzzer_pass_add_loops_to_create_int_constant_synonyms.cpp | 62 constant->AsVectorConstant()->component_type()->AsInteger())) { in Apply() 168 constant->type()->AsInteger()->width(), in Apply() 169 constant->type()->AsInteger()->IsSigned(), num_iterations); in Apply() 173 constant->AsVectorConstant()->component_type()->AsInteger() && in Apply() 188 constant->AsVectorConstant()->component_type()->AsInteger()->width(); in Apply() 191 ->AsInteger() in Apply()
|
D | fuzzer_pass_add_image_sample_unused_components.cpp | 113 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 131 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 144 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply() 166 coordinate_type->AsInteger() || coordinate_type->AsFloat() in Apply()
|
D | fuzzer_pass_obfuscate_constants.cpp | 180 assert(signed_int_constant_1->type()->AsInteger()->width() == in ObfuscateBoolConstantViaSignedIntConstantPair() 181 signed_int_constant_2->type()->AsInteger()->width() && in ObfuscateBoolConstantViaSignedIntConstantPair() 183 assert(signed_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair() 184 assert(signed_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaSignedIntConstantPair() 222 assert(unsigned_int_constant_1->type()->AsInteger()->width() == in ObfuscateBoolConstantViaUnsignedIntConstantPair() 223 unsigned_int_constant_2->type()->AsInteger()->width() && in ObfuscateBoolConstantViaUnsignedIntConstantPair() 225 assert(!unsigned_int_constant_1->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair() 226 assert(!unsigned_int_constant_2->type()->AsInteger()->IsSigned()); in ObfuscateBoolConstantViaUnsignedIntConstantPair() 328 assert(chosen_type->AsInteger() && in ObfuscateBoolConstant() 330 if (chosen_type->AsInteger()->IsSigned()) { in ObfuscateBoolConstant()
|
D | transformation_replace_add_sub_mul_with_carrying_extended.cpp | 89 operand_is_signed = operand_type->AsInteger()->IsSigned(); in Apply() 91 operand_is_signed = type->AsInteger()->IsSigned(); in Apply() 212 ? type->AsVector()->element_type()->AsInteger()->IsSigned() in IsInstructionSuitable() 213 : type->AsInteger()->IsSigned(); in IsInstructionSuitable()
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/opt/ |
D | constants.cpp | 59 assert(type()->AsInteger() != nullptr); in GetU32() 60 assert(type()->AsInteger()->width() == 32); in GetU32() 71 assert(type()->AsInteger() != nullptr); in GetU64() 72 assert(type()->AsInteger()->width() == 64); in GetU64() 83 assert(type()->AsInteger() != nullptr); in GetS32() 84 assert(type()->AsInteger()->width() == 32); in GetS32() 95 assert(type()->AsInteger() != nullptr); in GetS64() 96 assert(type()->AsInteger()->width() == 64); in GetS64() 107 const auto* int_type = type()->AsInteger(); in GetZeroExtendedValue() 126 const auto* int_type = type()->AsInteger(); in GetSignExtendedValue() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | constants.cpp | 59 assert(type()->AsInteger() != nullptr); in GetU32() 60 assert(type()->AsInteger()->width() == 32); in GetU32() 71 assert(type()->AsInteger() != nullptr); in GetU64() 72 assert(type()->AsInteger()->width() == 64); in GetU64() 83 assert(type()->AsInteger() != nullptr); in GetS32() 84 assert(type()->AsInteger()->width() == 32); in GetS32() 95 assert(type()->AsInteger() != nullptr); in GetS64() 96 assert(type()->AsInteger()->width() == 64); in GetS64() 107 const auto* int_type = type()->AsInteger(); in GetZeroExtendedValue() 126 const auto* int_type = type()->AsInteger(); in GetSignExtendedValue() [all …]
|
/external/deqp-deps/SPIRV-Tools/source/opt/ |
D | constants.cpp | 59 assert(type()->AsInteger() != nullptr); in GetU32() 60 assert(type()->AsInteger()->width() == 32); in GetU32() 71 assert(type()->AsInteger() != nullptr); in GetU64() 72 assert(type()->AsInteger()->width() == 64); in GetU64() 83 assert(type()->AsInteger() != nullptr); in GetS32() 84 assert(type()->AsInteger()->width() == 32); in GetS32() 95 assert(type()->AsInteger() != nullptr); in GetS64() 96 assert(type()->AsInteger()->width() == 64); in GetS64() 107 const auto* int_type = type()->AsInteger(); in GetZeroExtendedValue() 126 const auto* int_type = type()->AsInteger(); in GetSignExtendedValue() [all …]
|
/external/antlr/runtime/Delphi/Sources/Antlr3.Runtime.Tests/ |
D | Antlr.Runtime.Tools.Tests.pas | 587 Locals.AsInteger['x'] := 2; 588 Locals.AsInteger['X'] := 3; 589 CheckEquals(2, Locals.AsInteger['x']); 590 CheckEquals(3, Locals.AsInteger['X']); 591 CheckEquals(0, Locals.AsInteger['y']); 592 Locals.AsInteger['X'] := Locals.AsInteger['x'] * 2; 593 CheckEquals(4, Locals.AsInteger['X']);
|