COMPMID-3084: Fix padding value for Reduce MAX/MIN

The correct minimum/maximum values of QASYMM8 is used for padding.

Change-Id: Ia54e886e5acfd9c1236459b34d445bdc16446e3e
Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2721
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
diff --git a/src/runtime/CL/functions/CLReductionOperation.cpp b/src/runtime/CL/functions/CLReductionOperation.cpp
index e04982a..fc902c4 100644
--- a/src/runtime/CL/functions/CLReductionOperation.cpp
+++ b/src/runtime/CL/functions/CLReductionOperation.cpp
@@ -268,7 +268,7 @@
                     }
                     case DataType::QASYMM8:
                     {
-                        pixelValue = PixelValue(255, input->info()->data_type(), input->info()->quantization_info());
+                        pixelValue = std::get<1>(get_min_max(input->info()->data_type()));
                         break;
                     }
                     case DataType::QASYMM8_SIGNED:
@@ -300,7 +300,7 @@
                     }
                     case DataType::QASYMM8:
                     {
-                        pixelValue = PixelValue(0, input->info()->data_type(), input->info()->quantization_info());
+                        pixelValue = std::get<0>(get_min_max(input->info()->data_type()));
                         break;
                     }
                     case DataType::QASYMM8_SIGNED:
diff --git a/src/runtime/NEON/functions/NEReductionOperation.cpp b/src/runtime/NEON/functions/NEReductionOperation.cpp
index 43205ef..9d29ee0 100644
--- a/src/runtime/NEON/functions/NEReductionOperation.cpp
+++ b/src/runtime/NEON/functions/NEReductionOperation.cpp
@@ -156,7 +156,7 @@
                     }
                     case DataType::QASYMM8:
                     {
-                        pixelValue = PixelValue(255, input->info()->data_type(), input->info()->quantization_info());
+                        pixelValue = std::get<1>(get_min_max(input->info()->data_type()));
                         break;
                     }
                     default:
@@ -182,7 +182,7 @@
                     }
                     case DataType::QASYMM8:
                     {
-                        pixelValue = PixelValue(0, input->info()->data_type(), input->info()->quantization_info());
+                        pixelValue = std::get<0>(get_min_max(input->info()->data_type()));
                         break;
                     }
                     default: