You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// arch/loongarch/kernel/traps.cstaticvoidinit_restore_fp(void)
{
if (!used_math()) {
/* First time FP context user. */init_fpu();
} else {
/* This task has formerly used the FP context */if (!is_fpu_owner())
own_fpu_inatomic(1);
}
BUG_ON(!is_fp_enabled());
}
Found during investigation of ClangBuiltLinux/boot-utils#108 (comment). It is due to the wrong cleanup of commit 2efdacf that removed side-effect markers from CSR/IOCSR read intrinsics.
Minimal reproducer:
Correct codegen:
Wrong codegen:
The text was updated successfully, but these errors were encountered: