[clang] [HLSL][Matrix] Add Matrix Bool and represent them as i32 elements (PR #171051)

via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 7 11:12:21 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 84966 tests passed
* 1148 tests skipped
* 3 tests failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.SemaHLSL/BuiltIns/clamp-errors.hlsl</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/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/22/include -nostdsysteminc -finclude-default-header -triple dxil-pc-shadermodel6.6-library /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/clamp-errors.hlsl -fnative-half-type -fnative-int16-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note
# 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/22/include -nostdsysteminc -finclude-default-header -triple dxil-pc-shadermodel6.6-library /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/clamp-errors.hlsl -fnative-half-type -fnative-int16-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/clamp-errors.hlsl Line 102 (directive at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/clamp-errors.hlsl:103): 1st argument must be a vector, integer or floating-point type (was 'bool')
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/clamp-errors.hlsl Line 107 (directive at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/clamp-errors.hlsl:108): 3rd argument must be a vector, integer or floating-point type (was 'bool')
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/clamp-errors.hlsl Line 112 (directive at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/clamp-errors.hlsl:113): 2nd argument must be a vector, integer or floating-point type (was 'bool')
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/clamp-errors.hlsl Line 107: arguments are of different types ('float' vs 'bool')
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/clamp-errors.hlsl Line 112: arguments are of different types ('float' vs 'bool')
# | 5 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.SemaHLSL/BuiltIns/dot-errors.hlsl</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/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/22/include -nostdsysteminc -finclude-default-header -triple dxil-pc-shadermodel6.6-library /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/dot-errors.hlsl -fnative-half-type -fnative-int16-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note
# 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/22/include -nostdsysteminc -finclude-default-header -triple dxil-pc-shadermodel6.6-library /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/dot-errors.hlsl -fnative-half-type -fnative-int16-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/dot-errors.hlsl Line 108 (directive at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/dot-errors.hlsl:109): 1st argument must be a vector, integer or floating-point type (was 'bool')
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/dot-errors.hlsl Line 108: arguments are of different types ('bool' vs 'float')
# | 2 errors generated.
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.SemaHLSL/BuiltIns/mad-errors.hlsl</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/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/22/include -nostdsysteminc -finclude-default-header -triple dxil-pc-shadermodel6.6-library /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/mad-errors.hlsl -fnative-half-type -fnative-int16-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note
# 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/22/include -nostdsysteminc -finclude-default-header -triple dxil-pc-shadermodel6.6-library /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/mad-errors.hlsl -fnative-half-type -fnative-int16-type -emit-llvm-only -disable-llvm-passes -verify -verify-ignore-unexpected=note
# .---command stderr------------
# | error: 'expected-error' diagnostics expected but not seen: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/mad-errors.hlsl Line 74 (directive at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/mad-errors.hlsl:75): 3rd argument must be a vector, integer or floating-point type (was 'bool')
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/mad-errors.hlsl Line 79 (directive at /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/mad-errors.hlsl:80): 2nd argument must be a vector, integer or floating-point type (was 'bool')
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/mad-errors.hlsl Line 74: arguments are of different types ('float' vs 'bool')
# |   File /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/SemaHLSL/BuiltIns/mad-errors.hlsl Line 79: arguments are of different types ('float' vs 'bool')
# | 4 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/171051


More information about the cfe-commits mailing list