[llvm] [DAGCombiner] Honor rewrite semantics of fast-math flags in fdiv combine (PR #167595)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 28 08:32:09 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 128966 tests passed
* 2842 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/rsq.f32.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -amdgpu-scalarize-global-loads=false -mtriple=amdgcn -mcpu=tahiti -denormal-fp-math-f32=preserve-sign < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\rsq.f32.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GCN-DAZ,GCN-DAZ-UNSAFE,SI-DAZ-UNSAFE C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\rsq.f32.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -amdgpu-scalarize-global-loads=false -mtriple=amdgcn -mcpu=tahiti -denormal-fp-math-f32=preserve-sign
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GCN-DAZ,GCN-DAZ-UNSAFE,SI-DAZ-UNSAFE 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\rsq.f32.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\rsq.f32.ll:156:17: error: GCN-DAZ-NEXT: is not on the line after the previous match
# | ; GCN-DAZ-NEXT: s_mov_b64 s[4:5], s[0:1]
# | ^
# | <stdin>:163:2: note: 'next' match was here
# | s_mov_b64 s[4:5], s[0:1]
# | ^
# | <stdin>:160:20: note: previous match ended here
# | s_waitcnt vmcnt(0)
# | ^
# | <stdin>:161:1: note: non-matching line after previous match is here
# | s_mov_b32 s2, 0xf800000
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\rsq.f32.ll:770:17: error: GCN-DAZ-NEXT: expected string not found in input
# | ; GCN-DAZ-NEXT: v_rsq_f32_e32 v0, v0
# | ^
# | <stdin>:793:41: note: scanning from here
# | s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | ^
# | <stdin>:795:2: note: possible intended match here
# | v_rcp_f32_e32 v0, v0
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\rsq.f32.ll:850:17: error: GCN-DAZ-NEXT: expected string not found in input
# | ; GCN-DAZ-NEXT: v_rsq_f32_e32 v0, v0
# | ^
# | <stdin>:834:41: note: scanning from here
# | s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | ^
# | <stdin>:836:2: note: possible intended match here
# | v_rcp_f32_e32 v0, v0
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\rsq.f32.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 158: s_waitcnt vmcnt(0)
# | 159: buffer_load_dword v4, v[0:1], s[8:11], 0 addr64 offset:8 glc
# | 160: s_waitcnt vmcnt(0)
# | 161: s_mov_b32 s2, 0xf800000
# | 162: v_mov_b32_e32 v6, 0x260
# | 163: s_mov_b64 s[4:5], s[0:1]
# | next:156 !~~~~~~~~~~~~~~~~~~~~~~~ error: match on wrong line
# | 164: v_mul_f32_e32 v5, 0x4f800000, v2
# | 165: v_cmp_gt_f32_e32 vcc, s2, v2
# | 166: v_cndmask_b32_e32 v2, v2, v5, vcc
# | 167: v_rsq_f32_e32 v5, v2
# | 168: v_mul_f32_e32 v7, v2, v5
# | .
# | .
# | .
# | 788: .globl v_rsq_f32_missing_contract0 ; -- Begin function v_rsq_f32_missing_contract0
# | 789: .p2align 2
# | 790: .type v_rsq_f32_missing_contract0, at function
# | 791: v_rsq_f32_missing_contract0: ; @v_rsq_f32_missing_contract0
# | 792: ; %bb.0:
# | 793: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | next:770'0 X error: no match found
# | 794: v_sqrt_f32_e32 v0, v0
# | next:770'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 795: v_rcp_f32_e32 v0, v0
# | next:770'0 ~~~~~~~~~~~~~~~~~~~~~~
# | next:770'1 ? possible intended match
# | 796: s_setpc_b64 s[30:31]
# | next:770'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 797: .Lfunc_end15:
# | next:770'0 ~~~~~~~~~~~~~~
# | 798: .size v_rsq_f32_missing_contract0, .Lfunc_end15-v_rsq_f32_missing_contract0
# | next:770'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 799: ; -- End function
# | next:770'0 ~~~~~~~~~~~~~~~~~~~
# | 800: .set v_rsq_f32_missing_contract0.num_vgpr, 1
# | next:770'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 829: .globl v_rsq_f32_missing_contract1 ; -- Begin function v_rsq_f32_missing_contract1
# | next:770'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 830: .p2align 2
# | next:770'0 ~~~~~~~~~~~~
# | 831: .type v_rsq_f32_missing_contract1, at function
# | next:770'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 832: v_rsq_f32_missing_contract1: ; @v_rsq_f32_missing_contract1
# | next:770'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 833: ; %bb.0:
# | 834: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | next:850'0 X error: no match found
# | 835: v_sqrt_f32_e32 v0, v0
# | next:850'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 836: v_rcp_f32_e32 v0, v0
# | next:850'0 ~~~~~~~~~~~~~~~~~~~~~~
# | next:850'1 ? possible intended match
# | 837: s_setpc_b64 s[30:31]
# | next:850'0 ~~~~~~~~~~~~~~~~~~~~~~
# | 838: .Lfunc_end16:
# | next:850'0 ~~~~~~~~~~~~~~
# | 839: .size v_rsq_f32_missing_contract1, .Lfunc_end16-v_rsq_f32_missing_contract1
# | next:850'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 840: ; -- End function
# | next:850'0 ~~~~~~~~~~~~~~~~~~~
# | 841: .set v_rsq_f32_missing_contract1.num_vgpr, 1
# | next:850'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/167595
More information about the llvm-commits
mailing list