You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Array compare signed supposed to return -1/0/1 based on the comparison result but it returns -2 instead of -1. This is a result of using IPM instruction to generate result here and here!
Increasing the shift right one more bit would solve the issue for -1 but it would destroy the +1 result! In worst case scenario, we can revert back to use branching approach as specified here but it may damage the performance!
The text was updated successfully, but these errors were encountered:
Test and reproduce the issue:
I used the existing compiler tril tests here to test produce this issue. The tests cover 1/0/2 (unsigned) code path only so I needed to add flags=[14] which enables the sign flag to the tree definition then build and run the tests.
The isArrayCmpSign function accept only arraycmp opcode
Removed from arraycmplen since sign doesnt mean anything there
Fix: eclipse#7135 Signed-off-by: ehsan kiani far ehsan.kianifar@gmail.com
Array compare signed supposed to return -1/0/1 based on the comparison result but it returns -2 instead of -1. This is a result of using IPM instruction to generate result here and here!
Increasing the shift right one more bit would solve the issue for -1 but it would destroy the +1 result! In worst case scenario, we can revert back to use branching approach as specified here but it may damage the performance!
The text was updated successfully, but these errors were encountered: