[clang] [llvm] [Clang][AMDGPU] Handle `wavefrontsize32` and `wavefrontsize64` features more robustly (PR #176599)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 17 15:02:25 PST 2026


github-actions[bot] wrote:

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

* 168194 tests passed
* 2996 tests skipped
* 1 test failed

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

### Flang
<details>
<summary>Flang.Driver/target-cpu-features-invalid.f90</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -triple aarch64-linux-gnu -target-cpu supercpu    -o /dev/null -S /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/target-cpu-features-invalid.f90 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/target-cpu-features-invalid.f90 -check-prefix=CHECK-INVALID-CPU
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -triple aarch64-linux-gnu -target-cpu supercpu -o /dev/null -S /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/target-cpu-features-invalid.f90
# 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/flang/test/Driver/target-cpu-features-invalid.f90 -check-prefix=CHECK-INVALID-CPU
# note: command had no output on stdout or stderr
# RUN: at line 8
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -triple aarch64-linux-gnu -target-feature +superspeed    -o /dev/null -S /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/target-cpu-features-invalid.f90 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/target-cpu-features-invalid.f90 -check-prefix=CHECK-INVALID-FEATURE
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -triple aarch64-linux-gnu -target-feature +superspeed -o /dev/null -S /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/target-cpu-features-invalid.f90
# 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/flang/test/Driver/target-cpu-features-invalid.f90 -check-prefix=CHECK-INVALID-FEATURE
# note: command had no output on stdout or stderr
# RUN: at line 11
not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -triple amdgcn-amd-amdhsa -target-feature +wavefrontsize32    -target-feature +wavefrontsize64 -o /dev/null -S /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/target-cpu-features-invalid.f90 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/target-cpu-features-invalid.f90 -check-prefix=CHECK-INVALID-WAVEFRONT
# executed command: not /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -triple amdgcn-amd-amdhsa -target-feature +wavefrontsize32 -target-feature +wavefrontsize64 -o /dev/null -S /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/target-cpu-features-invalid.f90
# 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/flang/test/Driver/target-cpu-features-invalid.f90 -check-prefix=CHECK-INVALID-WAVEFRONT
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/target-cpu-features-invalid.f90:16:28: error: CHECK-INVALID-WAVEFRONT: expected string not found in input
# | ! CHECK-INVALID-WAVEFRONT: 'wavefrontsize32' and 'wavefrontsize64' are mutually exclusive
# |                            ^
# | <stdin>:1:1: note: scanning from here
# | error: Unsupported feature ID: '+wavefrontsize32' and '+wavefrontsize64' are mutually exclusive
# | ^
# | <stdin>:1:34: note: possible intended match here
# | error: Unsupported feature ID: '+wavefrontsize32' and '+wavefrontsize64' are mutually exclusive
# |                                  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Driver/target-cpu-features-invalid.f90
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: error: Unsupported feature ID: '+wavefrontsize32' and '+wavefrontsize64' are mutually exclusive 
# | check:16'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:16'1                                      ?                                                               possible intended match
# | >>>>>>
# `-----------------------------
# 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/176599


More information about the llvm-commits mailing list