summaryrefslogtreecommitdiff
path: root/test/MultiDex/main.jpp
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2024-02-23 14:49:13 +0000
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-02-26 21:11:30 +0000
commit148894a4519be445789f43c4e27fc0a8e9e72700 (patch)
tree4e3795d7cb07a9bd1a47a6acece00cbc538025f9 /test/MultiDex/main.jpp
parent1d348db4370f0e01ee8df8663693ee43d873322c (diff)
Don't change Add/Xor into Ror for constant 0
The TryReplaceWithRotateRegisterNegPattern method was providing the wrong optimization for the constant 0. Shifting using a negative value is odd as it only takes into account the 5 least significant bits. This means that a shift by -31 is the same as a shift of 1 (-30 with 2, and so on). Said method was taking advantage of this to perform an optimization, but it failed to realize that this doesn't work with 0. In the end, this optimization was basically an HAdd or a HXor instruction. As a note, it provided the right result for HOr, just because the result of the HOr instruction would be a no-op. Bug: 325899471 Bug: 324445644 Fixes: 325899471 Fixes: 324445644 Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: Iaf1385beec85d563539b99b28b5debb04c23bff8
Diffstat (limited to 'test/MultiDex/main.jpp')
0 files changed, 0 insertions, 0 deletions