diff options
author | Viet-Hoa Do <viet-hoa.do@arm.com> | 2023-08-22 11:11:23 +0100 |
---|---|---|
committer | Viet-Hoa Do <viet-hoa.do@arm.com> | 2023-08-24 09:48:58 +0000 |
commit | 34b6c3a08c3fd3f99cf675921a319b8678a98273 (patch) | |
tree | b52068faf874063b79f0e4ddd7d587e785bb65bf /compute_kernel_writer/validation/tests/CLKernelWriterUnaryExpressionTest.h | |
parent | 3a9ecdfdc76abd7f9acdab42a1f7e4c0188d6f48 (diff) | |
download | ComputeLibrary-34b6c3a08c3fd3f99cf675921a319b8678a98273.tar.gz |
Add CKW binary and ternary statements
Resolves: COMPMID-6388
Signed-off-by: Viet-Hoa Do <viet-hoa.do@arm.com>
Change-Id: Ia0cd1486f368af54053066f489cac83b9de01789
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10182
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'compute_kernel_writer/validation/tests/CLKernelWriterUnaryExpressionTest.h')
-rw-r--r-- | compute_kernel_writer/validation/tests/CLKernelWriterUnaryExpressionTest.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compute_kernel_writer/validation/tests/CLKernelWriterUnaryExpressionTest.h b/compute_kernel_writer/validation/tests/CLKernelWriterUnaryExpressionTest.h index 65440a0a99..395a2fe817 100644 --- a/compute_kernel_writer/validation/tests/CLKernelWriterUnaryExpressionTest.h +++ b/compute_kernel_writer/validation/tests/CLKernelWriterUnaryExpressionTest.h @@ -43,6 +43,8 @@ class CLKernelWriterUnaryExpressionTest : public ITest public: CLKernelWriterUnaryExpressionTest() { + // dst_height, dst_width, src_height, src_width, data_type, op, expected_code + _tests.push_back({ 1, 1, 1, 1, DataType::Uint32, UnaryOp::BitwiseNot, "G0__dst = ~G0__src;\n" }); // Scalar. _tests.push_back({ 1, 3, 1, 3, DataType::Int16, UnaryOp::LogicalNot, "G0__dst = !G0__src;\n" }); // Whole vector. @@ -70,7 +72,7 @@ public: writer.start_capture_code(); - writer.op_unary(dst, src, test.op); + writer.op_unary(dst, test.op, src); VALIDATE_TEST(writer.check_added_code(test.expected_code), all_tests_passed, test_no++); } |