[llvm] [AMDGPU][GlobalISel] Add BF16 widening to V2BF16 for packed instructions (PR #214370)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 7 10:48:11 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 139436 tests passed
* 3644 tests skipped
* 8 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/GlobalISel/fadd.bf16.ll</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu9.00 -amdgpu-enable-delay-alu=0 -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GFX9 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu9.00 -amdgpu-enable-delay-alu=0 -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GFX9 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu12.00 -amdgpu-enable-delay-alu=0 -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GFX12 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu12.00 -amdgpu-enable-delay-alu=0 -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GFX12 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu12.50 -amdgpu-enable-delay-alu=0 -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GFX1250 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu12.50 -amdgpu-enable-delay-alu=0 -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll'
# .---command stderr------------
# | LLVM ERROR: instruction is not legal: %12:sgpr(bf16) = G_FADD %6:sgpr, %10:sgpr (in function: fadd_v2bf16_ss)
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\llc.exe -global-isel=1 -mtriple=amdgpu12.50 -amdgpu-enable-delay-alu=0 -o - C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\CodeGen\\AMDGPU\\GlobalISel\\fadd.bf16.ll
# | 1. Running pass 'CallGraph Pass Manager' on module 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll'.
# | 2. Running pass 'InstructionSelect' on function '@fadd_v2bf16_ss'
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GFX1250 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GFX1250 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fadd.bf16.ll
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/GlobalISel/fma.bf16.ll</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu9.00 -amdgpu-enable-delay-alu=0 -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GFX9 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu9.00 -amdgpu-enable-delay-alu=0 -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GFX9 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu12.00 -amdgpu-enable-delay-alu=0 -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GFX12 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu12.00 -amdgpu-enable-delay-alu=0 -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GFX12 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu12.50 -amdgpu-enable-delay-alu=0 -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GFX1250 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu12.50 -amdgpu-enable-delay-alu=0 -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll'
# .---command stderr------------
# | LLVM ERROR: instruction is not legal: %17:sgpr(bf16) = G_FMA %7:sgpr, %11:sgpr, %15:sgpr (in function: fma_v2bf16_sss)
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\llc.exe -global-isel=1 -mtriple=amdgpu12.50 -amdgpu-enable-delay-alu=0 -o - C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\CodeGen\\AMDGPU\\GlobalISel\\fma.bf16.ll
# | 1. Running pass 'CallGraph Pass Manager' on module 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll'.
# | 2. Running pass 'InstructionSelect' on function '@fma_v2bf16_sss'
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GFX1250 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GFX1250 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fma.bf16.ll
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/GlobalISel/fmul.bf16.ll</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu9.00 -amdgpu-enable-delay-alu=0 -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GFX9 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu9.00 -amdgpu-enable-delay-alu=0 -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GFX9 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu12.00 -amdgpu-enable-delay-alu=0 -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GFX12 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu12.00 -amdgpu-enable-delay-alu=0 -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GFX12 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu12.50 -amdgpu-enable-delay-alu=0 -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GFX1250 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu12.50 -amdgpu-enable-delay-alu=0 -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll'
# .---command stderr------------
# | LLVM ERROR: instruction is not legal: %12:sgpr(bf16) = G_FMUL %6:sgpr, %10:sgpr (in function: fmul_v2bf16_ss)
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0. Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\llc.exe -global-isel=1 -mtriple=amdgpu12.50 -amdgpu-enable-delay-alu=0 -o - C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\CodeGen\\AMDGPU\\GlobalISel\\fmul.bf16.ll
# | 1. Running pass 'CallGraph Pass Manager' on module 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll'.
# | 2. Running pass 'InstructionSelect' on function '@fmul_v2bf16_ss'
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GFX1250 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GFX1250 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\fmul.bf16.ll
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/GlobalISel/legalize-fadd.mir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu6.00-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=SI C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu6.00-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=SI 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu8.03-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=VI C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu8.03-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=VI 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu9.00-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX9 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu9.00-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX9 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir'
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu10.10-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX10 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu10.10-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX10 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir'
# note: command had no output on stdout or stderr
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu11.00-mesa-mesa3d -mattr=-real-true16 -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX11 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu11.00-mesa-mesa3d -mattr=-real-true16 -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX11 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir'
# note: command had no output on stdout or stderr
# RUN: at line 7
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu12.50-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX1250 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu12.50-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX1250 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir:1210:18: error: GFX1250-NEXT: expected string not found in input
# | ; GFX1250-NEXT: [[UV:%[0-9]+]]:_(bf16), [[UV1:%[0-9]+]]:_(bf16) = G_UNMERGE_VALUES [[COPY]](<2 x bf16>)
# | ^
# | <stdin>:1663:32: note: scanning from here
# | %1:_(<2 x bf16>) = COPY $vgpr1
# | ^
# | <stdin>:1663:32: note: with "COPY" equal to "%0"
# | %1:_(<2 x bf16>) = COPY $vgpr1
# | ^
# | <stdin>:1663:32: note: pattern attempts to capture variables: "UV", "UV1"
# | %1:_(<2 x bf16>) = COPY $vgpr1
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fadd.mir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 1658: body: |
# | 1659: bb.0:
# | 1660: liveins: $vgpr0, $vgpr1
# | 1661:
# | 1662: %0:_(<2 x bf16>) = COPY $vgpr0
# | 1663: %1:_(<2 x bf16>) = COPY $vgpr1
# | next:1210'0 { search range start (exclusive)
# | next:1210'1 error: no match found in search range
# | next:1210'2 with "COPY" equal to "%0"
# | next:1210'3 pattern attempts to capture variables: "UV", "UV1"
# | 1664: %2:_(<2 x bf16>) = G_FADD %0, %1
# | 1665: $vgpr0 = COPY %2(<2 x bf16>)
# | 1666: ...
# | 1667: ---
# | 1668: name: test_fadd_v4bf16
# | next:1210'4 } search range end (exclusive)
# | 1669: alignment: 1
# | 1670: exposesReturnsTwice: false
# | 1671: legalized: true
# | 1672: regBankSelected: false
# | 1673: selected: false
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/GlobalISel/legalize-fma.mir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu6.00-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=SI C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu6.00-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=SI 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu8.03-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=VI C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu8.03-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=VI 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu9.00-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX9 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu9.00-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX9 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir'
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu10.10-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX10 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu10.10-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX10 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir'
# note: command had no output on stdout or stderr
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu11.00-mesa-mesa3d -mattr=-real-true16 -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX11 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu11.00-mesa-mesa3d -mattr=-real-true16 -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX11 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir'
# note: command had no output on stdout or stderr
# RUN: at line 7
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu12.50-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX1250 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu12.50-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX1250 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir:1355:13: error: GFX1250: expected string not found in input
# | ; GFX1250: [[DEF:%[0-9]+]]:_(bf16) = G_IMPLICIT_DEF
# | ^
# | <stdin>:1634:22: note: scanning from here
# | name: test_fma_v2bf16
# | ^
# | <stdin>:1634:22: note: pattern attempts to capture variables: "DEF"
# | name: test_fma_v2bf16
# | ^
# | <stdin>:1745:2: note: possible intended match here
# | %0:_(<2 x bf16>) = G_IMPLICIT_DEF
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fma.mir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 1629: %22:_(i16) = G_TRUNC %21(i32)
# | 1630: %3:_(bf16) = G_BITCAST %22(i16)
# | 1631: S_NOP 0, implicit %3(bf16)
# | 1632: ...
# | 1633: ---
# | 1634: name: test_fma_v2bf16
# | check:1355'0 { search range start (exclusive)
# | check:1355'1 error: no match found in search range
# | check:1355'2 pattern attempts to capture variables: "DEF"
# | 1635: alignment: 1
# | 1636: exposesReturnsTwice: false
# | 1637: legalized: true
# | 1638: regBankSelected: false
# | 1639: selected: false
# | .
# | .
# | .
# | 1740: numKernargPreloadSGPRs: 0
# | 1741: isWholeWaveFunction: false
# | 1742: minNumAGPRs: 4294967295
# | 1743: body: |
# | 1744: bb.0:
# | 1745: %0:_(<2 x bf16>) = G_IMPLICIT_DEF
# | check:1355'3 ? possible intended match
# | 1746: %1:_(<2 x bf16>) = G_IMPLICIT_DEF
# | 1747: %2:_(<2 x bf16>) = G_IMPLICIT_DEF
# | 1748: %3:_(<2 x bf16>) = G_FMA %0, %1, %2
# | 1749: S_NOP 0, implicit %3(<2 x bf16>)
# | 1750: ...
# | 1751: ---
# | 1752: name: test_fma_v4bf16
# | check:1355'4 } search range end (exclusive)
# | 1753: alignment: 1
# | 1754: exposesReturnsTwice: false
# | 1755: legalized: true
# | 1756: regBankSelected: false
# | 1757: selected: false
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/GlobalISel/legalize-fmul.mir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu6.00-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=SI C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu6.00-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=SI 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu8.03-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=VI C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu8.03-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=VI 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu9.00-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX9 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu9.00-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX9 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir'
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu11.00-mesa-mesa3d -mattr=-real-true16 -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX11 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu11.00-mesa-mesa3d -mattr=-real-true16 -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX11 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir'
# note: command had no output on stdout or stderr
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu12.50-mesa-mesa3d -run-pass=legalizer C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN,GFX1250 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu12.50-mesa-mesa3d -run-pass=legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN,GFX1250 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir:1044:13: error: GFX1250: expected string not found in input
# | ; GFX1250: [[DEF:%[0-9]+]]:_(bf16) = G_IMPLICIT_DEF
# | ^
# | <stdin>:1550:23: note: scanning from here
# | name: test_fmul_v2bf16
# | ^
# | <stdin>:1550:23: note: pattern attempts to capture variables: "DEF"
# | name: test_fmul_v2bf16
# | ^
# | <stdin>:1660:2: note: possible intended match here
# | %0:_(<2 x bf16>) = G_IMPLICIT_DEF
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\GlobalISel\legalize-fmul.mir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 1545: %20:_(i16) = G_TRUNC %19(i32)
# | 1546: %2:_(bf16) = G_BITCAST %20(i16)
# | 1547: S_NOP 0, implicit %2(bf16)
# | 1548: ...
# | 1549: ---
# | 1550: name: test_fmul_v2bf16
# | check:1044'0 { search range start (exclusive)
# | check:1044'1 error: no match found in search range
# | check:1044'2 pattern attempts to capture variables: "DEF"
# | 1551: alignment: 1
# | 1552: exposesReturnsTwice: false
# | 1553: legalized: true
# | 1554: regBankSelected: false
# | 1555: selected: false
# | .
# | .
# | .
# | 1655: numKernargPreloadSGPRs: 0
# | 1656: isWholeWaveFunction: false
# | 1657: minNumAGPRs: 4294967295
# | 1658: body: |
# | 1659: bb.0:
# | 1660: %0:_(<2 x bf16>) = G_IMPLICIT_DEF
# | check:1044'3 ? possible intended match
# | 1661: %1:_(<2 x bf16>) = G_IMPLICIT_DEF
# | 1662: %2:_(<2 x bf16>) = G_FMUL %0, %1
# | 1663: S_NOP 0, implicit %2(<2 x bf16>)
# | 1664: ...
# | 1665: ---
# | 1666: name: test_fmul_v4bf16
# | check:1044'4 } search range end (exclusive)
# | 1667: alignment: 1
# | 1668: exposesReturnsTwice: false
# | 1669: legalized: true
# | 1670: regBankSelected: false
# | 1671: selected: false
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/legalize-bf16-flags.mir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=0 -mtriple=amdgpu12.5 -mattr=+real-true16 -run-pass=legalizer -verify-machineinstrs C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\legalize-bf16-flags.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\legalize-bf16-flags.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=0 -mtriple=amdgpu12.5 -mattr=+real-true16 -run-pass=legalizer -verify-machineinstrs 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\legalize-bf16-flags.mir' -o -
# 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\AMDGPU\legalize-bf16-flags.mir'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\legalize-bf16-flags.mir:22:16: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[DEF:%[0-9]+]]:_(bf16) = G_IMPLICIT_DEF
# | ^
# | <stdin>:164:30: note: scanning from here
# | %3:_(bf16) = G_TRUNC %1(i32)
# | ^
# | <stdin>:164:30: note: pattern attempts to capture variables: "DEF"
# | %3:_(bf16) = G_TRUNC %1(i32)
# | ^
# | <stdin>:183:2: note: possible intended match here
# | %20:_(i16) = G_TRUNC %19(i32)
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\legalize-bf16-flags.mir:55:16: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[DEF:%[0-9]+]]:_(bf16) = G_IMPLICIT_DEF
# | ^
# | <stdin>:332:30: note: scanning from here
# | %3:_(bf16) = G_TRUNC %1(i32)
# | ^
# | <stdin>:332:30: note: pattern attempts to capture variables: "DEF"
# | %3:_(bf16) = G_TRUNC %1(i32)
# | ^
# | <stdin>:342:2: note: possible intended match here
# | %8:_(f32) = G_FADD %6, %7
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\legalize-bf16-flags.mir:88:16: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[DEF:%[0-9]+]]:_(bf16) = G_IMPLICIT_DEF
# | ^
# | <stdin>:505:30: note: scanning from here
# | %3:_(bf16) = G_TRUNC %1(i32)
# | ^
# | <stdin>:505:30: note: pattern attempts to capture variables: "DEF"
# | %3:_(bf16) = G_TRUNC %1(i32)
# | ^
# | <stdin>:530:2: note: possible intended match here
# | %4:_(bf16) = G_BITCAST %23(i16)
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\legalize-bf16-flags.mir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 159: liveins: $vgpr0, $vgpr1
# | 160:
# | 161: %0:_(i32) = COPY $vgpr0
# | 162: %1:_(i32) = COPY $vgpr1
# | 163: %2:_(bf16) = G_TRUNC %0(i32)
# | 164: %3:_(bf16) = G_TRUNC %1(i32)
# | next:22'0 { search range start (exclusive)
# | next:22'1 error: no match found in search range
# | next:22'2 pattern attempts to capture variables: "DEF"
# | 165: %24:_(i16) = G_BITCAST %2(bf16)
# | 166: %25:_(i32) = G_ANYEXT %24(i16)
# | 167: %12:_(i32) = G_CONSTANT i32 16
# | 168: %26:_(i32) = G_SHL %25, %12(i32)
# | 169: %6:_(f32) = G_BITCAST %26(i32)
# | .
# | .
# | .
# | 178: %15:_(i32) = G_AND %13, %14
# | 179: %16:_(i32) = G_CONSTANT i32 32767
# | 180: %17:_(i32) = G_ADD %15, %16
# | 181: %18:_(i32) = G_ADD %9, %17
# | 182: %19:_(i32) = G_LSHR %18, %12(i32)
# | 183: %20:_(i16) = G_TRUNC %19(i32)
# | next:22'3 ? possible intended match
# | 184: %4:_(bf16) = G_BITCAST %20(i16)
# | 185: %5:_(i32) = G_ANYEXT %4(bf16)
# | 186: $vgpr0 = COPY %5(i32)
# | 187: SI_RETURN implicit $vgpr0
# | 188: ...
# | 189: ---
# | 190: name: test_fadd_bf16_no_flags
# | next:22'4 } search range end (exclusive)
# | 191: alignment: 1
# | 192: exposesReturnsTwice: false
# | 193: legalized: true
# | 194: regBankSelected: false
# | 195: selected: false
# | .
# | .
# | .
# | 327: liveins: $vgpr0, $vgpr1
# | 328:
# | 329: %0:_(i32) = COPY $vgpr0
# | 330: %1:_(i32) = COPY $vgpr1
# | 331: %2:_(bf16) = G_TRUNC %0(i32)
# | 332: %3:_(bf16) = G_TRUNC %1(i32)
# | next:55'0 { search range start (exclusive)
# | next:55'1 error: no match found in search range
# | next:55'2 pattern attempts to capture variables: "DEF"
# | 333: %27:_(i16) = G_BITCAST %2(bf16)
# | 334: %28:_(i32) = G_ANYEXT %27(i16)
# | 335: %12:_(i32) = G_CONSTANT i32 16
# | 336: %29:_(i32) = G_SHL %28, %12(i32)
# | 337: %6:_(f32) = G_BITCAST %29(i32)
# | 338: %24:_(i16) = G_BITCAST %3(bf16)
# | 339: %25:_(i32) = G_ANYEXT %24(i16)
# | 340: %26:_(i32) = G_SHL %25, %12(i32)
# | 341: %7:_(f32) = G_BITCAST %26(i32)
# | 342: %8:_(f32) = G_FADD %6, %7
# | next:55'3 ? possible intended match
# | 343: %9:_(i32) = G_BITCAST %8(f32)
# | 344: %10:_(i32) = G_CONSTANT i32 4194304
# | 345: %11:_(i32) = G_OR %9, %10
# | 346: %13:_(i32) = G_LSHR %9, %12(i32)
# | 347: %14:_(i32) = G_CONSTANT i32 1
# | .
# | .
# | .
# | 358: %5:_(i32) = G_ANYEXT %4(bf16)
# | 359: $vgpr0 = COPY %5(i32)
# | 360: SI_RETURN implicit $vgpr0
# | 361: ...
# | 362: ---
# | 363: name: test_fmul_bf16_nofpexcept
# | next:55'4 } search range end (exclusive)
# | 364: alignment: 1
# | 365: exposesReturnsTwice: false
# | 366: legalized: true
# | 367: regBankSelected: false
# | 368: selected: false
# | .
# | .
# | .
# | 500: liveins: $vgpr0, $vgpr1
# | 501:
# | 502: %0:_(i32) = COPY $vgpr0
# | 503: %1:_(i32) = COPY $vgpr1
# | 504: %2:_(bf16) = G_TRUNC %0(i32)
# | 505: %3:_(bf16) = G_TRUNC %1(i32)
# | next:88'0 { search range start (exclusive)
# | next:88'1 error: no match found in search range
# | next:88'2 pattern attempts to capture variables: "DEF"
# | 506: %27:_(i16) = G_BITCAST %2(bf16)
# | 507: %28:_(i32) = G_ANYEXT %27(i16)
# | 508: %12:_(i32) = G_CONSTANT i32 16
# | 509: %29:_(i32) = G_SHL %28, %12(i32)
# | 510: %6:_(f32) = G_BITCAST %29(i32)
# | .
# | .
# | .
# | 525: %19:_(f32) = G_FCONSTANT float 0.000000e+00
# | 526: %20:_(i1) = G_FCMP floatpred(uno), %8(f32), %19
# | 527: %21:_(i32) = G_SELECT %20(i1), %11, %18
# | 528: %22:_(i32) = G_LSHR %21, %12(i32)
# | 529: %23:_(i16) = G_TRUNC %22(i32)
# | 530: %4:_(bf16) = G_BITCAST %23(i16)
# | next:88'3 ? possible intended match
# | 531: %5:_(i32) = G_ANYEXT %4(bf16)
# | 532: $vgpr0 = COPY %5(i32)
# | 533: SI_RETURN implicit $vgpr0
# | 534: ...
# | next:88'4 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/packed-bf16.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=0 -mtriple=amdgpu12.5 -mattr=+real-true16 -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefixes=GCN,SDAG,SDAG-TRUE16 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=0 -mtriple=amdgpu12.5 -mattr=+real-true16 -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefixes=GCN,SDAG,SDAG-TRUE16 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=0 -mtriple=amdgpu12.5 -mattr=-real-true16 -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefixes=GCN,SDAG,SDAG-FAKE16 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=0 -mtriple=amdgpu12.5 -mattr=-real-true16 -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefixes=GCN,SDAG,SDAG-FAKE16 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu12.5 -mattr=+real-true16 -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefixes=GCN,GISEL,GISEL-TRUE16 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu12.5 -mattr=+real-true16 -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefixes=GCN,GISEL,GISEL-TRUE16 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll:24:22: error: GISEL-TRUE16-NEXT: expected string not found in input
# | ; GISEL-TRUE16-NEXT: v_pk_add_bf16 v0, v0, v1
# | ^
# | <stdin>:19:18: note: scanning from here
# | s_wait_kmcnt 0x0
# | ^
# | <stdin>:22:2: note: possible intended match here
# | v_add_f32_e32 v0, v0, v1
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll:66:22: error: GISEL-TRUE16-NEXT: expected string not found in input
# | ; GISEL-TRUE16-NEXT: v_pk_mul_bf16 v0, v0, v1
# | ^
# | <stdin>:111:18: note: scanning from here
# | s_wait_kmcnt 0x0
# | ^
# | <stdin>:114:2: note: possible intended match here
# | v_mul_f32_e32 v0, v0, v1
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll:108:22: error: GISEL-TRUE16-NEXT: expected string not found in input
# | ; GISEL-TRUE16-NEXT: v_pk_fma_bf16 v0, v0, v1, v2
# | ^
# | <stdin>:203:18: note: scanning from here
# | s_wait_kmcnt 0x0
# | ^
# | <stdin>:213:6: note: possible intended match here
# | v_cndmask_b32_e32 v0, v0, v1, vcc_lo
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll:152:22: error: GISEL-TRUE16-NEXT: expected string not found in input
# | ; GISEL-TRUE16-NEXT: v_pk_mul_bf16 v0, 1.0, v0 op_sel_hi:[0,1]
# | ^
# | <stdin>:296:18: note: scanning from here
# | s_wait_kmcnt 0x0
# | ^
# | <stdin>:297:10: note: possible intended match here
# | v_lshlrev_b32_e32 v0, 16, v0
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll:173:13: error: GCN-NEXT: expected string not found in input
# | ; GCN-NEXT: v_pk_mul_bf16 v0, 1.0, v0 op_sel_hi:[0,1]
# | ^
# | <stdin>:347:18: note: scanning from here
# | s_wait_kmcnt 0x0
# | ^
# | <stdin>:351:7: note: possible intended match here
# | v_dual_max_num_f32 v0, v0, v0 :: v_dual_max_num_f32 v1, v1, v1
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll:205:22: error: GISEL-TRUE16-NEXT: expected string not found in input
# | ; GISEL-TRUE16-NEXT: v_pk_mul_bf16 v0, v0, v1
# | ^
# | <stdin>:407:18: note: scanning from here
# | s_wait_kmcnt 0x0
# | ^
# | <stdin>:410:2: note: possible intended match here
# | v_mul_f32_e32 v0, v0, v1
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll:251:15: error: GISEL-NEXT: is not on the line after the previous match
# | ; GISEL-NEXT: s_set_pc_i64 s[30:31]
# | ^
# | <stdin>:504:2: note: 'next' match was here
# | s_set_pc_i64 s[30:31]
# | ^
# | <stdin>:483:26: note: previous match ended here
# | v_pk_add_bf16 v0, v0, v2
# | ^
# | <stdin>:484:1: note: non-matching line after previous match is here
# | v_mov_b16_e32 v1.l, v0.h
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\packed-bf16.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 14: .p2align 7
# | 15: .type test_fadd_bf16, at function
# | 16: test_fadd_bf16: ; @test_fadd_bf16
# | 17: ; %bb.0:
# | 18: s_wait_loadcnt_dscnt 0x0
# | 19: s_wait_kmcnt 0x0
# | next:24'0 { search range start (exclusive)
# | next:24'1 error: no match found in search range
# | 20: v_dual_lshlrev_b32 v0, 16, v0 :: v_dual_lshlrev_b32 v1, 16, v1
# | 21: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
# | 22: v_add_f32_e32 v0, v0, v1
# | next:24'2 ? possible intended match
# | 23: v_bfe_u32 v1, v0, 16, 1
# | 24: v_or_b32_e32 v2, 0x400000, v0
# | 25: v_cmp_u_f32_e32 vcc_lo, 0, v0
# | 26: s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
# | 27: v_add3_u32 v1, v1, v0, 0x7fff
# | .
# | .
# | .
# | 62: .long 0
# | 63: .text
# | 64: .globl test_fadd_v2bf16 ; -- Begin function test_fadd_v2bf16
# | 65: .p2align 7
# | 66: .type test_fadd_v2bf16, at function
# | 67: test_fadd_v2bf16: ; @test_fadd_v2bf16
# | next:24'3 } search range end (exclusive)
# | 68: ; %bb.0:
# | 69: s_wait_loadcnt_dscnt 0x0
# | 70: s_wait_kmcnt 0x0
# | 71: v_pk_add_bf16 v0, v0, v1
# | 72: s_set_pc_i64 s[30:31]
# | .
# | .
# | .
# | 106: .p2align 7
# | 107: .type test_fmul_bf16, at function
# | 108: test_fmul_bf16: ; @test_fmul_bf16
# | 109: ; %bb.0:
# | 110: s_wait_loadcnt_dscnt 0x0
# | 111: s_wait_kmcnt 0x0
# | next:66'0 { search range start (exclusive)
# | next:66'1 error: no match found in search range
# | 112: v_dual_lshlrev_b32 v0, 16, v0 :: v_dual_lshlrev_b32 v1, 16, v1
# | 113: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
# | 114: v_mul_f32_e32 v0, v0, v1
# | next:66'2 ? possible intended match
# | 115: v_bfe_u32 v1, v0, 16, 1
# | 116: v_or_b32_e32 v2, 0x400000, v0
# | 117: v_cmp_u_f32_e32 vcc_lo, 0, v0
# | 118: s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
# | 119: v_add3_u32 v1, v1, v0, 0x7fff
# | .
# | .
# | .
# | 154: .long 0
# | 155: .text
# | 156: .globl test_fmul_v2bf16 ; -- Begin function test_fmul_v2bf16
# | 157: .p2align 7
# | 158: .type test_fmul_v2bf16, at function
# | 159: test_fmul_v2bf16: ; @test_fmul_v2bf16
# | next:66'3 } search range end (exclusive)
# | 160: ; %bb.0:
# | 161: s_wait_loadcnt_dscnt 0x0
# | 162: s_wait_kmcnt 0x0
# | 163: v_pk_mul_bf16 v0, v0, v1
# | 164: s_set_pc_i64 s[30:31]
# | .
# | .
# | .
# | 198: .p2align 7
# | 199: .type test_fma_bf16, at function
# | 200: test_fma_bf16: ; @test_fma_bf16
# | 201: ; %bb.0:
# | 202: s_wait_loadcnt_dscnt 0x0
# | 203: s_wait_kmcnt 0x0
# | next:108'0 { search range start (exclusive)
# | next:108'1 error: no match found in search range
# | 204: v_dual_lshlrev_b32 v0, 16, v0 :: v_dual_lshlrev_b32 v1, 16, v1
# | 205: v_lshlrev_b32_e32 v2, 16, v2
# | 206: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
# | 207: v_fmac_f32_e32 v2, v0, v1
# | 208: v_bfe_u32 v0, v2, 16, 1
# | 209: v_or_b32_e32 v1, 0x400000, v2
# | 210: v_cmp_u_f32_e32 vcc_lo, 0, v2
# | 211: s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_1)
# | 212: v_add3_u32 v0, v0, v2, 0x7fff
# | 213: v_cndmask_b32_e32 v0, v0, v1, vcc_lo
# | next:108'2 ? possible intended match
# | 214: s_delay_alu instid0(VALU_DEP_1)
# | 215: v_lshrrev_b32_e32 v0, 16, v0
# | 216: s_set_pc_i64 s[30:31]
# | 217: .Lfunc_end4:
# | 218: .size test_fma_bf16, .Lfunc_end4-test_fma_bf16
# | .
# | .
# | .
# | 247: .long 0
# | 248: .text
# | 249: .globl test_fma_v2bf16 ; -- Begin function test_fma_v2bf16
# | 250: .p2align 7
# | 251: .type test_fma_v2bf16, at function
# | 252: test_fma_v2bf16: ; @test_fma_v2bf16
# | next:108'3 } search range end (exclusive)
# | 253: ; %bb.0:
# | 254: s_wait_loadcnt_dscnt 0x0
# | 255: s_wait_kmcnt 0x0
# | 256: v_pk_fma_bf16 v0, v0, v1, v2
# | 257: s_set_pc_i64 s[30:31]
# | .
# | .
# | .
# | 291: .p2align 7
# | 292: .type test_canonicalize_bf16, at function
# | 293: test_canonicalize_bf16: ; @test_canonicalize_bf16
# | 294: ; %bb.0:
# | 295: s_wait_loadcnt_dscnt 0x0
# | 296: s_wait_kmcnt 0x0
# | next:152'0 { search range start (exclusive)
# | next:152'1 error: no match found in search range
# | 297: v_lshlrev_b32_e32 v0, 16, v0
# | next:152'2 ? possible intended match
# | 298: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
# | 299: v_max_num_f32_e32 v0, v0, v0
# | 300: v_bfe_u32 v1, v0, 16, 1
# | 301: v_or_b32_e32 v2, 0x400000, v0
# | 302: v_cmp_u_f32_e32 vcc_lo, 0, v0
# | .
# | .
# | .
# | 339: .long 0
# | 340: .text
# | 341: .globl test_canonicalize_v2bf16 ; -- Begin function test_canonicalize_v2bf16
# | 342: .p2align 7
# | 343: .type test_canonicalize_v2bf16, at function
# | 344: test_canonicalize_v2bf16: ; @test_canonicalize_v2bf16
# | next:152'3 } search range end (exclusive)
# | 345: ; %bb.0:
# | 346: s_wait_loadcnt_dscnt 0x0
# | 347: s_wait_kmcnt 0x0
# | next:173'0 { search range start (exclusive)
# | next:173'1 error: no match found in search range
# | 348: v_mov_b16_e32 v1.l, v0.h
# | 349: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
# | 350: v_dual_lshlrev_b32 v0, 16, v0 :: v_dual_lshlrev_b32 v1, 16, v1
# | 351: v_dual_max_num_f32 v0, v0, v0 :: v_dual_max_num_f32 v1, v1, v1
# | next:173'2 ? possible intended match
# | 352: s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_3)
# | 353: v_bfe_u32 v3, v0, 16, 1
# | 354: v_or_b32_e32 v5, 0x400000, v0
# | 355: v_bfe_u32 v2, v1, 16, 1
# | 356: v_or_b32_e32 v4, 0x400000, v1
# | .
# | .
# | .
# | 399: .long 0
# | 400: .text
# | 401: .globl test_complex_bf16 ; -- Begin function test_complex_bf16
# | 402: .p2align 7
# | 403: .type test_complex_bf16, at fu
# | ...
# `---data was truncated (10240/13529) (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/214370
More information about the llvm-commits
mailing list