[clang] [CIR]Fix failing my_fmaxf test (PR #180956)

via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 11 07:36:45 PST 2026


github-actions[bot] wrote:

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

* 87176 tests passed
* 758 tests skipped
* 2 tests failed

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

### Clang
<details>
<summary>Clang.CIR/CodeGen/builtin-floating-point.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.cir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.cir
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple aarch64-apple-darwin-macho -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp-aarch64.cir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple aarch64-apple-darwin-macho -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp-aarch64.cir
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp-aarch64.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c --check-prefix=AARCH64
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp-aarch64.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c --check-prefix=AARCH64
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c --check-prefix=LLVM
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c --check-prefix=LLVM
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c:1738:11: error: LLVM: expected string not found in input
# |  // LLVM: call float @fmaxf(float %{{.*}}, float %{{.*}})
# |           ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll:1465:33: note: scanning from here
# | define dso_local float @my_fmaxf(float %0, float %1) #0 {
# |                                 ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll:1510:14: note: possible intended match here
# | define dso_local float @call_fmaxf(float %0, float %1) #0 {
# |              ^
# | 
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |               .
# |               .
# |               .
# |            1460:  %9 = load x86_fp80, ptr %5, align 16 
# |            1461:  ret x86_fp80 %9 
# |            1462: } 
# |            1463:  
# |            1464: ; Function Attrs: noinline 
# |            1465: define dso_local float @my_fmaxf(float %0, float %1) #0 { 
# | check:1738'0                                     X~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            1466:  %3 = alloca float, i64 1, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1467:  %4 = alloca float, i64 1, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1468:  %5 = alloca float, i64 1, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1469:  store float %0, ptr %3, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1470:  store float %1, ptr %4, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |               .
# |               .
# |               .
# |            1505:  %9 = load x86_fp80, ptr %5, align 16 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1506:  ret x86_fp80 %9 
# | check:1738'0     ~~~~~~~~~~~~~~~~~
# |            1507: } 
# | check:1738'0     ~~
# |            1508:  
# | check:1738'0     ~
# |            1509: ; Function Attrs: noinline 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1510: define dso_local float @call_fmaxf(float %0, float %1) #0 { 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:1738'1                  ?                                               possible intended match
# |            1511:  %3 = alloca float, i64 1, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1512:  %4 = alloca float, i64 1, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1513:  %5 = alloca float, i64 1, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1514:  store float %0, ptr %3, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1515:  store float %1, ptr %4, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |               .
# |               .
# |               .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.CIR/CodeGen/builtin-floating-point.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.cir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.cir
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple aarch64-apple-darwin-macho -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp-aarch64.cir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple aarch64-apple-darwin-macho -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp-aarch64.cir
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp-aarch64.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c --check-prefix=AARCH64
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp-aarch64.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c --check-prefix=AARCH64
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c --check-prefix=LLVM
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c --check-prefix=LLVM
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c:1738:11: error: LLVM: expected string not found in input
# |  // LLVM: call float @fmaxf(float %{{.*}}, float %{{.*}})
# |           ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll:1465:33: note: scanning from here
# | define dso_local float @my_fmaxf(float %0, float %1) #0 {
# |                                 ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll:1510:14: note: possible intended match here
# | define dso_local float @call_fmaxf(float %0, float %1) #0 {
# |              ^
# | 
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/builtin-floating-point.c.tmp.ll
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/builtin-floating-point.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |               .
# |               .
# |               .
# |            1460:  %9 = load x86_fp80, ptr %5, align 16 
# |            1461:  ret x86_fp80 %9 
# |            1462: } 
# |            1463:  
# |            1464: ; Function Attrs: noinline 
# |            1465: define dso_local float @my_fmaxf(float %0, float %1) #0 { 
# | check:1738'0                                     X~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            1466:  %3 = alloca float, i64 1, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1467:  %4 = alloca float, i64 1, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1468:  %5 = alloca float, i64 1, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1469:  store float %0, ptr %3, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1470:  store float %1, ptr %4, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |               .
# |               .
# |               .
# |            1505:  %9 = load x86_fp80, ptr %5, align 16 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1506:  ret x86_fp80 %9 
# | check:1738'0     ~~~~~~~~~~~~~~~~~
# |            1507: } 
# | check:1738'0     ~~
# |            1508:  
# | check:1738'0     ~
# |            1509: ; Function Attrs: noinline 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1510: define dso_local float @call_fmaxf(float %0, float %1) #0 { 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:1738'1                  ?                                               possible intended match
# |            1511:  %3 = alloca float, i64 1, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1512:  %4 = alloca float, i64 1, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1513:  %5 = alloca float, i64 1, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1514:  store float %0, ptr %3, align 4 
# | check:1738'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            1515:  store float %1, ptr %4, align 4 
# | check:1738'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/180956


More information about the cfe-commits mailing list