[clang] [clang] Update diagnostics to include matrices as accepted types (PR #201237)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 21 10:48:55 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `intel-sycl-gpu` running on `intel-sycl-gpu-01` while building `clang` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/225/builds/13199

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Sema/builtins-elementwise-math.c' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang -cc1 -internal-isystem /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/lib/clang/24/include -nostdsysteminc -std=c99 /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c -pedantic -verify -triple=x86_64-apple-darwin9
# executed command: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang -cc1 -internal-isystem /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/lib/clang/24/include -nostdsysteminc -std=c99 /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c -pedantic -verify -triple=x86_64-apple-darwin9
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c Line 220 (directive at /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c:221): 1st argument must be a scalar or vector of integer types (was 'int *')
# |   File /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c Line 235 (directive at /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c:236): 1st argument must be a scalar or vector of integer types (was 'float4' (vector of 4 'float' values))
# |   File /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c Line 254 (directive at /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c:255): 1st argument must be a scalar or vector of integer types (was 'int *')
# |   File /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c Line 269 (directive at /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c:270): 1st argument must be a scalar or vector of integer types (was 'float4' (vector of 4 'float' values))
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c Line 220: 1st argument must be a scalar, vector, or matrix of integer types (was 'int *')
# |   File /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c Line 235: 1st argument must be a scalar, vector, or matrix of integer types (was 'float4' (vector of 4 'float' values))
# |   File /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c Line 254: 1st argument must be a scalar, vector, or matrix of integer types (was 'int *')
# |   File /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/clang/test/Sema/builtins-elementwise-math.c Line 269: 1st argument must be a scalar, vector, or matrix of integer types (was 'float4' (vector of 4 'float' values))
# | 8 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

********************


```

</details>

https://github.com/llvm/llvm-project/pull/201237


More information about the cfe-commits mailing list