[llvm] [SimplifyLibCalls] Don't set nnan on synthesized frem in optimizeFMod (PR #199284)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 22 14:25:05 PDT 2026


github-actions[bot] wrote:

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

* 134989 tests passed
* 3320 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.Transforms/InstCombine/fmod.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -S -passes=instcombine < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\InstCombine\fmod.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\InstCombine\fmod.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -S -passes=instcombine
# 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\Transforms\InstCombine\fmod.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\InstCombine\fmod.ll:130:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[F:%.*]] = select i1 [[C]], float 0x7FF8000000000000, float 1.000000e+00
# |               ^
# | <stdin>:70:7: note: scanning from here
# | entry:
# |       ^
# | <stdin>:70:7: note: with "C" equal to "%c"
# | entry:
# |       ^
# | <stdin>:71:2: note: possible intended match here
# |  %f = select i1 %c, float +qnan, float 1.000000e+00
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\InstCombine\fmod.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            65:  %call = tail call float @fmodf(float %f, float %g) 
# |            66:  ret float %call 
# |            67: } 
# |            68:  
# |            69: define float @test_nan_input_noerrno(float nofpclass(zero) %g, i1 %c) { 
# |            70: entry: 
# | next:130'0           X error: no match found
# | next:130'1             with "C" equal to "%c"
# |            71:  %f = select i1 %c, float +qnan, float 1.000000e+00 
# | next:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:130'2      ?                                                   possible intended match
# |            72:  %call = frem float %f, %g 
# | next:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            73:  ret float %call 
# | next:130'0     ~~~~~~~~~~~~~~~~~
# |            74: } 
# | next:130'0     ~~
# |            75:  
# | next:130'0     ~
# |            76: define float @test_nnan(float %f, float %g) { 
# | next:130'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/199284


More information about the llvm-commits mailing list