RFR: 8320697: RISC-V: Small refactoring for runtime calls
Andrew Haley
aph at openjdk.org
Tue Nov 28 16:11:52 UTC 2023
On Tue, 28 Nov 2023 12:29:36 GMT, Fei Yang <fyang at openjdk.org> wrote:
> I think there is an underlying issue with the whole design with masm/asm. As there is no clear separation between "I want this to happen" and "I want to emit this instruction". I think methods which have identical name as an instruction should indicate "I want to emit this instruction".
I can see the logic behind that, but certain CPU designers write things like "A "programmer-friendly" assembler may accept a negative immediate between -(2^24 -1) and -1 inclusive, causing it to convert a requested ADD operation to a SUB, or vice versa, and then encode the absolute value of the immediate as for uimm24." So I think maybe that bird has already flown...
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16816#issuecomment-1830168928
More information about the hotspot-compiler-dev
mailing list