summaryrefslogtreecommitdiff
path: root/compiler/optimizing/codegen_test_utils.h
diff options
context:
space:
mode:
authorGoran Jakovljevic <Goran.Jakovljevic@imgtec.com>2017-10-13 08:33:17 +0200
committerGoran Jakovljevic <Goran.Jakovljevic@imgtec.com>2017-10-13 08:35:24 +0200
commit89b8df04fb1a2f10ab011e0b7d813098e095fbb9 (patch)
tree0b3f39060d69ab0d6409a57b29a632f9ed44b917 /compiler/optimizing/codegen_test_utils.h
parente478ed98446bff1ede5084c755313ee84afc036f (diff)
Fix min/max SIMD reduction
Use HVecReplicateScalar instead of HVecSetScalars when creating an initial vector for min/max. This way we are preventing that zeroes from the initial vector are taken into account for min/max calculations. Otherwise, min(MAX_INT, x[0],.., x[n-1]) = 0 if each x[i] is positive which is incorrect. Added regression test cases in 661-checker-simd-reduc. Test: ./testrunner.py --target --optimizing in QEMU (arm64) Change-Id: I1779eefc7f2ab9971dec561b2e1fbf262652410e
Diffstat (limited to 'compiler/optimizing/codegen_test_utils.h')
0 files changed, 0 insertions, 0 deletions