[llvm] Enable known bits for predicated shifts (PR #200347)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 29 02:10:38 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 174874 tests passed
* 3394 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.CodeGen/AArch64/sve2-sra.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/sve2-sra.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/sve2-sra.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/sve2-sra.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/sve2-sra.ll:262:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: usra z0.b, z1.b, #1
# |               ^
# | <stdin>:322:20: note: scanning from here
# |  lsl z0.b, z0.b, #7
# |                    ^
# | <stdin>:323:2: note: possible intended match here
# |  lsr z1.b, z1.b, #1
# |  ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/sve2-sra.ll:274:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: usra z0.h, z1.h, #9
# |               ^
# | <stdin>:337:20: note: scanning from here
# |  lsl z0.h, z0.h, #7
# |                    ^
# | <stdin>:338:2: note: possible intended match here
# |  lsr z1.h, z1.h, #9
# |  ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/sve2-sra.ll:286:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: usra z0.s, z1.s, #25
# |               ^
# | <stdin>:352:20: note: scanning from here
# |  lsl z0.s, z0.s, #7
# |                    ^
# | <stdin>:353:2: note: possible intended match here
# |  lsr z1.s, z1.s, #25
# |  ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/sve2-sra.ll:298:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: usra z0.d, z1.d, #57
# |               ^
# | <stdin>:367:20: note: scanning from here
# |  lsl z0.d, z0.d, #7
# |                    ^
# | <stdin>:368:2: note: possible intended match here
# |  lsr z1.d, z1.d, #57
# |  ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/sve2-sra.ll:309:15: error: CHECK-NEXT: is not on the line after the previous match
# | ; CHECK-NEXT: lsr z0.b, z0.b, #2
# |               ^
# | <stdin>:383:2: note: 'next' match was here
# |  lsr z0.b, z0.b, #2
# |  ^
# | <stdin>:381:10: note: previous match ended here
# | // %bb.0:
# |          ^
# | <stdin>:382:1: note: non-matching line after previous match is here
# |  lsl z1.b, z1.b, #7
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/sve2-sra.ll:323:15: error: CHECK-NEXT: is not on the line after the previous match
# | ; CHECK-NEXT: lsr z0.h, z0.h, #10
# |               ^
# | <stdin>:399:2: note: 'next' match was here
# |  lsr z0.h, z0.h, #10
# |  ^
# | <stdin>:397:10: note: previous match ended here
# | // %bb.0:
# |          ^
# | <stdin>:398:1: note: non-matching line after previous match is here
# |  lsl z1.h, z1.h, #15
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/sve2-sra.ll:337:15: error: CHECK-NEXT: is not on the line after the previous match
# | ; CHECK-NEXT: lsr z0.s, z0.s, #26
# |               ^
# | <stdin>:415:2: note: 'next' match was here
# |  lsr z0.s, z0.s, #26
# |  ^
# | <stdin>:413:10: note: previous match ended here
# | // %bb.0:
# |          ^
# | <stdin>:414:1: note: non-matching line after previous match is here
# |  lsl z1.s, z1.s, #31
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/sve2-sra.ll:351:15: error: CHECK-NEXT: is not on the line after the previous match
# | ; CHECK-NEXT: lsr z0.d, z0.d, #58
# |               ^
# | <stdin>:431:2: note: 'next' match was here
# |  lsr z0.d, z0.d, #58
# |  ^
# | <stdin>:429:10: note: previous match ended here
# | // %bb.0:
# |          ^
# | <stdin>:430:1: note: non-matching line after previous match is here
# |  lsl z1.d, z1.d, #63
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/sve2-sra.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |           317:  .type usra_disjoint_shift_or16xi8, at function 
# |           318:  .variant_pcs usra_disjoint_shift_or16xi8 
# |           319: usra_disjoint_shift_or16xi8: // @usra_disjoint_shift_or16xi8 
# |           320:  .cfi_startproc 
# |           321: // %bb.0: 
# |           322:  lsl z0.b, z0.b, #7 
# | next:262'0                        X error: no match found
# |           323:  lsr z1.b, z1.b, #1 
# | next:262'0     ~~~~~~~~~~~~~~~~~~~~
# | next:262'1      ?                   possible intended match
# |           324:  orr z0.d, z0.d, z1.d 
# | next:262'0     ~~~~~~~~~~~~~~~~~~~~~~
# |           325:  ret 
# | next:262'0     ~~~~~
# |           326: .Lfunc_end24: 
# | next:262'0     ~~~~~~~~~~~~~~
# |           327:  .size usra_disjoint_shift_or16xi8, .Lfunc_end24-usra_disjoint_shift_or16xi8 
# | next:262'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           328:  .cfi_endproc 
# | next:262'0     ~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# |           332:  .type usra_disjoint_shift_or8xi16, at function 
# | next:262'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           333:  .variant_pcs usra_disjoint_shift_or8xi16 
# | next:262'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           334: usra_disjoint_shift_or8xi16: // @usra_disjoint_shift_or8xi16 
# | next:262'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           335:  .cfi_startproc 
# |           336: // %bb.0: 
# |           337:  lsl z0.h, z0.h, #7 
# | next:274'0                        X error: no match found
# |           338:  lsr z1.h, z1.h, #9 
# | next:274'0     ~~~~~~~~~~~~~~~~~~~~
# | next:274'1      ?                   possible intended match
# |           339:  orr z0.d, z0.d, z1.d 
# | next:274'0     ~~~~~~~~~~~~~~~~~~~~~~
# |           340:  ret 
# | next:274'0     ~~~~~
# |           341: .Lfunc_end25: 
# | next:274'0     ~~~~~~~~~~~~~~
# |           342:  .size usra_disjoint_shift_or8xi16, .Lfunc_end25-usra_disjoint_shift_or8xi16 
# | next:274'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           343:  .cfi_endproc 
# | next:274'0     ~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# |           347:  .type usra_disjoint_shift_or4xi32, at function 
# | next:274'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           348:  .variant_pcs usra_disjoint_shift_or4xi32 
# | next:274'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           349: usra_disjoint_shift_or4xi32: // @usra_disjoint_shift_or4xi32 
# | next:274'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           350:  .cfi_startproc 
# |           351: // %bb.0: 
# |           352:  lsl z0.s, z0.s, #7 
# | next:286'0                        X error: no match found
# |           353:  lsr z1.s, z1.s, #25 
# | next:286'0     ~~~~~~~~~~~~~~~~~~~~~
# | next:286'1      ?                    possible intended match
# |           354:  orr z0.d, z0.d, z1.d 
# | next:286'0     ~~~~~~~~~~~~~~~~~~~~~~
# |           355:  ret 
# | next:286'0     ~~~~~
# |           356: .Lfunc_end26: 
# | next:286'0     ~~~~~~~~~~~~~~
# |           357:  .size usra_disjoint_shift_or4xi32, .Lfunc_end26-usra_disjoint_shift_or4xi32 
# | next:286'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           358:  .cfi_endproc 
# | next:286'0     ~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# |           362:  .type usra_disjoint_shift_or2xi64, at function 
# | next:286'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           363:  .variant_pcs usra_disjoint_shift_or2xi64 
# | next:286'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           364: usra_disjoint_shift_or2xi64: // @usra_disjoint_shift_or2xi64 
# | next:286'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           365:  .cfi_startproc 
# |           366: // %bb.0: 
# |           367:  lsl z0.d, z0.d, #7 
# | next:298'0                        X error: no match found
# |           368:  lsr z1.d, z1.d, #57 
# | next:298'0     ~~~~~~~~~~~~~~~~~~~~~
# | next:298'1      ?                    possible intended match
# |           369:  orr z0.d, z0.d, z1.d 
# | next:298'0     ~~~~~~~~~~~~~~~~~~~~~~
# |           370:  ret 
# | next:298'0     ~~~~~
# |           371: .Lfunc_end27: 
# | next:298'0     ~~~~~~~~~~~~~~
# |           372:  .size usra_disjoint_shift_or2xi64, .Lfunc_end27-usra_disjoint_shift_or2xi64 
# | next:298'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           373:  .cfi_endproc 
# | next:298'0     ~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# |           378:  .variant_pcs ssra_disjoint_shift_or16xi8 
# | next:298'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           379: ssra_disjoint_shift_or16xi8: // @ssra_disjoint_shift_or16xi8 
# | next:298'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           380:  .cfi_startproc 
# |           381: // %bb.0: 
# |           382:  lsl z1.b, z1.b, #7 
# |           383:  lsr z0.b, z0.b, #2 
# | next:309        !~~~~~~~~~~~~~~~~~  error: match on wrong line
# |           384:  asr z1.b, z1.b, #1 
# |           385:  orr z0.d, z0.d, z1.d 
# |           386:  ret 
# |           387: .Lfunc_end28: 
# |           388:  .size ssra_disjoint_shift_or16xi8, .Lfunc_end28-ssra_disjoint_shift_or16xi8 
# |             .
# |             .
# |             .
# |           394:  .variant_pcs ssra_disjoint_shift_or8xi16 
# |           395: ssra_disjoint_shift_or8xi16: // @ssra_disjoint_shift_or8xi16 
# |           396:  .cfi_startproc 
# |           397: // %bb.0: 
# |           398:  lsl z1.h, z1.h, #15 
# |           399:  lsr z0.h, z0.h, #10 
# | next:323        !~~~~~~~~~~~~~~~~~~  error: match on wrong line
# |           400:  asr z1.h, z1.h, #9 
# |           401:  orr z0.d, z0.d, z1.d 
# |           402:  ret 
# |           403: .Lfunc_end29: 
# |           404:  .size ssra_disjoint_shift_or8xi16, .Lfunc_end29-ssra_disjoint_shift_or8xi16 
# |             .
# |             .
# |             .
# |           410:  .variant_pcs ssra_disjoint_shift_or4xi32 
# |           411: ssra_disjoint_shift_or4xi32: // @ssra_disjoint_shift_or4xi32 
# |           412:  .cfi_startproc 
# |           413: // %bb.0: 
# |           414:  lsl z1.s, z1.s, #31 
# |           415:  lsr z0.s, z0.s, #26 
# | next:337        !~~~~~~~~~~~~~~~~~~  error: match on wrong line
# |           416:  asr z1.s, z1.s, #25 
# |           417:  orr z0.d, z0.d, z1.d 
# |           418:  ret 
# |           419: .Lfunc_end30: 
# |           420:  .size ssra_disjoint_shift_or4xi32, .Lfunc_end30-ssra_disjoint_shift_or4xi32 
# |             .
# |             .
# |             .
# |           426:  .variant_pcs ssra_disjoint_shift_or2xi64 
# |           427: ssra_disjoint_shift_or2xi64: // @ssra_disjoint_shift_or2xi64 
# |           428:  .cfi_startproc 
# |           429: // %bb.0: 
# |           430:  lsl z1.d, z1.d, #63 
# |           431:  lsr z0.d, z0.d, #58 
# | next:351        !~~~~~~~~~~~~~~~~~~  error: match on wrong line
# |           432:  asr z1.d, z1.d, #57 
# |           433:  orr z0.d, z0.d, z1.d 
# |           434:  ret 
# |           435: .Lfunc_end31: 
# |           436:  .size ssra_disjoint_shift_or2xi64, .Lfunc_end31-ssra_disjoint_shift_or2xi64 
# |           437:  .cfi_endproc 
# |           438:  // -- End function 
# |           439:  .section ".note.GNU-stack","", at progbits 
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/200347


More information about the llvm-commits mailing list