[Webkit-unassigned] [Bug 282900] New: [RISCV] Fix instruction requires the following: 'D'/'F'/'M'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 10 09:46:58 PST 2024


https://bugs.webkit.org/show_bug.cgi?id=282900

            Bug ID: 282900
           Summary: [RISCV] Fix instruction requires the following:
                    'D'/'F'/'M'
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: yanmingzhu at iscas.ac.cn

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241110/d3260b05/attachment.htm>


More information about the webkit-unassigned mailing list