Accept comparison of instance-of with the constant 2

We were assuming that the comparison of the result of an instance-of bytecode with an int constant would be only with 0 or 1. It potentially can be with any other int constant too.

Bug: 252804549
Fixes: 252804549
Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b
Test: dex2oatd compiling the apps in the bug
Change-Id: Ia7d9352fb2074edfb2f74920f74a076f977e5dd4
8 files changed