[llvm] expandIS_FPCLASS: Support fcNegative and fcPositive (PR #184788)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 5 05:38:10 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 170756 tests passed
* 3009 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/llvm.is.fpclass.bf16.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn -mcpu=gfx704 < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.bf16.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefixes=GFX7CHECK,GFX7SELDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.bf16.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn -mcpu=gfx704
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefixes=GFX7CHECK,GFX7SELDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.bf16.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.bf16.ll:1980:19: error: GFX7CHECK-NEXT: expected string not found in input
# | ; GFX7CHECK-NEXT: v_and_b32_e32 v0, 0xffff, v0
# | ^
# | <stdin>:1459:41: note: scanning from here
# | s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | ^
# | <stdin>:1460:10: note: possible intended match here
# | v_lshlrev_b32_e32 v0, 16, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.bf16.ll:2126:19: error: GFX7CHECK-NEXT: expected string not found in input
# | ; GFX7CHECK-NEXT: v_and_b32_e32 v1, 0xffff, v0
# | ^
# | <stdin>:1555:41: note: scanning from here
# | s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | ^
# | <stdin>:1556:10: note: possible intended match here
# | v_lshlrev_b32_e32 v0, 16, v0
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.bf16.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 1454: .globl ispositive_bf16 ; -- Begin function ispositive_bf16
# | 1455: .p2align 2
# | 1456: .type ispositive_bf16, at function
# | 1457: ispositive_bf16: ; @ispositive_bf16
# | 1458: ; %bb.0:
# | 1459: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | next:1980'0 X error: no match found
# | 1460: v_lshlrev_b32_e32 v0, 16, v0
# | next:1980'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1980'1 ? possible intended match
# | 1461: v_cmp_lt_i32_e32 vcc, -1, v0
# | next:1980'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1462: v_cmp_u_f32_e64 s[4:5], v0, v0
# | next:1980'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1463: s_or_b64 s[4:5], s[4:5], vcc
# | next:1980'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1464: v_cndmask_b32_e64 v0, 0, 1, s[4:5]
# | next:1980'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1465: s_setpc_b64 s[30:31]
# | next:1980'0 ~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 1550: .globl isnegative_bf16 ; -- Begin function isnegative_bf16
# | 1551: .p2align 2
# | 1552: .type isnegative_bf16, at function
# | 1553: isnegative_bf16: ; @isnegative_bf16
# | 1554: ; %bb.0:
# | 1555: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | next:2126'0 X error: no match found
# | 1556: v_lshlrev_b32_e32 v0, 16, v0
# | next:2126'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:2126'1 ? possible intended match
# | 1557: v_cmp_gt_i32_e32 vcc, 0, v0
# | next:2126'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1558: v_cmp_o_f32_e64 s[4:5], v0, v0
# | next:2126'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1559: s_and_b64 s[4:5], s[4:5], vcc
# | next:2126'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1560: v_cndmask_b32_e64 v0, 0, 1, s[4:5]
# | next:2126'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1561: s_setpc_b64 s[30:31]
# | next:2126'0 ~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/llvm.is.fpclass.f16.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx704 < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.f16.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefixes=GFX7CHECK,GFX7SELDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.f16.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx704
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefixes=GFX7CHECK,GFX7SELDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.f16.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.f16.ll:2890:20: error: GFX7SELDAG-NEXT: expected string not found in input
# | ; GFX7SELDAG-NEXT: v_and_b32_e32 v0, 0xffff, v0
# | ^
# | <stdin>:1502:41: note: scanning from here
# | s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | ^
# | <stdin>:1504:10: note: possible intended match here
# | v_lshlrev_b32_e32 v0, 16, v0
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.f16.ll:3056:20: error: GFX7SELDAG-NEXT: expected string not found in input
# | ; GFX7SELDAG-NEXT: v_and_b32_e32 v1, 0xffff, v0
# | ^
# | <stdin>:1599:41: note: scanning from here
# | s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | ^
# | <stdin>:1601:10: note: possible intended match here
# | v_lshlrev_b32_e32 v0, 16, v0
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/llvm.is.fpclass.f16.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 1497: .globl ispositive_f16 ; -- Begin function ispositive_f16
# | 1498: .p2align 2
# | 1499: .type ispositive_f16, at function
# | 1500: ispositive_f16: ; @ispositive_f16
# | 1501: ; %bb.0:
# | 1502: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | next:2890'0 X error: no match found
# | 1503: v_cvt_f32_f16_e32 v1, v0
# | next:2890'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1504: v_lshlrev_b32_e32 v0, 16, v0
# | next:2890'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:2890'1 ? possible intended match
# | 1505: v_cmp_lt_i32_e32 vcc, -1, v0
# | next:2890'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1506: v_cmp_u_f32_e64 s[4:5], v1, v1
# | next:2890'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1507: s_or_b64 s[4:5], s[4:5], vcc
# | next:2890'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1508: v_cndmask_b32_e64 v0, 0, 1, s[4:5]
# | next:2890'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1509: s_setpc_b64 s[30:31]
# | next:2890'0 ~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 1594: .globl isnegative_f16 ; -- Begin function isnegative_f16
# | 1595: .p2align 2
# | 1596: .type isnegative_f16, at function
# | 1597: isnegative_f16: ; @isnegative_f16
# | 1598: ; %bb.0:
# | 1599: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | next:3056'0 X error: no match found
# | 1600: v_cvt_f32_f16_e32 v1, v0
# | next:3056'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1601: v_lshlrev_b32_e32 v0, 16, v0
# | next:3056'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:3056'1 ? possible intended match
# | 1602: v_cmp_gt_i32_e32 vcc, 0, v0
# | next:3056'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1603: v_cmp_o_f32_e64 s[4:5], v1, v1
# | next:3056'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1604: s_and_b64 s[4:5], s[4:5], vcc
# | next:3056'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1605: v_cndmask_b32_e64 v0, 0, 1, s[4:5]
# | next:3056'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 1606: s_setpc_b64 s[30:31]
# | next:3056'0 ~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# 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/184788
More information about the llvm-commits
mailing list