RESOLVED FIXED 282900
[RISCV] Fix instruction requires the following: 'D'/'F'/'M'
https://bugs.webkit.org/show_bug.cgi?id=282900
Summary [RISCV] Fix instruction requires the following: 'D'/'F'/'M'
MingZhu Yan
Reported 2024-11-10 09:46:58 PST
Meet this error during compiling on my riscv64gc board. The following is not complete information; I only captured a part of it. The complete error also includes F and M extensions ```txt 1d.1ld: error: ld-temp.o <inline asm>:63:1: instruction requires the following: 'D' (Double-Precision Floating-Point) fsd f18, ((4 * 8) + (32 * 8) + (1 * 8) + (18 * 8))(sp) ^ 1d.1ld: error: ld-temp.o <inline asm>:64:1: instruction requires the following: 'D' (Double-Precision Floating-Point) fsd f19, ((4 * 8) + (32 * 8) + (1 * 8) + (19 * 8))(sp) ^ 1d.1ld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors) clang: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. ``` I've try to add `-march=riscv64gc -cpu=lp64d` to everywhere i can try, but this error keep going on. but finally I found that this should be a llvm bug. More related infomations are here: - https://github.com/rust-lang/rust/issues/80608 - https://github.com/llvm/llvm-project/issues/61991 - https://github.com/llvm/llvm-project/pull/97685/files
Attachments
MingZhu Yan
Comment 1 2024-11-10 10:10:35 PST
Radar WebKit Bug Importer
Comment 2 2024-11-17 09:47:15 PST
EWS
Comment 3 2024-11-19 12:27:01 PST
Committed 286815@main (fff4bd89ff20): <https://commits.webkit.org/286815@main> Reviewed commits have been landed. Closing PR #36461 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.