[llvm] [X86] Lower `minimum`/`maximum`/`minimumnum`/`maximumnum` using bitwise operations (PR #170069)

via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 31 17:33:34 PST 2025


github-actions[bot] wrote:

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

* 167557 tests passed
* 2971 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/X86/fminimumnum-fmaximumnum.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/X86/fminimumnum-fmaximumnum.ll -mtriple=x86_64-unknown-unknown -mattr=+sse2     | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/X86/fminimumnum-fmaximumnum.ll --check-prefixes=SSE2
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=x86_64-unknown-unknown -mattr=+sse2
# 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/llvm/test/CodeGen/X86/fminimumnum-fmaximumnum.ll --check-prefixes=SSE2
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/X86/fminimumnum-fmaximumnum.ll:3188:14: error: SSE2-NEXT: expected string not found in input
# | ; SSE2-NEXT: jne .LBB39_2
# |              ^
# | <stdin>:967:21: note: scanning from here
# |  movaps %xmm0, %xmm1
# |                     ^
# | <stdin>:968:2: note: possible intended match here
# |  jne .LBB41_2
# |  ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/X86/fminimumnum-fmaximumnum.ll:3378:14: error: SSE2-NEXT: expected string not found in input
# | ; SSE2-NEXT: jne .LBB40_2
# |              ^
# | <stdin>:1026:21: note: scanning from here
# |  movaps %xmm0, %xmm1
# |                     ^
# | <stdin>:1027:2: note: possible intended match here
# |  jne .LBB42_2
# |  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/X86/fminimumnum-fmaximumnum.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |            962:  movaps %xmm0, 16(%rsp) # 16-byte Spill 
# |            963:  movaps %xmm0, %xmm1 
# |            964:  callq __unordtf2 at PLT 
# |            965:  movaps (%rsp), %xmm0 # 16-byte Reload 
# |            966:  testl %eax, %eax 
# |            967:  movaps %xmm0, %xmm1 
# | next:3188'0                         X error: no match found
# |            968:  jne .LBB41_2 
# | next:3188'0     ~~~~~~~~~~~~~~
# | next:3188'1      ?             possible intended match
# |            969: # %bb.1: # %start 
# | next:3188'0     ~~~~~~~~~~~~~~~~~~
# |            970:  movaps 16(%rsp), %xmm1 # 16-byte Reload 
# | next:3188'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            971: .LBB41_2: # %start 
# | next:3188'0     ~~~~~~~~~~~~~~~~~~~
# |            972:  movaps %xmm1, 16(%rsp) # 16-byte Spill 
# | next:3188'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            973:  movaps %xmm0, %xmm1 
# | next:3188'0     ~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |           1021:  movaps %xmm0, 16(%rsp) # 16-byte Spill 
# |           1022:  movaps %xmm0, %xmm1 
# |           1023:  callq __unordtf2 at PLT 
# |           1024:  movaps (%rsp), %xmm0 # 16-byte Reload 
# |           1025:  testl %eax, %eax 
# |           1026:  movaps %xmm0, %xmm1 
# | next:3378'0                         X error: no match found
# |           1027:  jne .LBB42_2 
# | next:3378'0     ~~~~~~~~~~~~~~
# | next:3378'1      ?             possible intended match
# |           1028: # %bb.1: # %start 
# | next:3378'0     ~~~~~~~~~~~~~~~~~~
# |           1029:  movaps 16(%rsp), %xmm1 # 16-byte Reload 
# | next:3378'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1030: .LBB42_2: # %start 
# | next:3378'0     ~~~~~~~~~~~~~~~~~~~
# |           1031:  movaps %xmm1, 16(%rsp) # 16-byte Spill 
# | next:3378'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1032:  movaps %xmm0, %xmm1 
# | next:3378'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/170069


More information about the llvm-commits mailing list