RFR: 8256436: AArch64: Fix undefined behavior for signed right shift in assembler

Xiaohong Gong xgong at openjdk.java.net
Mon Nov 23 02:36:06 UTC 2020


On Fri, 20 Nov 2020 10:44:37 GMT, Andrew Haley <aph at openjdk.org> wrote:

>> Hi @theRealAph , thanks for the comment. `imm` here is an unsigned immediate and it has been masked with `0xff` before, which is the same with the implementation of `sf`.
>
> Yes, I'm saying don't do that.

Thanks a lot for the clarify ! I got it.

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

PR: https://git.openjdk.java.net/jdk/pull/1307


More information about the hotspot-compiler-dev mailing list