RFR: 8307758: RISC-V: Improve bit test code introduced by JDK-8291555

Feilong Jiang fjiang at openjdk.org
Tue May 9 14:32:16 UTC 2023


[JDK-8291555](https://bugs.openjdk.org/browse/JDK-8291555) introduced some single-bit tests that use `andi`, we can replace it with `test_bit` to avoid using the temp register when UseZbs is enabled.

Testing:
- [x] tier1-tier3 on Unmatched board (release build)

-------------

Commit messages:
 - more test_bit

Changes: https://git.openjdk.org/jdk/pull/13882/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13882&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8307758
  Stats: 4 lines in 4 files changed: 0 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/13882.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/13882/head:pull/13882

PR: https://git.openjdk.org/jdk/pull/13882


More information about the hotspot-compiler-dev mailing list