Skip to content

FIX: Fix the AUIPC case in ISA_IMAC to be compatible with gcc-V3.3.0#51

Open
lj-k wants to merge 1 commit intoXUANTIE-RV:mainfrom
lj-k:main
Open

FIX: Fix the AUIPC case in ISA_IMAC to be compatible with gcc-V3.3.0#51
lj-k wants to merge 1 commit intoXUANTIE-RV:mainfrom
lj-k:main

Conversation

@lj-k
Copy link
Copy Markdown

@lj-k lj-k commented Apr 10, 2026

In the newer compiler, like Xuantie-900-gcc-elf-newlib-x86_64-V3.3.0, the instruction "li" will be compiled as two compressed instructions, which leads to a wrong PC gap between the two AUIPC instructions in this case.
We can simply move the "li" instruction ahead of the AUIPC instruction to solve this problem and make the test more robust against compiler optimizations.

…-gcc-elf-newlib-x86_64-V3.3.0

In the newer compiler, like Xuantie-900-gcc-elf-newlib-x86_64-V3.3.0, the instruction "li" will be compiled as two compressed instructions, which leads to a wrong PC gap between the two AUIPC instructions in this case. 
We can simply move the "li" instruction ahead  of the AUIPC instruction to solve this problem and make the test more robust against compiler optimizations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant