RFR: 8349361: C2: RShiftL should support all applicable transformations that RShiftI does

Roland Westrelin roland at openjdk.org
Wed Feb 5 15:41:15 UTC 2025


On Wed, 5 Feb 2025 06:44:47 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

> Fails to build on Mac AArch64:
> 
> ```
> [2025-02-05T06:43:04,925Z] * For target hotspot_variant-server_libjvm_objs_mulnode.o:
> [2025-02-05T06:43:04,925Z] [...]workspace/open/src/hotspot/share/opto/mulnode.cpp:1400:13: error: use of bitwise '&' with boolean operands [-Werror,-Wbitwise-instead-of-logical]
> [2025-02-05T06:43:04,925Z]      assert((checked_cast<jint>(lo) == lo_verify) & (checked_cast<jint>(hi) == hi_verify), "inconsistent");
> ```

Thanks for the report. Should be fixed now. I also took @eme64's comments into account.

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

PR Comment: https://git.openjdk.org/jdk/pull/23438#issuecomment-2637271864


More information about the hotspot-compiler-dev mailing list