[llvm] [WebAssembly] narrow instructions use signed saturation (PR #201798)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 03:52:56 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 135432 tests passed
* 3364 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/WebAssembly/fpclamptosat_vec.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\WebAssembly\fpclamptosat_vec.ll -mtriple=wasm32-unknown-unknown -mattr=+simd128,+nontrapping-fptoint | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\WebAssembly\fpclamptosat_vec.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=wasm32-unknown-unknown -mattr=+simd128,+nontrapping-fptoint
# 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\WebAssembly\fpclamptosat_vec.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\WebAssembly\fpclamptosat_vec.ll:519:15: error: CHECK-NEXT: is not on the line after the previous match
# | ; CHECK-NEXT: local.get 9
# | ^
# | <stdin>:509:2: note: 'next' match was here
# | local.get 9
# | ^
# | <stdin>:505:22: note: previous match ended here
# | i32x4.replace_lane 3
# | ^
# | <stdin>:506:1: note: non-matching line after previous match is here
# | v128.const 65535, 65535, 65535, 65535
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\WebAssembly\fpclamptosat_vec.ll:544:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: .local f32, f32, f32, f32, f32, v128, v128
# | ^
# | <stdin>:531:76: note: scanning from here
# | .functype ustest_f16i16 (i32, i32, i32, i32, i32, i32, i32, i32) -> (v128)
# | ^
# | <stdin>:532:2: note: possible intended match here
# | .local f32, f32, f32, f32, f32
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\WebAssembly\fpclamptosat_vec.ll:1885:15: error: CHECK-NEXT: is not on the line after the previous match
# | ; CHECK-NEXT: local.get 9
# | ^
# | <stdin>:1745:2: note: 'next' match was here
# | local.get 9
# | ^
# | <stdin>:1741:22: note: previous match ended here
# | i32x4.replace_lane 3
# | ^
# | <stdin>:1742:1: note: non-matching line after previous match is here
# | v128.const 65535, 65535, 65535, 65535
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\WebAssembly\fpclamptosat_vec.ll:1909:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: .local f32, f32, f32, f32, f32, v128, v128
# | ^
# | <stdin>:1767:79: note: scanning from here
# | .functype ustest_f16i16_mm (i32, i32, i32, i32, i32, i32, i32, i32) -> (v128)
# | ^
# | <stdin>:1768:2: note: possible intended match here
# | .local f32, f32, f32, f32, f32
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\WebAssembly\fpclamptosat_vec.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 504: i32.trunc_sat_f32_u
# | 505: i32x4.replace_lane 3
# | 506: v128.const 65535, 65535, 65535, 65535
# | 507: local.tee 13
# | 508: i32x4.min_u
# | 509: local.get 9
# | next:519 !~~~~~~~~~~ error: match on wrong line
# | 510: i32.trunc_sat_f32_u
# | 511: i32x4.splat
# | 512: local.get 8
# | 513: i32.trunc_sat_f32_u
# | 514: i32x4.replace_lane 1
# | .
# | .
# | .
# | 526: # -- End function
# | 527: .section .text.ustest_f16i16,"",@
# | 528: .globl ustest_f16i16 # -- Begin function ustest_f16i16
# | 529: .type ustest_f16i16, at function
# | 530: ustest_f16i16: # @ustest_f16i16
# | 531: .functype ustest_f16i16 (i32, i32, i32, i32, i32, i32, i32, i32) -> (v128)
# | next:544'0 X error: no match found
# | 532: .local f32, f32, f32, f32, f32
# | next:544'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:544'1 ? possible intended match
# | 533: # %bb.0: # %entry
# | next:544'0 ~~~~~~~~~~~~~~~~~~
# | 534: local.get 5
# | next:544'0 ~~~~~~~~~~~~~
# | 535: call __extendhfsf2
# | next:544'0 ~~~~~~~~~~~~~~~~~~~~
# | 536: local.set 8
# | next:544'0 ~~~~~~~~~~~~~
# | 537: local.get 4
# | next:544'0 ~~~~~~~~~~~~~
# | .
# | .
# | .
# | 1740: i32.trunc_sat_f32_u
# | 1741: i32x4.replace_lane 3
# | 1742: v128.const 65535, 65535, 65535, 65535
# | 1743: local.tee 13
# | 1744: i32x4.min_u
# | 1745: local.get 9
# | next:1885 !~~~~~~~~~~ error: match on wrong line
# | 1746: i32.trunc_sat_f32_u
# | 1747: i32x4.splat
# | 1748: local.get 8
# | 1749: i32.trunc_sat_f32_u
# | 1750: i32x4.replace_lane 1
# | .
# | .
# | .
# | 1762: # -- End function
# | 1763: .section .text.ustest_f16i16_mm,"",@
# | 1764: .globl ustest_f16i16_mm # -- Begin function ustest_f16i16_mm
# | 1765: .type ustest_f16i16_mm, at function
# | 1766: ustest_f16i16_mm: # @ustest_f16i16_mm
# | 1767: .functype ustest_f16i16_mm (i32, i32, i32, i32, i32, i32, i32, i32) -> (v128)
# | next:1909'0 X error: no match found
# | 1768: .local f32, f32, f32, f32, f32
# | next:1909'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1909'1 ? possible intended match
# | 1769: # %bb.0: # %entry
# | next:1909'0 ~~~~~~~~~~~~~~~~~~
# | 1770: local.get 5
# | next:1909'0 ~~~~~~~~~~~~~
# | 1771: call __extendhfsf2
# | next:1909'0 ~~~~~~~~~~~~~~~~~~~~
# | 1772: local.set 8
# | next:1909'0 ~~~~~~~~~~~~~
# | 1773: local.get 4
# | next:1909'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/201798
More information about the llvm-commits
mailing list