[llvm] [X86] Fix redundant zeroing operations when casting ints to FP vectors (PR #212065)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 25 15:05:01 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 138985 tests passed
* 3585 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/X86/stack-folding-fp-avx1.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -O3 -verify-machineinstrs -disable-peephole -mtriple=x86_64-unknown-unknown -mattr=+avx,+f16c < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\stack-folding-fp-avx1.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\stack-folding-fp-avx1.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -O3 -verify-machineinstrs -disable-peephole -mtriple=x86_64-unknown-unknown -mattr=+avx,+f16c
# 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\X86\stack-folding-fp-avx1.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\stack-folding-fp-avx1.ll:1037:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: vcvtsi2sdl {{[-0-9]+}}(%r{{[sb]}}p), %xmm15, %xmm0 # 4-byte Folded Reload
# | ^
# | <stdin>:1065:9: note: scanning from here
# | #NO_APP
# | ^
# | <stdin>:1067:2: note: possible intended match here
# | vcvtsi2sdl -4(%rsp), %xmm0, %xmm0 # 4-byte Folded Reload
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\stack-folding-fp-avx1.ll:1127:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: vcvtsi2sdq {{[-0-9]+}}(%r{{[sb]}}p), %xmm15, %xmm0 # 8-byte Folded Reload
# | ^
# | <stdin>:1158:9: note: scanning from here
# | #NO_APP
# | ^
# | <stdin>:1160:2: note: possible intended match here
# | vcvtsi2sdq -8(%rsp), %xmm0, %xmm0 # 8-byte Folded Reload
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\stack-folding-fp-avx1.ll:1217:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: vcvtsi2ssl {{[-0-9]+}}(%r{{[sb]}}p), %xmm15, %xmm0 # 4-byte Folded Reload
# | ^
# | <stdin>:1251:9: note: scanning from here
# | #NO_APP
# | ^
# | <stdin>:1253:2: note: possible intended match here
# | vcvtsi2ssl -4(%rsp), %xmm0, %xmm0 # 4-byte Folded Reload
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\stack-folding-fp-avx1.ll:1308:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: vcvtsi2ssq {{[-0-9]+}}(%r{{[sb]}}p), %xmm15, %xmm0 # 8-byte Folded Reload
# | ^
# | <stdin>:1344:9: note: scanning from here
# | #NO_APP
# | ^
# | <stdin>:1346:2: note: possible intended match here
# | vcvtsi2ssq -8(%rsp), %xmm0, %xmm0 # 8-byte Folded Reload
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\stack-folding-fp-avx1.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 1060: .cfi_offset %r15, -24
# | 1061: .cfi_offset %rbp, -16
# | 1062: movl %edi, -4(%rsp) # 4-byte Spill
# | 1063: #APP
# | 1064: nop
# | 1065: #NO_APP
# | next:1037'0 { search range start (exclusive)
# | next:1037'1 error: no match found in search range
# | 1066: vxorpd %xmm0, %xmm0, %xmm0
# | 1067: vcvtsi2sdl -4(%rsp), %xmm0, %xmm0 # 4-byte Folded Reload
# | next:1037'2 ? possible intended match
# | 1068: popq %rbx
# | 1069: .cfi_def_cfa_offset 48
# | 1070: popq %r12
# | 1071: .cfi_def_cfa_offset 40
# | 1072: popq %r13
# | .
# | .
# | .
# | 1083: .cfi_endproc
# | 1084: # -- End function
# | 1085: .globl stack_fold_cvtsi642sd # -- Begin function stack_fold_cvtsi642sd
# | 1086: .prefalign 4, .Lfunc_end61, nop
# | 1087: .type stack_fold_cvtsi642sd, at function
# | 1088: stack_fold_cvtsi642sd: # @stack_fold_cvtsi642sd
# | next:1037'3 } search range end (exclusive)
# | 1089: .cfi_startproc
# | 1090: # %bb.0:
# | 1091: pushq %rbp
# | 1092: .cfi_def_cfa_offset 16
# | 1093: pushq %r15
# | .
# | .
# | .
# | 1153: .cfi_offset %r15, -24
# | 1154: .cfi_offset %rbp, -16
# | 1155: movq %rdi, -8(%rsp) # 8-byte Spill
# | 1156: #APP
# | 1157: nop
# | 1158: #NO_APP
# | next:1127'0 { search range start (exclusive)
# | next:1127'1 error: no match found in search range
# | 1159: vxorpd %xmm0, %xmm0, %xmm0
# | 1160: vcvtsi2sdq -8(%rsp), %xmm0, %xmm0 # 8-byte Folded Reload
# | next:1127'2 ? possible intended match
# | 1161: popq %rbx
# | 1162: .cfi_def_cfa_offset 48
# | 1163: popq %r12
# | 1164: .cfi_def_cfa_offset 40
# | 1165: popq %r13
# | .
# | .
# | .
# | 1176: .cfi_endproc
# | 1177: # -- End function
# | 1178: .globl stack_fold_cvtsi2ss # -- Begin function stack_fold_cvtsi2ss
# | 1179: .prefalign 4, .Lfunc_end63, nop
# | 1180: .type stack_fold_cvtsi2ss, at function
# | 1181: stack_fold_cvtsi2ss: # @stack_fold_cvtsi2ss
# | next:1127'3 } search range end (exclusive)
# | 1182: .cfi_startproc
# | 1183: # %bb.0:
# | 1184: pushq %rbp
# | 1185: .cfi_def_cfa_offset 16
# | 1186: pushq %r15
# | .
# | .
# | .
# | 1246: .cfi_offset %r15, -24
# | 1247: .cfi_offset %rbp, -16
# | 1248: movl %edi, -4(%rsp) # 4-byte Spill
# | 1249: #APP
# | 1250: nop
# | 1251: #NO_APP
# | next:1217'0 { search range start (exclusive)
# | next:1217'1 error: no match found in search range
# | 1252: vxorps %xmm0, %xmm0, %xmm0
# | 1253: vcvtsi2ssl -4(%rsp), %xmm0, %xmm0 # 4-byte Folded Reload
# | next:1217'2 ? possible intended match
# | 1254: popq %rbx
# | 1255: .cfi_def_cfa_offset 48
# | 1256: popq %r12
# | 1257: .cfi_def_cfa_offset 40
# | 1258: popq %r13
# | .
# | .
# | .
# | 1269: .cfi_endproc
# | 1270: # -- End function
# | 1271: .globl stack_fold_cvtsi642ss # -- Begin function stack_fold_cvtsi642ss
# | 1272: .prefalign 4, .Lfunc_end65, nop
# | 1273: .type stack_fold_cvtsi642ss, at function
# | 1274: stack_fold_cvtsi642ss: # @stack_fold_cvtsi642ss
# | next:1217'3 } search range end (exclusive)
# | 1275: .cfi_startproc
# | 1276: # %bb.0:
# | 1277: pushq %rbp
# | 1278: .cfi_def_cfa_offset 16
# | 1279: pushq %r15
# | .
# | .
# | .
# | 1339: .cfi_offset %r15, -24
# | 1340: .cfi_offset %rbp, -16
# | 1341: movq %rdi, -8(%rsp) # 8-byte Spill
# | 1342: #APP
# | 1343: nop
# | 1344: #NO_APP
# | next:1308'0 { search range start (exclusive)
# | next:1308'1 error: no match found in search range
# | 1345: vxorps %xmm0, %xmm0, %xmm0
# | 1346: vcvtsi2ssq -8(%rsp), %xmm0, %xmm0 # 8-byte Folded Reload
# | next:1308'2 ? possible intended match
# | 1347: popq %rbx
# | 1348: .cfi_def_cfa_offset 48
# | 1349: popq %r12
# | 1350: .cfi_def_cfa_offset 40
# | 1351: popq %r13
# | .
# | .
# | .
# | 1362: .cfi_endproc
# | 1363: # -- End function
# | 1364: .globl stack_fold_cvtss2si_int # -- Begin function stack_fold_cvtss2si_int
# | 1365: .prefalign 4, .Lfunc_end67, nop
# | 1366: .type stack_fold_cvtss2si_int, at function
# | 1367: stack_fold_cvtss2si_int: # @stack_fold_cvtss2si_int
# | next:1308'3 } search range end (exclusive)
# | 1368: .cfi_startproc
# | 1369: # %bb.0:
# | 1370: vmovaps %xmm0, -24(%rsp) # 16-byte Spill
# | 1371: #APP
# | 1372: nop
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# 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/212065
More information about the llvm-commits
mailing list