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

    <tr>
        <th>Summary</th>
        <td>
            [M68k] divide-by-constant.ll test failing 
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    The m68k-backend-specific test `divide-by-constant.ll` has started fail:

```
FAIL: LLVM :: CodeGen/M68k/Arith/divide-by-constant.ll (1 of 66093)
******************** TEST 'LLVM :: CodeGen/M68k/Arith/divide-by-constant.ll' FAILED ********************
Script:
--
: 'RUN: at line 2'; /srv/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/llc < /srv/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/CodeGen/M68k/Arith/divide-by-constant.ll -mtriple=m68k-linux -verify-machineinstrs | /srv/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/FileCheck /srv/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/CodeGen/M68k/Arith/divide-by-constant.ll
--
Exit Code: 1

Command Output (stderr):
--
/srv/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/CodeGen/M68k/Arith/divide-by-constant.ll:42:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: mulu #-21845, %d0
              ^
<stdin>:42:17: note: scanning from here
 and.l #255, %d0
                ^
<stdin>:43:2: note: possible intended match here
 mulu #21846, %d0
 ^
/srv/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/CodeGen/M68k/Arith/divide-by-constant.ll:130:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: lsr.w #1, %d0
              ^
<stdin>:131:17: note: scanning from here
 and.l #255, %d0
                ^
<stdin>:133:2: note: possible intended match here
 lsr.l #8, %d0
 ^
/srv/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/CodeGen/M68k/Arith/divide-by-constant.ll:146:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: mulu #18079, %d0
              ^
<stdin>:146:17: note: scanning from here
 and.l #255, %d0
                ^
<stdin>:147:2: note: possible intended match here
 mulu #565, %d0
 ^

Input file: <stdin>
Check file: /srv/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/CodeGen/M68k/Arith/divide-by-constant.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
 .
            .
            .
           37:  .type test3,@function 
           38: test3: ; @test3 
           39:  .cfi_startproc 
 40: ; %bb.0: ; %entry 
           41:  move.b (11,%sp), %d0 
 42:  and.l #255, %d0 
next:42'0                      X error: no match found
           43:  mulu #21846, %d0 
next:42'0 ~~~~~~~~~~~~~~~~~~
next:42'1       ?                 possible intended match
           44:  lsr.l #8, %d0 
next:42'0      ~~~~~~~~~~~~~~~
 45:  lsr.l #8, %d0 
next:42'0      ~~~~~~~~~~~~~~~
 46:  and.l #65535, %d0 
next:42'0      ~~~~~~~~~~~~~~~~~~~
 47:  rts 
next:42'0      ~~~~~
           48: .Lfunc_end2: 
next:42'0      ~~~~~~~~~~~~~
            .
            .
 .
          126:  .p2align 1 
          127:  .type test8,@function 
          128: test8: ; @test8 
          129: ; %bb.0: 
 130:  move.b (7,%sp), %d0 
          131:  and.l #255, %d0 
next:130'0 X error: no match found
          132:  mulu #841, %d0 
next:130'0     ~~~~~~~~~~~~~~~~
          133:  lsr.l #8, %d0 
next:130'0     ~~~~~~~~~~~~~~~
next:130'1      ?              possible intended match
          134:  lsr.l #8, %d0 
next:130'0 ~~~~~~~~~~~~~~~
          135:  ; kill: def $bd0 killed $bd0 killed $d0 
next:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 136:  rts 
next:130'0     ~~~~~
          137: .Lfunc_end7: 
next:130'0     ~~~~~~~~~~~~~
          138:  .size test8, .Lfunc_end7-test8 
next:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 .
            .
            .
          141:  .p2align 1 
next:130'0     ~~~~~~~~~~~~
          142:  .type test9,@function 
next:130'0     ~~~~~~~~~~~~~~~~~~~~~~~
          143: test9: ; @test9 
next:130'0     ~~~~~~
          144: ; %bb.0: 
          145: move.b (7,%sp), %d0 
          146:  and.l #255, %d0 
next:146'0 X error: no match found
          147:  mulu #565, %d0 
next:146'0     ~~~~~~~~~~~~~~~~
next:146'1      ? possible intended match
          148:  lsr.l #8, %d0 
next:146'0 ~~~~~~~~~~~~~~~
          149:  lsr.l #8, %d0 
next:146'0 ~~~~~~~~~~~~~~~
          150:  ; kill: def $bd0 killed $bd0 killed $d0 
next:146'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 151:  rts 
next:146'0     ~~~~~
          152: .Lfunc_end8: 
next:146'0     ~~~~~~~~~~~~~
            .
            .
 .
>>>>>>

--

********************
```

The regression was first seen in the CI for build job 9330 [1] with 8abd70081f761738e82b37b2891b60ad034f3880 most likely being the responsible change.

> [1] https://lab.llvm.org/staging/#/builders/180/builds/9330
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUWVtv27gS_jX0CyFDJHV98IPj2OcUJ-0BttlF3wpKoiw2NCWQVC592N--IOW75Ni5tMgaghNJo5lvLt-QI1Ot-VIyNgHhFQivR7Q1Va0mS0HbjJufo6wunia3FYOrKLnzMprfMVl4umE5L3kODdMGgsgv-D0vmJc9eXkttaHSjIUAkQ8rqqE2VBlWwJJyAcgU-NfA33xH_vpwp4vppxtApvDm5q_P0IqSKZzVBfsPkwAvPkfJHcCLqeKmAngxaBMCnCBYlzCK_JQAnK7t4Ncf8Hb-9RYCHL8eFcAxtL7Nr-FbkHS-fM0Vb8w2kJ63dp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