[clang] First draft: [Clang] Add constant evaluation support for x86 psadbw (PR #169253)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 19 06:09:34 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 53972 tests passed
* 1230 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CodeGen/builtins-x86.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -DUSE_64 -triple x86_64-unknown-unknown -target-feature +fxsr -target-feature +avx -target-feature +xsaveopt -target-feature +xsaves -target-feature +xsavec -target-feature +mwaitx -target-feature +clzero -target-feature +shstk -target-feature +wbnoinvd -target-feature +cldemote -Wno-implicit-function-declaration -emit-llvm -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\Output\builtins-x86.c.tmp C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtins-x86.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -DUSE_64 -triple x86_64-unknown-unknown -target-feature +fxsr -target-feature +avx -target-feature +xsaveopt -target-feature +xsaves -target-feature +xsavec -target-feature +mwaitx -target-feature +clzero -target-feature +shstk -target-feature +wbnoinvd -target-feature +cldemote -Wno-implicit-function-declaration -emit-llvm -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\Output\builtins-x86.c.tmp' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtins-x86.c'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -DUSE_ALL -triple x86_64-unknown-unknown -target-feature +fxsr -target-feature +avx -target-feature +xsaveopt -target-feature +xsaves -target-feature +xsavec -target-feature +mwaitx -target-feature +shstk -target-feature +clzero -target-feature +wbnoinvd -target-feature +cldemote -Wno-implicit-function-declaration -fsyntax-only -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\Output\builtins-x86.c.tmp C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtins-x86.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -DUSE_ALL -triple x86_64-unknown-unknown -target-feature +fxsr -target-feature +avx -target-feature +xsaveopt -target-feature +xsaves -target-feature +xsavec -target-feature +mwaitx -target-feature +shstk -target-feature +clzero -target-feature +wbnoinvd -target-feature +cldemote -Wno-implicit-function-declaration -fsyntax-only -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\Output\builtins-x86.c.tmp' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtins-x86.c'
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -DUSE_64 -DOPENCL -x cl -cl-std=CL2.0 -triple x86_64-unknown-unknown -target-feature +fxsr -target-feature +avx -target-feature +xsaveopt -target-feature +xsaves -target-feature +xsavec -target-feature +mwaitx -target-feature +clzero -target-feature +shstk -target-feature +wbnoinvd -target-feature +cldemote -emit-llvm -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\Output\builtins-x86.c.tmp C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtins-x86.c
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -DUSE_64 -DOPENCL -x cl -cl-std=CL2.0 -triple x86_64-unknown-unknown -target-feature +fxsr -target-feature +avx -target-feature +xsaveopt -target-feature +xsaves -target-feature +xsavec -target-feature +mwaitx -target-feature +clzero -target-feature +shstk -target-feature +wbnoinvd -target-feature +cldemote -emit-llvm -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\CodeGen\Output\builtins-x86.c.tmp' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtins-x86.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\builtins-x86.c:292:40: error: passing '__private V16c' (vector of 16 'char' values) to parameter of incompatible type '__attribute__((__vector_size__(16 * sizeof(unsigned char)))) unsigned char' (vector of 16 'unsigned char' values)
# | 292 | tmp_V2LLi = __builtin_ia32_psadbw128(tmp_V16c, tmp_V16c);
# | | ^~~~~~~~
# | 1 error generated.
# `-----------------------------
# 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/169253
More information about the cfe-commits
mailing list