Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove useless caller-saved float registers check #126

Open
wants to merge 1 commit into
base: loongarch-port
Choose a base branch
from

Conversation

xtexx
Copy link

@xtexx xtexx commented Jan 21, 2025

It never successes, because pd_last_callee_saved_fpu_reg is the same as pd_last_fpu_reg.
LoongArch ABI specified $f24-$f31 as callee-saved registers, while $f31 is also the last register. There is no hole between the last callee-saved float register and the last float register, so the check always evaluates to false.

Thanks to clang for finding this.

Fixes: 526ad75 ("Initial Linux/LoongArch64 Port")
Signed-off-by: Bingwu Zhang [email protected]

It never successes, because pd_last_callee_saved_fpu_reg is the same as
pd_last_fpu_reg.
LoongArch ABI specified $f24-$f31 as callee-saved registers, while $f31
is also the last register. There is no hole between the last callee-saved
float register and the last float register, so the check always
evaluates to false.

Thanks to clang for finding this.

Fixes: 526ad75 ("Initial Linux/LoongArch64 Port")
Signed-off-by: Bingwu Zhang <[email protected]>
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.

2 participants