Home
last modified time | relevance | path

Searched refs:ArithmeticOp (Results 1 – 7 of 7) sorted by relevance

/external/OpenCL-CTS/test_conformance/subgroups/
Dtest_subgroup_non_uniform_arithmetic.cpp356 int error = rft.run_impl<T, SCIN_NU<T, ArithmeticOp::add_>>( in run_functions_add_mul_max_min_for_type()
358 error |= rft.run_impl<T, SCIN_NU<T, ArithmeticOp::mul_>>( in run_functions_add_mul_max_min_for_type()
360 error |= rft.run_impl<T, SCIN_NU<T, ArithmeticOp::max_>>( in run_functions_add_mul_max_min_for_type()
362 error |= rft.run_impl<T, SCIN_NU<T, ArithmeticOp::min_>>( in run_functions_add_mul_max_min_for_type()
364 error |= rft.run_impl<T, SCEX_NU<T, ArithmeticOp::add_>>( in run_functions_add_mul_max_min_for_type()
366 error |= rft.run_impl<T, SCEX_NU<T, ArithmeticOp::mul_>>( in run_functions_add_mul_max_min_for_type()
368 error |= rft.run_impl<T, SCEX_NU<T, ArithmeticOp::max_>>( in run_functions_add_mul_max_min_for_type()
370 error |= rft.run_impl<T, SCEX_NU<T, ArithmeticOp::min_>>( in run_functions_add_mul_max_min_for_type()
372 error |= rft.run_impl<T, RED_NU<T, ArithmeticOp::add_>>( in run_functions_add_mul_max_min_for_type()
374 error |= rft.run_impl<T, RED_NU<T, ArithmeticOp::mul_>>( in run_functions_add_mul_max_min_for_type()
[all …]
Dsubgroup_common_templates.h309 template <typename Ty> inline Ty calculate(Ty a, Ty b, ArithmeticOp operation) in calculate()
313 case ArithmeticOp::add_: return a + b; in calculate()
314 case ArithmeticOp::max_: return a > b ? a : b; in calculate()
315 case ArithmeticOp::min_: return a < b ? a : b; in calculate()
316 case ArithmeticOp::mul_: return a * b; in calculate()
317 case ArithmeticOp::and_: return a & b; in calculate()
318 case ArithmeticOp::or_: return a | b; in calculate()
319 case ArithmeticOp::xor_: return a ^ b; in calculate()
320 case ArithmeticOp::logical_and: return a && b; in calculate()
321 case ArithmeticOp::logical_or: return a || b; in calculate()
[all …]
Dsubhelpers.h95 enum class ArithmeticOp enum
109 static const char *const operation_names(ArithmeticOp operation) in operation_names()
113 case ArithmeticOp::add_: return "add"; in operation_names()
114 case ArithmeticOp::max_: return "max"; in operation_names()
115 case ArithmeticOp::min_: return "min"; in operation_names()
116 case ArithmeticOp::mul_: return "mul"; in operation_names()
117 case ArithmeticOp::and_: return "and"; in operation_names()
118 case ArithmeticOp::or_: return "or"; in operation_names()
119 case ArithmeticOp::xor_: return "xor"; in operation_names()
120 case ArithmeticOp::logical_and: return "logical_and"; in operation_names()
[all …]
Dtest_subgroup_clustered_reduce.cpp171 template <typename Ty, ArithmeticOp operation> struct RED_CLU
269 int error = rft.run_impl<T, RED_CLU<T, ArithmeticOp::add_>>( in run_cluster_red_add_max_min_mul_for_type()
271 error |= rft.run_impl<T, RED_CLU<T, ArithmeticOp::max_>>( in run_cluster_red_add_max_min_mul_for_type()
273 error |= rft.run_impl<T, RED_CLU<T, ArithmeticOp::min_>>( in run_cluster_red_add_max_min_mul_for_type()
275 error |= rft.run_impl<T, RED_CLU<T, ArithmeticOp::mul_>>( in run_cluster_red_add_max_min_mul_for_type()
281 int error = rft.run_impl<T, RED_CLU<T, ArithmeticOp::and_>>( in run_cluster_and_or_xor_for_type()
283 error |= rft.run_impl<T, RED_CLU<T, ArithmeticOp::or_>>( in run_cluster_and_or_xor_for_type()
285 error |= rft.run_impl<T, RED_CLU<T, ArithmeticOp::xor_>>( in run_cluster_and_or_xor_for_type()
292 int error = rft.run_impl<T, RED_CLU<T, ArithmeticOp::logical_and>>( in run_cluster_logical_and_or_xor_for_type()
294 error |= rft.run_impl<T, RED_CLU<T, ArithmeticOp::logical_or>>( in run_cluster_logical_and_or_xor_for_type()
[all …]
Dtest_subgroup_extended_types.cpp33 int error = rft.run_impl<T, RED_NU<T, ArithmeticOp::add_>>("test_redadd", in run_scan_reduction_for_type()
35 error |= rft.run_impl<T, RED_NU<T, ArithmeticOp::max_>>("test_redmax", in run_scan_reduction_for_type()
37 error |= rft.run_impl<T, RED_NU<T, ArithmeticOp::min_>>("test_redmin", in run_scan_reduction_for_type()
39 error |= rft.run_impl<T, SCIN_NU<T, ArithmeticOp::add_>>("test_scinadd", in run_scan_reduction_for_type()
41 error |= rft.run_impl<T, SCIN_NU<T, ArithmeticOp::max_>>("test_scinmax", in run_scan_reduction_for_type()
43 error |= rft.run_impl<T, SCIN_NU<T, ArithmeticOp::min_>>("test_scinmin", in run_scan_reduction_for_type()
45 error |= rft.run_impl<T, SCEX_NU<T, ArithmeticOp::add_>>("test_scexadd", in run_scan_reduction_for_type()
47 error |= rft.run_impl<T, SCEX_NU<T, ArithmeticOp::max_>>("test_scexmax", in run_scan_reduction_for_type()
49 error |= rft.run_impl<T, SCEX_NU<T, ArithmeticOp::min_>>("test_scexmin", in run_scan_reduction_for_type()
Dtest_subgroup.cpp154 error |= rft.run_impl<T, RED_NU<T, ArithmeticOp::add_>>("test_redadd", in run_broadcast_scan_reduction_for_type()
156 error |= rft.run_impl<T, RED_NU<T, ArithmeticOp::max_>>("test_redmax", in run_broadcast_scan_reduction_for_type()
158 error |= rft.run_impl<T, RED_NU<T, ArithmeticOp::min_>>("test_redmin", in run_broadcast_scan_reduction_for_type()
160 error |= rft.run_impl<T, SCIN_NU<T, ArithmeticOp::add_>>("test_scinadd", in run_broadcast_scan_reduction_for_type()
162 error |= rft.run_impl<T, SCIN_NU<T, ArithmeticOp::max_>>("test_scinmax", in run_broadcast_scan_reduction_for_type()
164 error |= rft.run_impl<T, SCIN_NU<T, ArithmeticOp::min_>>("test_scinmin", in run_broadcast_scan_reduction_for_type()
166 error |= rft.run_impl<T, SCEX_NU<T, ArithmeticOp::add_>>("test_scexadd", in run_broadcast_scan_reduction_for_type()
168 error |= rft.run_impl<T, SCEX_NU<T, ArithmeticOp::max_>>("test_scexmax", in run_broadcast_scan_reduction_for_type()
170 error |= rft.run_impl<T, SCEX_NU<T, ArithmeticOp::min_>>("test_scexmin", in run_broadcast_scan_reduction_for_type()
/external/llvm-project/mlir/include/mlir/Dialect/StandardOps/IR/
DOps.td103 class ArithmeticOp<string mnemonic, list<OpTrait> traits = []> :
129 ArithmeticOp<mnemonic,
144 ArithmeticOp<mnemonic,
158 ArithmeticOp<mnemonic, traits>,