[clang] [llvm] [PowerPC] Implement Deeply Compressed Weights Builtins (PR #184666)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 15 12:05:45 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 172770 tests passed
* 3158 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c</summary>
```
Exit Code: 2
Command Output (stdout):
--
# 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 -flax-vector-conversions=none -target-feature +vsx -target-feature +isa-future-instructions -triple powerpc64-unknown-unknown -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.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 -flax-vector-conversions=none -target-feature +vsx -target-feature +isa-future-instructions -triple powerpc64-unknown-unknown -emit-llvm /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c -o -
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:31:10: error: call to undeclared function 'vec_uncompresshn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# | 31 | return vec_uncompresshn(vuca, vucb);
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:31:10: note: did you mean 'test_vec_uncompresshn'?
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:30:22: note: 'test_vec_uncompresshn' declared here
# | 30 | vector unsigned char test_vec_uncompresshn(void) {
# | | ^
# | 31 | return vec_uncompresshn(vuca, vucb);
# | | ~~~~~~~~~~~~~~~~
# | | test_vec_uncompresshn
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:31:10: error: returning 'int' from a function with incompatible result type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | 31 | return vec_uncompresshn(vuca, vucb);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:49:10: error: call to undeclared function 'vec_uncompressln'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# | 49 | return vec_uncompressln(vuca, vucb);
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:49:10: note: did you mean 'test_vec_uncompressln'?
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:48:22: note: 'test_vec_uncompressln' declared here
# | 48 | vector unsigned char test_vec_uncompressln(void) {
# | | ^
# | 49 | return vec_uncompressln(vuca, vucb);
# | | ~~~~~~~~~~~~~~~~
# | | test_vec_uncompressln
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:49:10: error: returning 'int' from a function with incompatible result type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | 49 | return vec_uncompressln(vuca, vucb);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:67:10: error: call to undeclared function 'vec_uncompresshb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# | 67 | return vec_uncompresshb(vuca, vucb);
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:67:10: note: did you mean 'test_vec_uncompresshb'?
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:66:22: note: 'test_vec_uncompresshb' declared here
# | 66 | vector unsigned char test_vec_uncompresshb(void) {
# | | ^
# | 67 | return vec_uncompresshb(vuca, vucb);
# | | ~~~~~~~~~~~~~~~~
# | | test_vec_uncompresshb
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:67:10: error: returning 'int' from a function with incompatible result type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | 67 | return vec_uncompresshb(vuca, vucb);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:85:10: error: call to undeclared function 'vec_uncompresslb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# | 85 | return vec_uncompresslb(vuca, vucb);
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:85:10: note: did you mean 'test_vec_uncompresslb'?
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:84:22: note: 'test_vec_uncompresslb' declared here
# | 84 | vector unsigned char test_vec_uncompresslb(void) {
# | | ^
# | 85 | return vec_uncompresslb(vuca, vucb);
# | | ~~~~~~~~~~~~~~~~
# | | test_vec_uncompresslb
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:85:10: error: returning 'int' from a function with incompatible result type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | 85 | return vec_uncompresslb(vuca, vucb);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:103:10: error: call to undeclared function 'vec_uncompresshh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# | 103 | return vec_uncompresshh(vuca, vucb);
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:103:10: note: did you mean 'test_vec_uncompresshh'?
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:102:22: note: 'test_vec_uncompresshh' declared here
# | 102 | vector unsigned char test_vec_uncompresshh(void) {
# | | ^
# | 103 | return vec_uncompresshh(vuca, vucb);
# | | ~~~~~~~~~~~~~~~~
# | | test_vec_uncompresshh
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:103:10: error: returning 'int' from a function with incompatible result type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | 103 | return vec_uncompresshh(vuca, vucb);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:121:10: error: call to undeclared function 'vec_uncompresslh'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# | 121 | return vec_uncompresslh(vuca, vucb);
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:121:10: note: did you mean 'test_vec_uncompresslh'?
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:120:22: note: 'test_vec_uncompresslh' declared here
# | 120 | vector unsigned char test_vec_uncompresslh(void) {
# | | ^
# | 121 | return vec_uncompresslh(vuca, vucb);
# | | ~~~~~~~~~~~~~~~~
# | | test_vec_uncompresslh
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:121:10: error: returning 'int' from a function with incompatible result type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | 121 | return vec_uncompresslh(vuca, vucb);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:135:10: error: call to undeclared function 'vec_unpack_hsn_to_byte'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# | 135 | return vec_unpack_hsn_to_byte(vuca);
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:135:10: note: did you mean 'test_vec_unpack_hsn_to_byte'?
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:134:22: note: 'test_vec_unpack_hsn_to_byte' declared here
# | 134 | vector unsigned char test_vec_unpack_hsn_to_byte(void) {
# | | ^
# | 135 | return vec_unpack_hsn_to_byte(vuca);
# | | ~~~~~~~~~~~~~~~~~~~~~~
# | | test_vec_unpack_hsn_to_byte
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:135:10: error: returning 'int' from a function with incompatible result type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | 135 | return vec_unpack_hsn_to_byte(vuca);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:149:10: error: call to undeclared function 'vec_unpack_lsn_to_byte'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# | 149 | return vec_unpack_lsn_to_byte(vuca);
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:149:10: note: did you mean 'test_vec_unpack_lsn_to_byte'?
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:148:22: note: 'test_vec_unpack_lsn_to_byte' declared here
# | 148 | vector unsigned char test_vec_unpack_lsn_to_byte(void) {
# | | ^
# | 149 | return vec_unpack_lsn_to_byte(vuca);
# | | ~~~~~~~~~~~~~~~~~~~~~~
# | | test_vec_unpack_lsn_to_byte
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:149:10: error: returning 'int' from a function with incompatible result type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | 149 | return vec_unpack_lsn_to_byte(vuca);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:160:10: error: call to undeclared function 'vec_unpack_int4_to_bf16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# | 160 | return vec_unpack_int4_to_bf16(vuca, 2);
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:160:10: note: did you mean 'test_vec_unpack_int4_to_bf16'?
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:159:22: note: 'test_vec_unpack_int4_to_bf16' declared here
# | 159 | vector unsigned char test_vec_unpack_int4_to_bf16(void) {
# | | ^
# | 160 | return vec_unpack_int4_to_bf16(vuca, 2);
# | | ~~~~~~~~~~~~~~~~~~~~~~~
# | | test_vec_unpack_int4_to_bf16
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:160:10: error: returning 'int' from a function with incompatible result type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | 160 | return vec_unpack_int4_to_bf16(vuca, 2);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:171:10: error: call to undeclared function 'vec_unpack_int8_to_bf16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# | 171 | return vec_unpack_int8_to_bf16(vuca, 1);
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:171:10: note: did you mean 'test_vec_unpack_int8_to_bf16'?
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:170:22: note: 'test_vec_unpack_int8_to_bf16' declared here
# | 170 | vector unsigned char test_vec_unpack_int8_to_bf16(void) {
# | | ^
# | 171 | return vec_unpack_int8_to_bf16(vuca, 1);
# | | ~~~~~~~~~~~~~~~~~~~~~~~
# | | test_vec_unpack_int8_to_bf16
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:171:10: error: returning 'int' from a function with incompatible result type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | 171 | return vec_unpack_int8_to_bf16(vuca, 1);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:182:10: error: call to undeclared function 'vec_unpack_int4_to_fp32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# | 182 | return vec_unpack_int4_to_fp32(vuca, 5);
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:182:10: note: did you mean 'test_vec_unpack_int4_to_fp32'?
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:181:22: note: 'test_vec_unpack_int4_to_fp32' declared here
# | 181 | vector unsigned char test_vec_unpack_int4_to_fp32(void) {
# | | ^
# | 182 | return vec_unpack_int4_to_fp32(vuca, 5);
# | | ~~~~~~~~~~~~~~~~~~~~~~~
# | | test_vec_unpack_int4_to_fp32
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:182:10: error: returning 'int' from a function with incompatible result type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | 182 | return vec_unpack_int4_to_fp32(vuca, 5);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:193:10: error: call to undeclared function 'vec_unpack_int8_to_fp32'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
# | 193 | return vec_unpack_int8_to_fp32(vuca, 3);
# | | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:193:10: note: did you mean 'test_vec_unpack_int8_to_fp32'?
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:192:22: note: 'test_vec_unpack_int8_to_fp32' declared here
# | 192 | vector unsigned char test_vec_unpack_int8_to_fp32(void) {
# | | ^
# | 193 | return vec_unpack_int8_to_fp32(vuca, 3);
# | | ~~~~~~~~~~~~~~~~~~~~~~~
# | | test_vec_unpack_int8_to_fp32
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c:193:10: error: returning 'int' from a function with incompatible result type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | 193 | return vec_unpack_int8_to_fp32(vuca, 3);
# | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 24 errors generated.
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/PowerPC/builtins-ppc-deeply-compressed-weights.c
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>Clang.Sema/builtins-ppc-deeply-compressed-weights-error.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/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 powerpc64-unknown-unknown -fsyntax-only -flax-vector-conversions=none -target-feature +vsx -target-feature +isa-future-instructions -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.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 powerpc64-unknown-unknown -fsyntax-only -flax-vector-conversions=none -target-feature +vsx -target-feature +isa-future-instructions -verify /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen:
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 20: passing '__vector int' (vector of 4 'int' values) to parameter of incompatible type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 21: passing '__vector int' (vector of 4 'int' values) to parameter of incompatible type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 22: passing '__vector int' (vector of 4 'int' values) to parameter of incompatible type '__vector unsigned char' (vector of 16 'unsigned char' values)
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 29: argument value 4 is outside the valid range [0, 3]
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 30: argument value -1 is outside the valid range [0, 3]
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 33: argument value 2 is outside the valid range [0, 1]
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 34: argument value -1 is outside the valid range [0, 1]
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 37: argument value 8 is outside the valid range [0, 7]
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 38: argument value -1 is outside the valid range [0, 7]
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 41: argument value 4 is outside the valid range [0, 3]
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 42: argument value -1 is outside the valid range [0, 3]
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 50: argument to '__builtin_altivec_vupkint4tobf16' must be a constant integer
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 51: argument to '__builtin_altivec_vupkint8tobf16' must be a constant integer
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 52: argument to '__builtin_altivec_vupkint4tofp32' must be a constant integer
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 53: argument to '__builtin_altivec_vupkint8tofp32' must be a constant integer
# | error: 'expected-error' diagnostics seen but not expected:
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 20: call to undeclared function 'vec_uncompresshn'; ISO C99 and later do not support implicit function declarations
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 20: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 21: call to undeclared function 'vec_uncompressln'; ISO C99 and later do not support implicit function declarations
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 21: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 22: call to undeclared function 'vec_unpack_hsn_to_byte'; ISO C99 and later do not support implicit function declarations
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 22: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 29: call to undeclared function 'vec_unpack_int4_to_bf16'; ISO C99 and later do not support implicit function declarations
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 29: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 30: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 33: call to undeclared function 'vec_unpack_int8_to_bf16'; ISO C99 and later do not support implicit function declarations
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 33: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 34: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 37: call to undeclared function 'vec_unpack_int4_to_fp32'; ISO C99 and later do not support implicit function declarations
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 37: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 38: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 41: call to undeclared function 'vec_unpack_int8_to_fp32'; ISO C99 and later do not support implicit function declarations
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 41: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 42: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 50: call to undeclared function 'vec_unpack_int4_to_bf16'; ISO C99 and later do not support implicit function declarations
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 50: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 51: call to undeclared function 'vec_unpack_int8_to_bf16'; ISO C99 and later do not support implicit function declarations
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 51: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 52: call to undeclared function 'vec_unpack_int4_to_fp32'; ISO C99 and later do not support implicit function declarations
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 52: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 53: call to undeclared function 'vec_unpack_int8_to_fp32'; ISO C99 and later do not support implicit function declarations
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c Line 53: assigning to '__vector unsigned char' (vector of 16 'unsigned char' values) from incompatible type 'int'
# | error: 'expected-note' diagnostics expected but not seen:
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include/altivec.h Line * (directive at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c:20): passing argument to parameter '__a' here
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include/altivec.h Line * (directive at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c:21): passing argument to parameter '__b' here
# | File /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include/altivec.h Line * (directive at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Sema/builtins-ppc-deeply-compressed-weights-error.c:22): passing argument to parameter '__a' here
# | 44 errors 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/184666
More information about the cfe-commits
mailing list