[llvm] [Hexagon] Fix assert on sign-bit CONST32 immediates (PR #182118)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 18 12:50:52 PST 2026


github-actions[bot] wrote:

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

* 131014 tests passed
* 2947 tests skipped
* 3 tests failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/amdgpu-simplify-libcall-pow.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-simplifylib,instcombine -amdgpu-prelink C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-pow.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-pow.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-simplifylib,instcombine -amdgpu-prelink 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-pow.ll'
# 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\CodeGen\AMDGPU\amdgpu-simplify-libcall-pow.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-pow.ll:1296:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP9:%.*]] = fmul afn <2 x float> [[TMP2]], splat (float 5.000000e-01)
# |               ^
# | <stdin>:1031:38: note: scanning from here
# |  %8 = fcmp afn oeq <2 x float> %7, %2
# |                                      ^
# | <stdin>:1031:38: note: with "TMP2" equal to "%2"
# |  %8 = fcmp afn oeq <2 x float> %7, %2
# |                                      ^
# | <stdin>:1032:2: note: possible intended match here
# |  %9 = fmul nnan afn <2 x float> %2, splat (float 5.000000e-01)
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-pow.ll:1523:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP9:%.*]] = fmul afn float [[TMP2]], 5.000000e-01
# |               ^
# | <stdin>:1158:32: note: scanning from here
# |  %8 = fcmp afn oeq float %7, %2
# |                                ^
# | <stdin>:1158:32: note: with "TMP2" equal to "%2"
# |  %8 = fcmp afn oeq float %7, %2
# |                                ^
# | <stdin>:1159:5: note: possible intended match here
# |  %9 = fmul nnan afn float %2, 5.000000e-01
# |     ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-pow.ll:1561:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP9:%.*]] = fmul afn float [[TMP2]], 5.000000e-01
# |               ^
# | <stdin>:1191:32: note: scanning from here
# |  %8 = fcmp afn oeq float %7, %2
# |                                ^
# | <stdin>:1191:32: note: with "TMP2" equal to "%2"
# |  %8 = fcmp afn oeq float %7, %2
# |                                ^
# | <stdin>:1192:5: note: possible intended match here
# |  %9 = fmul nnan afn float %2, 5.000000e-01
# |     ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-pow.ll:1601:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP9:%.*]] = fmul afn <2 x float> [[TMP2]], splat (float 5.000000e-01)
# |               ^
# | <stdin>:1226:38: note: scanning from here
# |  %8 = fcmp afn oeq <2 x float> %7, %2
# |                                      ^
# | <stdin>:1226:38: note: with "TMP2" equal to "%2"
# |  %8 = fcmp afn oeq <2 x float> %7, %2
# |                                      ^
# | <stdin>:1227:2: note: possible intended match here
# |  %9 = fmul nnan afn <2 x float> %2, splat (float 5.000000e-01)
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-pow.ll:1639:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP9:%.*]] = fmul afn <2 x float> [[TMP2]], splat (float 5.000000e-01)
# |               ^
# | <stdin>:1259:38: note: scanning from here
# |  %8 = fcmp afn oeq <2 x float> %7, %2
# |                                      ^
# | <stdin>:1259:38: note: with "TMP2" equal to "%2"
# |  %8 = fcmp afn oeq <2 x float> %7, %2
# |                                      ^
# | <stdin>:1260:2: note: possible intended match here
# |  %9 = fmul nnan afn <2 x float> %2, splat (float 5.000000e-01)
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-pow.ll:1679:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP9:%.*]] = fmul afn <2 x float> [[TMP2]], splat (float 5.000000e-01)
# |               ^
# | <stdin>:1294:38: note: scanning from here
# |  %8 = fcmp afn oeq <2 x float> %7, %2
# |                                      ^
# | <stdin>:1294:38: note: with "TMP2" equal to "%2"
# |  %8 = fcmp afn oeq <2 x float> %7, %2
# |                                      ^
# | <stdin>:1295:2: note: possible intended match here
# |  %9 = fmul nnan afn <2 x float> %2, splat (float 5.000000e-01)
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-pow.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |           1026:  %3 = call afn <2 x float> @llvm.fabs.v2f32(<2 x float> %x) 
# |           1027:  %4 = call afn <2 x float> @llvm.log2.v2f32(<2 x float> %3) 
# |           1028:  %5 = fmul afn <2 x float> %2, %4 
# |           1029:  %6 = call afn <2 x float> @llvm.exp2.v2f32(<2 x float> %5) 
# |           1030:  %7 = call afn <2 x float> @llvm.trunc.v2f32(<2 x float> %2) 
# |           1031:  %8 = fcmp afn oeq <2 x float> %7, %2 
# | next:1296'0                                          X error: no match found
# | next:1296'1                                            with "TMP2" equal to "%2"
# |           1032:  %9 = fmul nnan afn <2 x float> %2, splat (float 5.000000e-01) 
# | next:1296'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1296'2      ?                                                              possible intended match
# |           1033:  %10 = call afn <2 x float> @llvm.trunc.v2f32(<2 x float> %9) 
# | next:1296'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1034:  %11 = fcmp afn une <2 x float> %10, %9 
# | next:1296'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1035:  %12 = and <2 x i1> %8, %11 
# | next:1296'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1036:  %13 = select afn <2 x i1> %12, <2 x float> %x, <2 x float> splat (float 1.000000e+00) 
# | next:1296'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1037:  %14 = call afn <2 x float> @llvm.copysign.v2f32(<2 x float> %6, <2 x float> %13) 
# | next:1296'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |           1153:  %3 = call afn float @llvm.fabs.f32(float %x) 
# |           1154:  %4 = call afn float @llvm.log2.f32(float %3) 
# |           1155:  %5 = fmul afn float %2, %4 
# |           1156:  %6 = call afn float @llvm.exp2.f32(float %5) 
# |           1157:  %7 = call afn float @llvm.trunc.f32(float %2) 
# |           1158:  %8 = fcmp afn oeq float %7, %2 
# | next:1523'0                                    X error: no match found
# | next:1523'1                                      with "TMP2" equal to "%2"
# |           1159:  %9 = fmul nnan afn float %2, 5.000000e-01 
# | next:1523'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1523'2         ?                                       possible intended match
# |           1160:  %10 = call afn float @llvm.trunc.f32(float %9) 
# | next:1523'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1161:  %11 = fcmp afn une float %10, %9 
# | next:1523'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1162:  %12 = and i1 %8, %11 
# | next:1523'0     ~~~~~~~~~~~~~~~~~~~~~~
# |           1163:  %13 = select afn i1 %12, float %x, float 1.000000e+00 
# | next:1523'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1164:  %14 = call afn float @llvm.copysign.f32(float %6, float %13) 
# | next:1523'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |           1186:  %3 = call afn float @llvm.fabs.f32(float %x) 
# |           1187:  %4 = call afn float @llvm.log2.f32(float %3) 
# |           1188:  %5 = fmul afn float %2, %4 
# |           1189:  %6 = call afn float @llvm.exp2.f32(float %5) 
# |           1190:  %7 = call afn float @llvm.trunc.f32(float %2) 
# |           1191:  %8 = fcmp afn oeq float %7, %2 
# | next:1561'0                                    X error: no match found
# | next:1561'1                                      with "TMP2" equal to "%2"
# |           1192:  %9 = fmul nnan afn float %2, 5.000000e-01 
# | next:1561'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1561'2         ?                                       possible intended match
# |           1193:  %10 = call afn float @llvm.trunc.f32(float %9) 
# | next:1561'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1194:  %11 = fcmp afn une float %10, %9 
# | next:1561'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1195:  %12 = and i1 %8, %11 
# | next:1561'0     ~~~~~~~~~~~~~~~~~~~~~~
# |           1196:  %13 = select afn i1 %12, float %x, float 1.000000e+00 
# | next:1561'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1197:  %14 = call afn float @llvm.copysign.f32(float %6, float %13) 
# | next:1561'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |           1221:  %3 = call afn <2 x float> @llvm.fabs.v2f32(<2 x float> %x) 
# |           1222:  %4 = call afn <2 x float> @llvm.log2.v2f32(<2 x float> %3) 
# |           1223:  %5 = fmul afn <2 x float> %2, %4 
# |           1224:  %6 = call afn <2 x float> @llvm.exp2.v2f32(<2 x float> %5) 
# |           1225:  %7 = call afn <2 x float> @llvm.trunc.v2f32(<2 x float> %2) 
# |           1226:  %8 = fcmp afn oeq <2 x float> %7, %2 
# | next:1601'0                                          X error: no match found
# | next:1601'1                                            with "TMP2" equal to "%2"
# |           1227:  %9 = fmul nnan afn <2 x float> %2, splat (float 5.000000e-01) 
# | next:1601'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1601'2      ?                                                              possible intended match
# |           1228:  %10 = call afn <2 x float> @llvm.trunc.v2f32(<2 x float> %9) 
# | next:1601'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1229:  %11 = fcmp afn une <2 x float> %10, %9 
# | next:1601'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1230:  %12 = and <2 x i1> %8, %11 
# | next:1601'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1231:  %13 = select afn <2 x i1> %12, <2 x float> %x, <2 x float> splat (float 1.000000e+00) 
# | next:1601'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1232:  %14 = call afn <2 x float> @llvm.copysign.v2f32(<2 x float> %6, <2 x float> %13) 
# | next:1601'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |           1254:  %3 = call afn <2 x float> @llvm.fabs.v2f32(<2 x float> %x) 
# |           1255:  %4 = call afn <2 x float> @llvm.log2.v2f32(<2 x float> %3) 
# |           1256:  %5 = fmul afn <2 x float> %2, %4 
# |           1257:  %6 = call afn <2 x float> @llvm.exp2.v2f32(<2 x float> %5) 
# |           1258:  %7 = call afn <2 x float> @llvm.trunc.v2f32(<2 x float> %2) 
# |           1259:  %8 = fcmp afn oeq <2 x float> %7, %2 
# | next:1639'0                                          X error: no match found
# | next:1639'1                                            with "TMP2" equal to "%2"
# |           1260:  %9 = fmul nnan afn <2 x float> %2, splat (float 5.000000e-01) 
# | next:1639'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1639'2      ?                                                              possible intended match
# |           1261:  %10 = call afn <2 x float> @llvm.trunc.v2f32(<2 x float> %9) 
# | next:1639'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1262:  %11 = fcmp afn une <2 x float> %10, %9 
# | next:1639'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1263:  %12 = and <2 x i1> %8, %11 
# | next:1639'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1264:  %13 = select afn <2 x i1> %12, <2 x float> %x, <2 x float> splat (float 1.000000e+00) 
# | next:1639'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1265:  %14 = call afn <2 x float> @llvm.copysign.v2f32(<2 x float> %6, <2 x float> %13) 
# | next:1639'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |           1289:  %3 = call afn <2 x float> @llvm.fabs.v2f32(<2 x float> %x) 
# |           1290:  %4 = call afn <2 x float> @llvm.log2.v2f32(<2 x float> %3) 
# |           1291:  %5 = fmul afn <2 x float> %2, %4 
# |           1292:  %6 = call afn <2 x float> @llvm.exp2.v2f32(<2 x float> %5) 
# |           1293:  %7 = call afn <2 x float> @llvm.trunc.v2f32(<2 x float> %2) 
# |           1294:  %8 = fcmp afn oeq <2 x float> %7, %2 
# | next:1679'0                                          X error: no match found
# | next:1679'1                                            with "TMP2" equal to "%2"
# |           1295:  %9 = fmul nnan afn <2 x float> %2, splat (float 5.000000e-01) 
# | next:1679'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1679'2      ?                                                              possible intended match
# |           1296:  %10 = call afn <2 x float> @llvm.trunc.v2f32(<2 x float> %9) 
# | next:1679'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1297:  %11 = fcmp afn une <2 x float> %10, %9 
# | next:1679'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1298:  %12 = and <2 x i1> %8, %11 
# | next:1679'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1299:  %13 = select afn <2 x i1> %12, <2 x float> %x, <2 x float> splat (float 1.000000e+00) 
# | next:1679'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1300:  %14 = call afn <2 x float> @llvm.copysign.v2f32(<2 x float> %6, <2 x float> %13) 
# | next:1679'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/amdgpu-simplify-libcall-powr.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-simplifylib,instcombine -amdgpu-prelink C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-powr.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-powr.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-simplifylib,instcombine -amdgpu-prelink 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-powr.ll'
# 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\CodeGen\AMDGPU\amdgpu-simplify-libcall-powr.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-powr.ll:87:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP3:%.*]] = call nnan afn float @llvm.fabs.f32(float [[TMP2]])
# |               ^
# | <stdin>:88:64: note: scanning from here
# |  %2 = select nnan afn i1 %1, float 0x7FF8000000000000, float %x
# |                                                                ^
# | <stdin>:88:64: note: with "TMP2" equal to "%2"
# |  %2 = select nnan afn i1 %1, float 0x7FF8000000000000, float %x
# |                                                                ^
# | <stdin>:89:2: note: possible intended match here
# |  %3 = call nnan afn float @llvm.fabs.f32(float %x)
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-powr.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           83:  ret float %26 
# |           84: } 
# |           85:  
# |           86: define float @test_powr_afn_f32_nnan(float %x, float %y) { 
# |           87:  %1 = fcmp nnan afn olt float %x, 0.000000e+00 
# |           88:  %2 = select nnan afn i1 %1, float 0x7FF8000000000000, float %x 
# | next:87'0                                                                    X error: no match found
# | next:87'1                                                                      with "TMP2" equal to "%2"
# |           89:  %3 = call nnan afn float @llvm.fabs.f32(float %x) 
# | next:87'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:87'2      ?                                                  possible intended match
# |           90:  %4 = call nnan afn float @llvm.log2.f32(float %3) 
# | next:87'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           91:  %5 = fmul nnan afn float %y, %4 
# | next:87'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           92:  %6 = call nnan afn float @llvm.exp2.f32(float %5) 
# | next:87'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           93:  %7 = fcmp nnan afn olt float %y, 0.000000e+00 
# | next:87'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           94:  %8 = select nnan afn i1 %7, float 0x7FF0000000000000, float 0.000000e+00 
# | next:87'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/amdgpu-simplify-libcall-rootn.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-simplifylib,instcombine -amdgpu-prelink C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-rootn.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-rootn.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -S -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-simplifylib,instcombine -amdgpu-prelink 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-rootn.ll'
# 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\CodeGen\AMDGPU\amdgpu-simplify-libcall-rootn.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-rootn.ll:1588:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP2:%.*]] = call nnan ninf afn float @llvm.fabs.f32(float [[X]])
# |               ^
# | <stdin>:945:62: note: scanning from here
# |  %1 = call nnan ninf afn float @llvm.amdgcn.rcp.f32(float %0)
# |                                                              ^
# | <stdin>:945:62: note: with "X" equal to "%x"
# |  %1 = call nnan ninf afn float @llvm.amdgcn.rcp.f32(float %0)
# |                                                              ^
# | <stdin>:946:2: note: possible intended match here
# |  %2 = call nnan ninf afn float @llvm.log2.f32(float %x)
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-rootn.ll:1694:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP2:%.*]] = call fast float @llvm.fabs.f32(float [[X]])
# |               ^
# | <stdin>:1018:53: note: scanning from here
# |  %1 = call fast float @llvm.amdgcn.rcp.f32(float %0)
# |                                                     ^
# | <stdin>:1018:53: note: with "X" equal to "%x"
# |  %1 = call fast float @llvm.amdgcn.rcp.f32(float %0)
# |                                                     ^
# | <stdin>:1019:2: note: possible intended match here
# |  %2 = call fast float @llvm.log2.f32(float %x)
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\amdgpu-simplify-libcall-rootn.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |            940: } 
# |            941:  
# |            942: define float @test_rootn_afn_ninf_nnan_f32__x_known_positive(float nofpclass(ninf nsub nnorm) %x, i32 %y) { 
# |            943: entry: 
# |            944:  %0 = sitofp i32 %y to float 
# |            945:  %1 = call nnan ninf afn float @llvm.amdgcn.rcp.f32(float %0) 
# | next:1588'0                                                                  X error: no match found
# | next:1588'1                                                                    with "X" equal to "%x"
# |            946:  %2 = call nnan ninf afn float @llvm.log2.f32(float %x) 
# | next:1588'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1588'2      ?                                                       possible intended match
# |            947:  %3 = fmul nnan ninf afn float %1, %2 
# | next:1588'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            948:  %4 = call nnan ninf afn float @llvm.exp2.f32(float %3) 
# | next:1588'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            949:  %5 = and i32 %y, 1 
# | next:1588'0     ~~~~~~~~~~~~~~~~~~~~
# |            950:  %.not = icmp eq i32 %5, 0 
# | next:1588'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            951:  %6 = select nnan ninf afn i1 %.not, float 1.000000e+00, float %x 
# | next:1588'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |           1013:  
# |           1014: define float @test_fast_rootn_f32_known_positive_y_known_even(float nofpclass(ninf nsub nnorm) %x, i32 %y.arg) { 
# |           1015: entry: 
# |           1016:  %y = shl i32 %y.arg, 1 
# |           1017:  %0 = sitofp i32 %y to float 
# |           1018:  %1 = call fast float @llvm.amdgcn.rcp.f32(float %0) 
# | next:1694'0                                                         X error: no match found
# | next:1694'1                                                           with "X" equal to "%x"
# |           1019:  %2 = call fast float @llvm.log2.f32(float %x) 
# | next:1694'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1694'2      ?                                              possible intended match
# |           1020:  %3 = fmul fast float %1, %2 
# | next:1694'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1021:  %4 = call fast float @llvm.exp2.f32(float %3) 
# | next:1694'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1022:  %5 = fcmp fast oeq float %x, 0.000000e+00 
# | next:1694'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1023:  %6 = icmp slt i32 %y, 0 
# | next:1694'0     ~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1024:  %7 = xor i1 %5, %6 
# | next:1694'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/182118


More information about the llvm-commits mailing list