Skip to content

Prevent li from being compressed#20

Open
omasanori wants to merge 1 commit into
XUANTIE-RV:mainfrom
omasanori:auipc-norvc
Open

Prevent li from being compressed#20
omasanori wants to merge 1 commit into
XUANTIE-RV:mainfrom
omasanori:auipc-norvc

Conversation

@omasanori

Copy link
Copy Markdown

.option rvc makes li -> c.lui+c.addiw (4 bytes) instead of lui+addiw (8 bytes) which results in the difference of offset and the test fails.

I found this bug using Claude Code and confirmed with the XuanTie toolchain 2.6.1 (prebuilt for x86-64 Linux). Sorry if it does not happen with newer toolchains.

.option rvc makes li -> c.lui+c.addiw (4 bytes) instead of lui+addiw
(8 bytes) which results in the difference of offset and the test fails.

Signed-off-by: Masanori Ogino <167209+omasanori@users.noreply.github.com>
Assisted-by: Claude:claude-4.8-opus
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