[Webkit-unassigned] [Bug 282745] New: [RISCV] no viable conversion from 'TempRegister<(TempRegisterType)'\x00'>' to 'RegisterID'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 7 00:56:31 PST 2024


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

            Bug ID: 282745
           Summary: [RISCV] no viable conversion from
                    'TempRegister<(TempRegisterType)'\x00'>' to
                    'RegisterID'
           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

Here is the error I encountered while compiling on sipeed licheepi4a (a riscv64gc board)


1:

```txt
/home/debian/repo/WiebKit/Source/JavasoriptCore/assenbler/MacroAssenberRISCV64.h:662:36: error: no viable conversion from 'TempRegister<(TempRegisterType)'\x00'>' to 'RegisterID' (aka 'JSC::RISCVé64Registers::RegisterID')
    m_assembler.sllwInsn(dest, temp, shiftAmount);
```

2:

```txt
In file included from /home/debian/repo/WebKit/Source/JavaScriptCore/jit/GPRInfo.h:28:
In file included from /home/debian/repo/WebKit/Source/JavaScriptCore/assembler/MacroAssembler.h:81:
/home/debian/repo/WebKit/Source/JavaScriptCore/assembler/MacroAssemblerRISCV64.h:661:9: error: no matching member function for call to 'move'
    move (imm, temp);
```

I think we should call TempRegister.data() here

```txt
template<TempRegisterType... RegisterTypes>
    struct TempRegister {
        RegisterID data()
        {
            static_assert(((RegisterTypes == Data) || ...));
            return dataTempRegister;
        }
```

-- 
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/20241107/16178f8f/attachment.htm>


More information about the webkit-unassigned mailing list