Home
last modified time | relevance | path

Searched refs:OpTypeInt (Results 1 - 25 of 106) sorted by relevance

12345

/third_party/spirv-tools/test/
H A Dtext_to_binary.constant_test.cpp121 {"OpTypeInt 16 0", "0x1234",
122 Concatenate({MakeInstruction(spv::Op::OpTypeInt, {1, 16, 0}),
124 {"OpTypeInt 16 0", "0x8000",
125 Concatenate({MakeInstruction(spv::Op::OpTypeInt, {1, 16, 0}),
127 {"OpTypeInt 16 0", "0",
128 Concatenate({MakeInstruction(spv::Op::OpTypeInt, {1, 16, 0}),
130 {"OpTypeInt 16 0", "65535",
131 Concatenate({MakeInstruction(spv::Op::OpTypeInt, {1, 16, 0}),
133 {"OpTypeInt 16 0", "0xffff",
134 Concatenate({MakeInstruction(spv::Op::OpTypeInt, {
[all...]
H A Dtext_to_binary.control_flow_test.cpp147 CompiledInstructions("%1 = OpTypeInt 32 0\n" in TEST_F()
150 Eq(Concatenate({MakeInstruction(spv::Op::OpTypeInt, {1, 32, 0}), in TEST_F()
157 CompiledInstructions("%1 = OpTypeInt 32 0\n" in TEST_F()
161 MakeInstruction(spv::Op::OpTypeInt, {1, 32, 0}), in TEST_F()
193 const auto input = R"(%i32 = OpTypeInt 32 0 in TEST_F()
200 EXPECT_THAT(CompileFailure("%1 = OpTypeInt 32 0\n" in TEST_F()
225 const std::string input = "%1 = OpTypeInt " + GetParam().constant_type_args + in TEST_P()
252 {MakeInstruction(spv::Op::OpTypeInt, in MakeSwitchTestCase()
313 "%1 = OpTypeInt 16 0\n%2 = OpConstant %1 65535\nOpSwitch %2 %3\n",
315 "%1 = OpTypeInt 3
[all...]
H A Dbinary_parse_test.cpp180 // Returns a ParsedInstruction for an OpTypeInt instruction that generates
183 const auto i32_inst = MakeInstruction(spv::Op::OpTypeInt, {result_id, 32, 1}); in MakeParsedInt32TypeInstruction()
190 uint16_t(spv::Op::OpTypeInt), in MakeParsedInt32TypeInstruction()
559 "%2 = OpTypeInt 32 1"); in TEST_F()
575 "%2 = OpTypeInt 32 1"); in TEST_F()
591 "%2 = OpTypeInt 32 1"); in TEST_F()
606 "%2 = OpTypeInt 32 1"); in TEST_F()
622 "%2 = OpTypeInt 32 1"); in TEST_F()
639 "%2 = OpTypeInt 32 1"); in TEST_F()
655 "%2 = OpTypeInt 3 in TEST_F()
[all...]
H A Dimmediate_int_test.cpp104 const SpirvVector original = CompiledInstructions("%1 = OpTypeInt 8 1"); in TEST_F()
111 MakeInstruction(spv::Op::OpTypeInt, {1, 64, 0}), in TEST_F()
114 CompiledInstructions("%i64 = OpTypeInt 64 0\n" in TEST_F()
120 CompileFailure("%i64 = OpTypeInt 64 0\n" in TEST_F()
124 EXPECT_EQ(CompiledInstructions("%i64 = OpTypeInt 32 1\n" in TEST_F()
126 CompiledInstructions("%i64 = OpTypeInt 32 1\n" in TEST_F()
154 MakeInstruction(spv::Op::OpTypeInt, {1, 64, 0}), in TEST_F()
159 CompiledInstructions("%i64 = OpTypeInt 64 0\n" in TEST_F()
/third_party/glslang/SPIRV/
H A DSpvPostProcess.cpp69 if (basicTypeOp == OpTypeFloat || basicTypeOp == OpTypeInt) in postProcessType()
77 if (containsType(typeId, OpTypeInt, 8)) in postProcessType()
79 if (containsType(typeId, OpTypeInt, 16)) in postProcessType()
106 if (basicTypeOp == OpTypeInt) in postProcessType()
122 if (containsType(typeId, OpTypeFloat, 16) || containsType(typeId, OpTypeInt, 16)) { in postProcessType()
137 if (containsType(typeId, OpTypeInt, 16)) in postProcessType()
141 if (containsType(typeId, OpTypeInt, 8)) { in postProcessType()
161 if (getSpvVersion() < spv::Spv_1_3 && containsType(typeId, OpTypeInt, 16)) in postProcessType()
178 if (basicTypeOp == OpTypeInt) { in postProcessType()
185 if (basicTypeOp == OpTypeInt) { in postProcessType()
[all...]
/third_party/skia/third_party/externals/spirv-tools/test/opt/
H A Ddebug_info_manager_test.cpp62 %uint = OpTypeInt 32 0
118 %uint = OpTypeInt 32 0
217 %int = OpTypeInt 32 1
219 %uint = OpTypeInt 32 0
323 %uint = OpTypeInt 32 0
380 %uint = OpTypeInt 32 0
436 %uint = OpTypeInt 32 0
523 %int = OpTypeInt 32 1
527 %uint = OpTypeInt 32 0
605 %uint = OpTypeInt 3
[all...]
H A Dir_loader_test.cpp71 "%int = OpTypeInt 32 1\n" in TEST()
421 %int = OpTypeInt 32 1 in TEST()
566 %int = OpTypeInt 32 1 in TEST()
734 %int = OpTypeInt 32 1 in TEST()
881 %int = OpTypeInt 32 1 in TEST()
1057 %int = OpTypeInt 32 1 in TEST()
1060 %uint = OpTypeInt 32 0 in TEST()
1282 "%int = OpTypeInt 32 1\n" in TEST()
1283 "%uint = OpTypeInt 32 0\n" in TEST()
1318 "%uint = OpTypeInt 3 in TEST()
[all...]
H A Dinline_test.cpp65 "%uint = OpTypeInt 32 0", in TEST_F()
187 "%uint = OpTypeInt 32 0", in TEST_F()
328 "%uint = OpTypeInt 32 0", in TEST_F()
460 "%uint = OpTypeInt 32 0", in TEST_F()
602 "%uint = OpTypeInt 32 0", in TEST_F()
804 "%uint = OpTypeInt 32 0", in TEST_F()
1006 "%uint = OpTypeInt 32 0", in TEST_F()
1211 "%uint = OpTypeInt 32 0", in TEST_F()
1400 %uint = OpTypeInt 32 0 in TEST_F()
1562 %int = OpTypeInt 3
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
H A Ddebug_info_manager_test.cpp62 %uint = OpTypeInt 32 0
118 %uint = OpTypeInt 32 0
217 %int = OpTypeInt 32 1
219 %uint = OpTypeInt 32 0
323 %uint = OpTypeInt 32 0
380 %uint = OpTypeInt 32 0
436 %uint = OpTypeInt 32 0
523 %int = OpTypeInt 32 1
527 %uint = OpTypeInt 32 0
605 %uint = OpTypeInt 3
[all...]
H A Dir_loader_test.cpp71 "%int = OpTypeInt 32 1\n" in TEST()
421 %int = OpTypeInt 32 1 in TEST()
566 %int = OpTypeInt 32 1 in TEST()
734 %int = OpTypeInt 32 1 in TEST()
881 %int = OpTypeInt 32 1 in TEST()
1057 %int = OpTypeInt 32 1 in TEST()
1060 %uint = OpTypeInt 32 0 in TEST()
1282 "%int = OpTypeInt 32 1\n" in TEST()
1283 "%uint = OpTypeInt 32 0\n" in TEST()
1318 "%uint = OpTypeInt 3 in TEST()
[all...]
H A Dinline_test.cpp65 "%uint = OpTypeInt 32 0", in TEST_F()
187 "%uint = OpTypeInt 32 0", in TEST_F()
328 "%uint = OpTypeInt 32 0", in TEST_F()
460 "%uint = OpTypeInt 32 0", in TEST_F()
602 "%uint = OpTypeInt 32 0", in TEST_F()
804 "%uint = OpTypeInt 32 0", in TEST_F()
1006 "%uint = OpTypeInt 32 0", in TEST_F()
1211 "%uint = OpTypeInt 32 0", in TEST_F()
1400 %uint = OpTypeInt 32 0 in TEST_F()
1562 %int = OpTypeInt 3
[all...]
/third_party/spirv-tools/test/opt/
H A Ddebug_info_manager_test.cpp59 %uint = OpTypeInt 32 0
115 %uint = OpTypeInt 32 0
214 %int = OpTypeInt 32 1
216 %uint = OpTypeInt 32 0
320 %uint = OpTypeInt 32 0
377 %uint = OpTypeInt 32 0
433 %uint = OpTypeInt 32 0
520 %int = OpTypeInt 32 1
524 %uint = OpTypeInt 32 0
602 %uint = OpTypeInt 3
[all...]
H A Dir_loader_test.cpp70 "%int = OpTypeInt 32 1\n" in TEST()
423 %int = OpTypeInt 32 1 in TEST()
568 %int = OpTypeInt 32 1 in TEST()
736 %int = OpTypeInt 32 1 in TEST()
883 %int = OpTypeInt 32 1 in TEST()
1059 %int = OpTypeInt 32 1 in TEST()
1062 %uint = OpTypeInt 32 0 in TEST()
1284 "%int = OpTypeInt 32 1\n" in TEST()
1285 "%uint = OpTypeInt 32 0\n" in TEST()
1321 "%uint = OpTypeInt 3 in TEST()
[all...]
H A Dinline_test.cpp65 "%uint = OpTypeInt 32 0", in TEST_F()
187 "%uint = OpTypeInt 32 0", in TEST_F()
328 "%uint = OpTypeInt 32 0", in TEST_F()
460 "%uint = OpTypeInt 32 0", in TEST_F()
602 "%uint = OpTypeInt 32 0", in TEST_F()
804 "%uint = OpTypeInt 32 0", in TEST_F()
1006 "%uint = OpTypeInt 32 0", in TEST_F()
1211 "%uint = OpTypeInt 32 0", in TEST_F()
1400 %uint = OpTypeInt 32 0 in TEST_F()
1564 %int = OpTypeInt 3
[all...]
/third_party/spirv-tools/test/val/
H A Dval_id_test.cpp154 %uint = OpTypeInt 32 0
155 %int = OpTypeInt 32 1
246 %1 = OpTypeInt 32 0
256 %1 = OpTypeInt 32 0
264 %1 = OpTypeInt 32 0)";
274 %2 = OpTypeInt 32 0
288 %2 = OpTypeInt 32 0
297 %1 = OpTypeInt 32 0
310 %1 = OpTypeInt 64 0
328 %1 = OpTypeInt 3
[all...]
/third_party/spirv-tools/source/fuzz/
H A Dtransformation_load.cpp122 ->opcode() != spv::Op::OpTypeInt) { in IsApplicable()
127 ->opcode() != spv::Op::OpTypeInt) { in IsApplicable()
H A Dtransformation_store.cpp148 ->opcode() != spv::Op::OpTypeInt) { in IsApplicable()
153 ->opcode() != spv::Op::OpTypeInt) { in IsApplicable()
H A Dtransformation_add_type_int.cpp81 ir_context, spv::Op::OpTypeInt, 0, message_.fresh_id(), in Apply()
H A Dfuzzer_pass_add_composite_types.cpp120 case spv::Op::OpTypeInt: in ChooseScalarOrCompositeType()
/third_party/spirv-tools/source/val/
H A Dvalidate_type.cpp94 << ") used for OpTypeInt."; in ValidateTypeInt()
102 << "OpTypeInt has invalid signedness:"; in ValidateTypeInt()
106 // Signedness in OpTypeInt must always be 0. in ValidateTypeInt()
107 if (spv::Op::OpTypeInt == inst->opcode() && in ValidateTypeInt()
111 << "The Signedness in OpTypeInt " in ValidateTypeInt()
249 if (!const_result_type || spv::Op::OpTypeInt != const_result_type->opcode()) { in ValidateTypeArray()
562 spv::Op::OpTypeInt != component_type->opcode())) { in ValidateTypeCooperativeMatrix()
624 case spv::Op::OpTypeInt: in TypePass()
H A Dvalidation_state.cpp866 case spv::Op::OpTypeInt: in GetComponentType()
896 case spv::Op::OpTypeInt: in GetDimension()
925 inst->opcode() == spv::Op::OpTypeInt) in GetBitWidth()
976 return inst && inst->opcode() == spv::Op::OpTypeInt; in IsIntScalarType()
998 if (inst->opcode() == spv::Op::OpTypeInt) { in IsIntScalarOrVectorType()
1011 return inst && inst->opcode() == spv::Op::OpTypeInt && inst->word(3) == 0; in IsUnsignedIntScalarType()
1033 if (inst->opcode() == spv::Op::OpTypeInt) { in IsUnsignedIntScalarOrVectorType()
1046 return inst && inst->opcode() == spv::Op::OpTypeInt && inst->word(3) == 1; in IsSignedIntScalarType()
1617 if (type != spv::Op::OpTypeInt && type != spv::Op::OpTypeFloat) return false; in ContainsSizedIntOrFloatType()
1630 ContainsSizedIntOrFloatType(id, spv::Op::OpTypeInt, 1 in ContainsLimitedUseIntOrFloatType()
[all...]
H A Dvalidate_interfaces.cpp119 case spv::Op::OpTypeInt: in NumConsumedLocations()
126 if ((_.ContainsSizedIntOrFloatType(type->id(), spv::Op::OpTypeInt, 64) || in NumConsumedLocations()
199 case spv::Op::OpTypeInt: in NumConsumedComponents()
H A Dvalidate_memory.cpp783 _.ContainsSizedIntOrFloatType(value_id, spv::Op::OpTypeInt, 16)) || in ValidateVariable()
849 _.ContainsSizedIntOrFloatType(value_id, spv::Op::OpTypeInt, 8)) { in ValidateVariable()
960 if (result_type->opcode() != spv::Op::OpTypeInt && in ValidateLoad()
1100 if (object_type->opcode() != spv::Op::OpTypeInt && in ValidateStore()
1357 if (!index_type || spv::Op::OpTypeInt != index_type->opcode()) { in ValidateAccessChain()
1500 if (result_type->opcode() != spv::Op::OpTypeInt || in ValidateArrayLength()
1506 << " must be OpTypeInt with width 32 and signedness 0."; in ValidateArrayLength()
1555 if (result_type->opcode() != spv::Op::OpTypeInt || in ValidateCooperativeMatrixLengthNV()
1561 << " must be OpTypeInt with width 32 and signedness 0."; in ValidateCooperativeMatrixLengthNV()
1802 if (!result_type || result_type->opcode() != spv::Op::OpTypeInt) { in ValidatePtrComparison()
[all...]
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
H A DSpirvShaderMemory.cpp39 ASSERT(!atomic || getType(getType(pointer).element).opcode() == spv::OpTypeInt); // Vulkan 1.1: "Atomic instructions must declare a scalar 32-bit integer type, for the value pointed to by Pointer." in EmitLoad()
99 ASSERT(!atomic || elementTy.opcode() == spv::OpTypeInt); // Vulkan 1.1: "Atomic instructions must declare a scalar 32-bit integer type, for the value pointed to by Pointer." in Store()
304 case spv::OpTypeInt: in VisitMemoryObjectInner()
/third_party/spirv-tools/source/opt/
H A Dtrim_capabilities_pass.cpp115 if (instruction->opcode() != spv::Op::OpTypeInt && in is16bitType()
279 assert(instruction->opcode() == spv::Op::OpTypeInt && in Handler_OpTypeInt_Int64()
280 "This handler only support OpTypeInt opcodes."); in Handler_OpTypeInt_Int64()
350 {spv::Op::OpTypeInt, Handler_OpTypeInt_Int64 }, member in spvtools::opt::spv::Op

Completed in 26 milliseconds

12345