<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/159862>159862</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            `M68k/M68kGenAsmMatcher.inc:2633:60: error: no match for 'operator*' (operand type is 'const llvm::MCSubtargetInfo')`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          sylvestre
      </td>
    </tr>
</table>

<pre>
    very recent regression:

```
FAILED: lib/Target/M68k/AsmParser/CMakeFiles/LLVMM68kAsmParser.dir/M68kAsmParser.cpp.o
/usr/bin/g++ -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/build-llvm/lib/Target/M68k/AsmParser -I/build/source/llvm/lib/Target/M68k/AsmParser -I/build/source/llvm/lib/Target/M68k -I/build/source/build-llvm/lib/Target/M68k -I/build/source/build-llvm/include -I/build/source/llvm/include -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fdebug-prefix-map=/build/source/build-llvm=../ -fdebug-prefix-map=/build/source/= -no-canonical-prefixes -ffile-prefix-map=/build/source/build-llvm=../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -O3 -DNDEBUG -std=c++17 -fvisibility=hidden  -fno-exceptions -funwind-tables -MD -MT lib/Target/M68k/AsmParser/CMakeFiles/LLVMM68kAsmParser.dir/M68kAsmParser.cpp.o -MF lib/Target/M68k/AsmParser/CMakeFiles/LLVMM68kAsmParser.dir/M68kAsmParser.cpp.o.d -o lib/Target/M68k/AsmParser/CMakeFiles/LLVMM68kAsmParser.dir/M68kAsmParser.cpp.o -c /build/source/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
In file included from /build/source/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp:233:
/build/source/build-llvm/lib/Target/M68k/M68kGenAsmMatcher.inc: In member function 'unsigned int {anonymous}::M68kAsmParser::MatchInstructionImpl(const llvm::OperandVector&, llvm::MCInst&, uint64_t&, llvm::FeatureBitset&, bool, unsigned int)':
/build/source/build-llvm/lib/Target/M68k/M68kGenAsmMatcher.inc:2633:60: error: no match for 'operator*' (operand type is 'const llvm::MCSubtargetInfo')
 2633 |       unsigned Diag = validateOperandClass(Actual, Formal, *STI);
      | ^~~~
/build/source/build-llvm/lib/Target/M68k/M68kGenAsmMatcher.inc:2633:60: note: there are 2 candidates
In file included from /build/source/llvm/include/llvm/ADT/APFloat.h:18,
                 from /build/source/llvm/include/llvm/CodeGen/GlobalISel/Utils.h:18,
 from /build/source/llvm/include/llvm/CodeGen/MachineInstrBuilder.h:23,
 from /build/source/llvm/lib/Target/M68k/M68kInstrInfo.h:22,
 from /build/source/llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp:9:
/build/source/llvm/include/llvm/ADT/APInt.h:2235:14: note: candidate 1: 'llvm::APInt llvm::operator*(APInt, uint64_t)'
 2235 | inline APInt operator*(APInt a, uint64_t RHS) {
      | ^~~~~~~~
/build/source/llvm/include/llvm/ADT/APInt.h:2235:14: note: candidate expects 2 arguments, 1 provided
/build/source/llvm/include/llvm/ADT/APInt.h:2240:14: note: candidate 2: 'llvm::APInt llvm::operator*(uint64_t, APInt)'
 2240 | inline APInt operator*(uint64_t LHS, APInt b) {
      | ^~~~~~~~
/build/source/llvm/include/llvm/ADT/APInt.h:2240:14: note: candidate expects 2 arguments, 1 provided
/build/source/build-llvm/lib/Target/M68k/M68kGenAsmMatcher.inc: At global scope:
/build/source/build-llvm/lib/Target/M68k/M68kGenAsmMatcher.inc:1186:17: warning: 'unsigned int validateOperandClass(llvm::MCParsedAsmOperand&, {anonymous}::MatchClassKind, const llvm::MCSubtargetInfo&)' defined but not used [-Wunused-function]
 1186 | static unsigned validateOperandClass(MCParsedAsmOperand &GOp, MatchClassKind Kind, const MCSubtargetInfo &STI) {
      | ^~~~~~~~~~~~~~~~~~~~
cc1plus: note: unrecognized command-line option '-Wno-unused-command-line-argument' may have been intended to silence earlier diagnostics
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzMWEtv27ry_zT0hqBhU_Fr4YVsVfkb_7gpmvSkdxVQ1EjmLUXqkpRbn0U_-8VISmyfNklPegJcIbBich6_eXGGFt6r0gAsyWRFJslANGFn3dIf9B58cDDIbH5Y7sEdqAMJJlAHpQPvlTUkismo_ZuO-r9RnMabq3cJiWKqVUZ4eitcCYHwdDudfyE8jX31QTgPjvB0vRVfIFUaPOHp1dUfW6R5JBjmyvV8xzVZ10OLKnnaeNzOlCE8LQlfEb6iLLm_vNqs1p8_33-6eXe__vx5PL6PVxsSJeN28_2n-5vrTx_X7_Db_c1tsr5fX7-_uY3f395v4_XH65vjRnr9cRv_uHy12W6OqxvE0CidE5562zgJDwtM631FePqCH54Q8UbMrwT8K2zKSN3k8DykR6LCByG_sNrZADJYx3xw1pSPG1ILv3vYVtZQdldYV4lA2R04Zx2Jkm6BeZCNU-FAWZU5YeQpG4kSH4TJhcspuzOWNabxkDNpq0qYnGllgAlXNhXmNrvLRQAWVAUY7_T64-0m_VefMSRKOGXFh82assJY5qESJijJlAngautVh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