[llvm] [AArch64] Decouple -aarch64-code-layout-opt-enable= from the Subtarget (PR #215044)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 8 19:23:18 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 139505 tests passed
* 3660 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/AArch64/code-layout-opt.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll -verify-machineinstrs -mtriple=aarch64-apple-darwin                -aarch64-code-layout-opt-enable=fcmp-fcsel,cmp-csel | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll --check-prefixes=CHECK,ENABLED
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -verify-machineinstrs -mtriple=aarch64-apple-darwin -aarch64-code-layout-opt-enable=fcmp-fcsel,cmp-csel
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll' --check-prefixes=CHECK,ENABLED
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll -verify-machineinstrs -mtriple=aarch64-apple-darwin -mcpu=apple-m4 -aarch64-code-layout-opt-enable=fcmp-fcsel,cmp-csel | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll --check-prefixes=CHECK,ENABLED
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -verify-machineinstrs -mtriple=aarch64-apple-darwin -mcpu=apple-m4 -aarch64-code-layout-opt-enable=fcmp-fcsel,cmp-csel
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll' --check-prefixes=CHECK,ENABLED
# note: command had no output on stdout or stderr
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\llc.exe < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll -verify-machineinstrs -mtriple=aarch64-apple-darwin -mcpu=apple-m4                                      | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll --check-prefixes=CHECK,ENABLED
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -verify-machineinstrs -mtriple=aarch64-apple-darwin -mcpu=apple-m4
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll' --check-prefixes=CHECK,ENABLED
# note: command had no output on stdout or stderr
# RUN: at line 7
c:\_work\llvm-project\llvm-project\build\bin\llc.exe < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll -verify-machineinstrs -mtriple=aarch64-apple-darwin -mcpu=apple-m4 -aarch64-code-layout-opt-enable=none | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll --check-prefixes=CHECK,DISABLED
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -verify-machineinstrs -mtriple=aarch64-apple-darwin -mcpu=apple-m4 -aarch64-code-layout-opt-enable=none
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll' --check-prefixes=CHECK,DISABLED
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll:22:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: .p2align 6
# |               ^
# | <stdin>:2:38: note: scanning from here
# |  .globl _test_basic_fcmp_fcsel_single ; -- Begin function test_basic_fcmp_fcsel_single
# |                                      ^
# | <stdin>:3:2: note: possible intended match here
# |  .p2align 2
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll:50:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: .p2align 6
# |               ^
# | <stdin>:12:38: note: scanning from here
# |  .globl _test_basic_fcmp_fcsel_double ; -- Begin function test_basic_fcmp_fcsel_double
# |                                      ^
# | <stdin>:13:2: note: possible intended match here
# |  .p2align 2
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll:78:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: .p2align 6
# |               ^
# | <stdin>:22:32: note: scanning from here
# |  .globl _test_multiple_patterns ; -- Begin function test_multiple_patterns
# |                                ^
# | <stdin>:23:2: note: possible intended match here
# |  .p2align 2
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll:132:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: .p2align 6
# |               ^
# | <stdin>:44:30: note: scanning from here
# |  .globl _test_mixed_precision ; -- Begin function test_mixed_precision
# |                              ^
# | <stdin>:45:2: note: possible intended match here
# |  .p2align 2
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll:178:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: .p2align 6
# |               ^
# | <stdin>:58:34: note: scanning from here
# |  .globl _test_with_function_calls ; -- Begin function test_with_function_calls
# |                                  ^
# | <stdin>:59:2: note: possible intended match here
# |  .p2align 2
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll:260:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: .p2align 6
# |               ^
# | <stdin>:94:29: note: scanning from here
# |  .globl _test_basic_cmp_csel ; -- Begin function test_basic_cmp_csel
# |                             ^
# | <stdin>:95:2: note: possible intended match here
# |  .p2align 2
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll:288:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: .p2align 6
# |               ^
# | <stdin>:104:33: note: scanning from here
# |  .globl _test_cmp_small_imm_csel ; -- Begin function test_cmp_small_imm_csel
# |                                 ^
# | <stdin>:105:2: note: possible intended match here
# |  .p2align 2
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll:331:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: .p2align 6
# |               ^
# | <stdin>:124:29: note: scanning from here
# |  .globl _test_basic_cmn_csel ; -- Begin function test_basic_cmn_csel
# |                             ^
# | <stdin>:125:2: note: possible intended match here
# |  .p2align 2
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll:386:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: .p2align 6
# |               ^
# | <stdin>:144:33: note: scanning from here
# |  .globl _test_cmn_small_imm_csel ; -- Begin function test_cmn_small_imm_csel
# |                                 ^
# | <stdin>:145:2: note: possible intended match here
# |  .p2align 2
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AArch64\code-layout-opt.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1:  .section __TEXT,__text,regular,pure_instructions 
# |             2:  .globl _test_basic_fcmp_fcsel_single ; -- Begin function test_basic_fcmp_fcsel_single 
# | next:22'0                                          {                                                    search range start (exclusive)
# | next:22'1                                                                                               error: no match found in search range
# |             3:  .p2align 2 
# | next:22'2       ?            possible intended match
# |             4: _test_basic_fcmp_fcsel_single: ; @test_basic_fcmp_fcsel_single 
# | next:22'3                                    }                                  search range end (exclusive)
# |             5:  .cfi_startproc 
# |             6: ; %bb.0: ; %entry 
# |             7:  fcmp s0, s1 
# |             8:  fcsel s0, s2, s3, eq 
# |             9:  ret 
# |            10:  .cfi_endproc 
# |            11:  ; -- End function 
# |            12:  .globl _test_basic_fcmp_fcsel_double ; -- Begin function test_basic_fcmp_fcsel_double 
# | next:50'0                                          {                                                    search range start (exclusive)
# | next:50'1                                                                                               error: no match found in search range
# |            13:  .p2align 2 
# | next:50'2       ?            possible intended match
# |            14: _test_basic_fcmp_fcsel_double: ; @test_basic_fcmp_fcsel_double 
# | next:50'3                                    }                                  search range end (exclusive)
# |            15:  .cfi_startproc 
# |            16: ; %bb.0: ; %entry 
# |            17:  fcmp d0, d1 
# |            18:  fcsel d0, d2, d3, eq 
# |            19:  ret 
# |            20:  .cfi_endproc 
# |            21:  ; -- End function 
# |            22:  .globl _test_multiple_patterns ; -- Begin function test_multiple_patterns 
# | next:78'0                                    {                                              search range start (exclusive)
# | next:78'1                                                                                   error: no match found in search range
# |            23:  .p2align 2 
# | next:78'2       ?            possible intended match
# |            24: _test_multiple_patterns: ; @test_multiple_patterns 
# | next:78'3                              }                            search range end (exclusive)
# |            25:  .cfi_startproc 
# |            26: ; %bb.0: ; %entry 
# |            27:  fcmp s0, s1 
# |            28:  fcsel s0, s2, s3, eq 
# |            29:  fcmp s0, s4 
# |             .
# |             .
# |             .
# |            39:  fcmp s0, #0.0 
# |            40:  fcsel s0, s0, s1, eq 
# |            41:  ret 
# |            42:  .cfi_endproc 
# |            43:  ; -- End function 
# |            44:  .globl _test_mixed_precision ; -- Begin function test_mixed_precision 
# | next:132'0                                 {                                            search range start (exclusive)
# | next:132'1                                                                              error: no match found in search range
# |            45:  .p2align 2 
# | next:132'2      ?            possible intended match
# |            46: _test_mixed_precision: ; @test_mixed_precision 
# | next:132'3                           }                          search range end (exclusive)
# |            47:  .cfi_startproc 
# |            48: ; %bb.0: ; %entry 
# |            49:  fcmp s0, s1 
# |            50:  fcsel s0, s0, s1, gt 
# |            51:  fcmp d2, d3 
# |            52:  fcsel d1, d2, d3, mi 
# |            53:  fcvt s1, d1 
# |            54:  fadd s0, s0, s1 
# |            55:  ret 
# |            56:  .cfi_endproc 
# |            57:  ; -- End function 
# |            58:  .globl _test_with_function_calls ; -- Begin function test_with_function_calls 
# | next:178'0                                     {                                                search range start (exclusive)
# | next:178'1                                                                                      error: no match found in search range
# |            59:  .p2align 2 
# | next:178'2      ?            possible intended match
# |            60: _test_with_function_calls: ; @test_with_function_calls 
# | next:178'3                               }                              search range end (exclusive)
# |            61:  .cfi_startproc 
# |            62: ; %bb.0: ; %entry 
# |            63:  stp x29, x30, [sp, #-16]! ; 16-byte Folded Spill 
# |            64:  .cfi_def_cfa_offset 16 
# |            65:  .cfi_offset w30, -8 
# |             .
# |             .
# |             .
# |            89:  tst w0, #0x1 
# |            90:  fcsel s0, s0, s1, ne 
# |            91:  ret 
# |            92:  .cfi_endproc 
# |            93:  ; -- End function 
# |            94:  .globl _test_basic_cmp_csel ; -- Begin function test_basic_cmp_csel 
# | next:260'0                                {                                           search range start (exclusive)
# | next:260'1                                                                            error: no match found in search range
# |            95:  .p2align 2 
# | next:260'2      ?            possible intended match
# |            96: _test_basic_cmp_csel: ; @test_basic_cmp_csel 
# | next:260'3                          }                         search range end (exclusive)
# |            97:  .cfi_startproc 
# |            98: ; %bb.0: ; %entry 
# |            99:  cmp w0, w1 
# |           100:  csel w0, w2, w3, eq 
# |           101:  ret 
# |           102:  .cfi_endproc 
# |           103:  ; -- End function 
# |           104:  .globl _test_cmp_small_imm_csel ; -- Begin function test_cmp_small_imm_csel 
# | next:288'0                                    {                                               search range start (exclusive)
# | next:288'1                                                                                    error: no match found in search range
# |           105:  .p2align 2 
# | next:288'2      ?            possible intended match
# |           106: _test_cmp_small_imm_csel: ; @test_cmp_small_imm_csel 
# | next:288'3                              }                             search range end (exclusive)
# |           107:  .cfi_startproc 
# |           108: ; %bb.0: ; %entry 
# |           109:  cmp w0, #7 
# |           110:  csel w0, w1, w2, eq 
# |           111:  ret 
# |             .
# |             .
# |             .
# |           119:  cmp w0, #100 
# |           120:  csel w0, w1, w2, eq 
# |           121:  ret 
# |           122:  .cfi_endproc 
# |           123:  ; -- End function 
# |           124:  .globl _test_basic_cmn_csel ; -- Begin function test_bas
# | ...
# `---data was truncated (10240/11872) (change limit with -D output_limit=N)
# 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/215044


More information about the llvm-commits mailing list