[clang] [HLSL] Adds matrix support for isnan(). (PR #195586)
via cfe-commits
cfe-commits at lists.llvm.org
Mon May 25 20:04:21 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 54017 tests passed
* 1260 tests skipped
* 7 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CodeGenHLSL/BasicFeatures/MatrixSingleSubscriptGetter.hlsl</summary>
```
Exit Code: 2
Command Output (stdout):
--
# 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 -triple dxil-pc-shadermodel6.7-library -disable-llvm-passes -emit-llvm -finclude-default-header -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixSingleSubscriptGetter.hlsl | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixSingleSubscriptGetter.hlsl
# 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 -triple dxil-pc-shadermodel6.7-library -disable-llvm-passes -emit-llvm -finclude-default-header -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixSingleSubscriptGetter.hlsl'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixSingleSubscriptGetter.hlsl:47:12: warning: implicit conversion turns vector to scalar: 'vector<float, 1>' (vector of 1 'float' value) to 'float' [-Wconversion]
# | 47 | return M[index];
# | | ~~~~~~ ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixSingleSubscriptGetter.hlsl:62:12: warning: implicit conversion turns vector to scalar: 'vector<float, 1>' (vector of 1 'float' value) to 'float' [-Wconversion]
# | 62 | return M[0];
# | | ~~~~~~ ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixSingleSubscriptGetter.hlsl:77:12: warning: implicit conversion turns vector to scalar: 'vector<float, 1>' (vector of 1 'float' value) to 'float' [-Wconversion]
# | 77 | return M[1];
# | | ~~~~~~ ^
# | Assertion failed: isValidOperands(Vec, Elt, Index) && "Invalid insertelement instruction operands!", file C:\_work\llvm-project\llvm-project\llvm\lib\IR\Instructions.cpp, line 1710
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
# | Stack dump:
# | 0. Program arguments: 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 -triple dxil-pc-shadermodel6.7-library -disable-llvm-passes -emit-llvm -finclude-default-header -o - C:\\_work\\llvm-project\\llvm-project\\clang\\test\\CodeGenHLSL\\BasicFeatures\\MatrixSingleSubscriptGetter.hlsl
# | 1. C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixSingleSubscriptGetter.hlsl:251:1: current parser token 'bool4'
# | 2. C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixSingleSubscriptGetter.hlsl:229:7: LLVM IR generation of declaration 'getBoolVecMatrixDynamic'
# | 3. C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixSingleSubscriptGetter.hlsl:229:7: Generating code for declaration 'getBoolVecMatrixDynamic'
# | Exception Code: 0xC000001D
# | #0 0x00007ff6d944da86 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x85da86)
# | #1 0x00007ff89eeebb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ff89eeecad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ff89eeee4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ff89eeee6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff6d9bad27e (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0xfbd27e)
# | #6 0x00007ff6d93d636b (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x7e636b)
# | #7 0x00007ff6df0ceb11 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x64deb11)
# | #8 0x00007ff6df0b8a7a (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x64c8a7a)
# | #9 0x00007ff6df0d8fa2 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x64e8fa2)
# | #10 0x00007ff6df0b8923 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x64c8923)
# | #11 0x00007ff6ddd04abe (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5114abe)
# | #12 0x00007ff6ddd0036b (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x511036b)
# | #13 0x00007ff6ddd09145 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5119145)
# | #14 0x00007ff6dd9dba2a (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x4deba2a)
# | #15 0x00007ff6db455e50 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2865e50)
# | #16 0x00007ff6db44bd2f (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x285bd2f)
# | #17 0x00007ff6db452173 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2862173)
# | #18 0x00007ff6db44a5b4 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x285a5b4)
# | #19 0x00007ff6dea2a0db (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5e3a0db)
# | #20 0x00007ff6dbaf8367 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2f08367)
# | #21 0x00007ff6de95b679 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x5d6b679)
# | #22 0x00007ff6dbab2324 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2ec2324)
# | #23 0x00007ff6dba469df (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x2e569df)
# | #24 0x00007ff6d959340a (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x9a340a)
# | #25 0x00007ff6d964880c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0xa5880c)
# | #26 0x00007ff6d8bf886a (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x886a)
# | #27 0x00007ff6d8bf41a4 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x41a4)
# | #28 0x00007ff6d8bf294c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x294c)
# | #29 0x00007ff6d8c07c7c (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x17c7c)
# | #30 0x00007ff6e01abbf0 (c:\_work\llvm-project\llvm-project\build\bin\clang.exe+0x75bbbf0)
# | #31 0x00007ff8a1be4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #32 0x00007ff8b3d3edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixSingleSubscriptGetter.hlsl'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixSingleSubscriptGetter.hlsl
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>Clang.CodeGenHLSL/BasicFeatures/MatrixToAndFromVectorConstructors.hlsl</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 -triple dxil-pc-shadermodel6.0-library -disable-llvm-passes -emit-llvm -finclude-default-header -o - -fmatrix-memory-layout=column-major C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixToAndFromVectorConstructors.hlsl | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixToAndFromVectorConstructors.hlsl --check-prefixes=CHECK,COL-CHECK
# 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 -triple dxil-pc-shadermodel6.0-library -disable-llvm-passes -emit-llvm -finclude-default-header -o - -fmatrix-memory-layout=column-major 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixToAndFromVectorConstructors.hlsl'
# 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\clang\test\CodeGenHLSL\BasicFeatures\MatrixToAndFromVectorConstructors.hlsl' --check-prefixes=CHECK,COL-CHECK
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixToAndFromVectorConstructors.hlsl:111:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: [[MATRIXEXT:%.*]] = extractelement <3 x i32> [[TMP1]], i32 0
# | ^
# | <stdin>:93:43: note: scanning from here
# | %1 = load <3 x i32>, ptr %b.addr, align 4
# | ^
# | <stdin>:93:43: note: with "TMP1" equal to "%1"
# | %1 = load <3 x i32>, ptr %b.addr, align 4
# | ^
# | <stdin>:95:6: note: possible intended match here
# | %matrixext = extractelement <3 x i1> %loadedv, i32 0
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\MatrixToAndFromVectorConstructors.hlsl
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 88: define hidden noundef <3 x i32> @_Z3fn3u11matrix_typeILm1ELm3EbE(<3 x i1> noundef %b) #0 {
# | 89: entry:
# | 90: %b.addr = alloca [3 x <1 x i32>], align 4
# | 91: %0 = zext <3 x i1> %b to <3 x i32>
# | 92: store <3 x i32> %0, ptr %b.addr, align 4
# | 93: %1 = load <3 x i32>, ptr %b.addr, align 4
# | next:111'0 X error: no match found
# | next:111'1 with "TMP1" equal to "%1"
# | 94: %loadedv = trunc <3 x i32> %1 to <3 x i1>
# | next:111'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 95: %matrixext = extractelement <3 x i1> %loadedv, i32 0
# | next:111'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:111'2 ? possible intended match
# | 96: %conv = zext i1 %matrixext to i32
# | next:111'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 97: %vecinit = insertelement <3 x i32> poison, i32 %conv, i32 0
# | next:111'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 98: %2 = load <3 x i32>, ptr %b.addr, align 4
# | next:111'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 99: %loadedv1 = trunc <3 x i32> %2 to <3 x i1>
# | next:111'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 100: %matrixext2 = extractelement <3 x i1> %loadedv1, i32 1
# | next:111'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGenHLSL/BasicFeatures/VectorElementwiseCast.hlsl</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 -finclude-default-header -triple dxil-pc-shadermodel6.3-library -x hlsl -emit-llvm -disable-llvm-passes -fmatrix-memory-layout=column-major -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\VectorElementwiseCast.hlsl | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\VectorElementwiseCast.hlsl --check-prefixes=CHECK,COL-CHECK
# 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 -finclude-default-header -triple dxil-pc-shadermodel6.3-library -x hlsl -emit-llvm -disable-llvm-passes -fmatrix-memory-layout=column-major -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\VectorElementwiseCast.hlsl'
# 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\clang\test\CodeGenHLSL\BasicFeatures\VectorElementwiseCast.hlsl' --check-prefixes=CHECK,COL-CHECK
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\VectorElementwiseCast.hlsl:196:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: store <2 x i32> [[TMP1]], ptr [[HLSL_EWCAST_SRC]], align 4
# | ^
# | <stdin>:182:43: note: scanning from here
# | %1 = load <2 x i32>, ptr %M.addr, align 4
# | ^
# | <stdin>:182:43: note: with "TMP1" equal to "%1"
# | %1 = load <2 x i32>, ptr %M.addr, align 4
# | ^
# | <stdin>:182:43: note: with "HLSL_EWCAST_SRC" equal to "%hlsl.ewcast.src"
# | %1 = load <2 x i32>, ptr %M.addr, align 4
# | ^
# | <stdin>:197:2: note: possible intended match here
# | store <2 x i32> %8, ptr %V, align 4
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BasicFeatures\VectorElementwiseCast.hlsl
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 177: %V = alloca <2 x i32>, align 4
# | 178: %hlsl.ewcast.src = alloca [2 x <1 x i32>], align 4
# | 179: %flatcast.tmp = alloca <2 x i1>, align 4
# | 180: %0 = zext <2 x i1> %M to <2 x i32>
# | 181: store <2 x i32> %0, ptr %M.addr, align 4
# | 182: %1 = load <2 x i32>, ptr %M.addr, align 4
# | next:196'0 X error: no match found
# | next:196'1 with "TMP1" equal to "%1"
# | next:196'2 with "HLSL_EWCAST_SRC" equal to "%hlsl.ewcast.src"
# | 183: %loadedv = trunc <2 x i32> %1 to <2 x i1>
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 184: %2 = zext <2 x i1> %loadedv to <2 x i32>
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 185: store <2 x i32> %2, ptr %hlsl.ewcast.src, align 4
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 186: %matrix.gep = getelementptr inbounds <2 x i32>, ptr %hlsl.ewcast.src, i32 0
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 187: %3 = load <2 x i1>, ptr %flatcast.tmp, align 4
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 192: %6 = load <2 x i32>, ptr %matrix.gep, align 4
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 193: %matrixext2 = extractelement <2 x i32> %6, i32 1
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 194: %loadedv3 = icmp ne i32 %matrixext2, 0
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 195: %7 = insertelement <2 x i1> %5, i1 %loadedv3, i64 1
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 196: %8 = zext <2 x i1> %7 to <2 x i32>
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 197: store <2 x i32> %8, ptr %V, align 4
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:196'3 ? possible intended match
# | 198: ret void
# | next:196'0 ~~~~~~~~~~
# | 199: }
# | next:196'0 ~~
# | 200:
# | next:196'0 ~
# | 201: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 202: define void @_Z6call1013BoolVecStruct(ptr noundef byval(%struct.BoolVecStruct) align 1 %s) #0 {
# | next:196'0 ~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGenHLSL/BoolMatrix.hlsl</summary>
```
Exit Code: 1
Command Output (stdout):
--
# 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 -finclude-default-header -triple dxil-pc-shadermodel6.3-library -emit-llvm -disable-llvm-passes -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BoolMatrix.hlsl | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BoolMatrix.hlsl
# 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 -finclude-default-header -triple dxil-pc-shadermodel6.3-library -emit-llvm -disable-llvm-passes -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BoolMatrix.hlsl'
# 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\clang\test\CodeGenHLSL\BoolMatrix.hlsl'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BoolMatrix.hlsl:13:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: [[RETVAL:%.*]] = alloca i1, align 4
# | ^
# | <stdin>:15:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:17:24: note: possible intended match here
# | store <4 x i32> splat (i32 1), ptr %B, align 4
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BoolMatrix.hlsl:30:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: [[RETVAL:%.*]] = alloca <4 x i1>, align 4
# | ^
# | <stdin>:26:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:27:4: note: possible intended match here
# | %V.addr = alloca i32, align 4
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BoolMatrix.hlsl:58:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: [[RETVAL:%.*]] = alloca i1, align 4
# | ^
# | <stdin>:48:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:49:5: note: possible intended match here
# | %s = alloca %struct.S, align 1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BoolMatrix.hlsl:76:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: [[RETVAL:%.*]] = alloca i1, align 4
# | ^
# | <stdin>:63:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:67:21: note: possible intended match here
# | %0 = load <4 x i32>, ptr %arrayidx, align 4
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BoolMatrix.hlsl:144:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: [[RETVAL:%.*]] = alloca <16 x i1>, align 4
# | ^
# | <stdin>:112:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:113:10: note: possible intended match here
# | %m.addr = alloca [4 x <4 x i32>], align 4
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\BoolMatrix.hlsl
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 10: @__const._Z3fn6v.s = private unnamed_addr constant { <4 x i1>, [12 x i8], float } { <4 x i1> <i1 true, i1 false, i1 true, i1 false>, [12 x i8] undef, float 1.000000e+00 }, align 1
# | 11: @constinit.1 = private constant [2 x <4 x i1>] [<4 x i1> splat (i1 true), <4 x i1> zeroinitializer], align 4
# | 12:
# | 13: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | 14: define hidden noundef i1 @_Z3fn1v() #0 {
# | 15: entry:
# | next:13'0 X error: no match found
# | 16: %B = alloca [2 x <2 x i32>], align 4
# | next:13'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 17: store <4 x i32> splat (i32 1), ptr %B, align 4
# | next:13'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:13'1 ? possible intended match
# | 18: %0 = load <4 x i32>, ptr %B, align 4
# | next:13'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 19: %loadedv = trunc <4 x i32> %0 to <4 x i1>
# | next:13'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 20: %matrixext = extractelement <4 x i1> %loadedv, i32 0
# | next:13'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 21: ret i1 %matrixext
# | next:13'0 ~~~~~~~~~~~~~~~~~~~
# | 22: }
# | next:13'0 ~~
# | 23:
# | next:13'0 ~
# | 24: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | next:13'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 25: define hidden noundef <4 x i1> @_Z3fn2b(i1 noundef %V) #0 {
# | next:13'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 26: entry:
# | next:30'0 X error: no match found
# | 27: %V.addr = alloca i32, align 4
# | next:30'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:30'1 ? possible intended match
# | 28: %A = alloca [2 x <2 x i32>], align 4
# | next:30'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 29: %storedv = zext i1 %V to i32
# | next:30'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 30: store i32 %storedv, ptr %V.addr, align 4
# | next:30'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 31: %0 = load i32, ptr %V.addr, align 4
# | next:30'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 32: %loadedv = icmp ne i32 %0, 0
# | next:30'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 43: ret <4 x i1> %loadedv5
# | next:30'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 44: }
# | next:30'0 ~~
# | 45:
# | next:30'0 ~
# | 46: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | next:30'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 47: define hidden noundef i1 @_Z3fn3v() #0 {
# | next:30'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 48: entry:
# | next:58'0 X error: no match found
# | 49: %s = alloca %struct.S, align 1
# | next:58'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:58'1 ? possible intended match
# | 50: call void @llvm.memcpy.p0.p0.i32(ptr align 1 %s, ptr align 1 @__const._Z3fn3v.s, i32 20, i1 false)
# | next:58'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 51: %bM = getelementptr inbounds nuw %struct.S, ptr %s, i32 0, i32 0
# | next:58'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 52: %0 = load <4 x i32>, ptr %bM, align 1
# | next:58'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 53: %loadedv = trunc <4 x i32> %0 to <4 x i1>
# | next:58'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 54: %matrixext = extractelement <4 x i1> %loadedv, i32 0
# | next:58'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 58: ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
# | next:58'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 59: declare void @llvm.memcpy.p0.p0.i32(ptr noalias writeonly captures(none), ptr noalias readonly captures(none), i32, i1 immarg) #1
# | next:58'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 60:
# | next:58'0 ~
# | 61: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | next:58'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 62: define hidden noundef i1 @_Z3fn4v() #0 {
# | next:58'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 63: entry:
# | next:76'0 X error: no match found
# | 64: %Arr = alloca [2 x [2 x <2 x i32>]], align 4
# | next:76'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 65: call void @llvm.memcpy.p0.p0.i32(ptr align 4 %Arr, ptr align 4 @constinit, i32 32, i1 false)
# | next:76'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 66: %arrayidx = getelementptr inbounds [2 x [2 x <2 x i32>]], ptr %Arr, i32 0, i32 0
# | next:76'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 67: %0 = load <4 x i32>, ptr %arrayidx, align 4
# | next:76'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:76'1 ? possible intended match
# | 68: %loadedv = trunc <4 x i32> %0 to <4 x i1>
# | next:76'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 69: %matrixext = extractelement <4 x i1> %loadedv, i32 1
# | next:76'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 70: ret i1 %matrixext
# | next:76'0 ~~~~~~~~~~~~~~~~~~~
# | 71: }
# | next:76'0 ~~
# | 72:
# | next:76'0 ~
# | .
# | .
# | .
# | 107: ret void
# | 108: }
# | 109:
# | 110: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | 111: define hidden noundef <16 x i1> @_Z3fn8u11matrix_typeILm4ELm4EbE(<16 x i1> noundef %m) #0 {
# | 112: entry:
# | next:144'0 X error: no match found
# | 113: %m.addr = alloca [4 x <4 x i32>], align 4
# | next:144'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:144'1 ? possible intended match
# | 114: %0 = zext <16 x i1> %m to <16 x i32>
# | next:144'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 115: store <16 x i32> %0, ptr %m.addr, align 4
# | next:144'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 116: %1 = load <16 x i32>, ptr %m.addr, align 4
# | next:144'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 117: %loadedv = trunc <16 x i32> %1 to <16 x i1>
# | next:144'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 118: ret <16 x i1> %loadedv
# | next:144'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGenHLSL/builtins/and_mat.hlsl</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 -finclude-default-header -triple dxil-pc-shadermodel6.3-library C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl -emit-llvm -disable-llvm-passes -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl
# 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 -finclude-default-header -triple dxil-pc-shadermodel6.3-library 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl' -emit-llvm -disable-llvm-passes -o -
# 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\clang\test\CodeGenHLSL\builtins\and_mat.hlsl'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:8:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <2 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:8:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:16:5: note: possible intended match here
# | %loadedv = trunc <2 x i32> %2 to <2 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:18:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <3 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:25:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:33:5: note: possible intended match here
# | %loadedv = trunc <3 x i32> %2 to <3 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:28:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <4 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:42:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:50:5: note: possible intended match here
# | %loadedv = trunc <4 x i32> %2 to <4 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:38:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <2 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:59:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:67:5: note: possible intended match here
# | %loadedv = trunc <2 x i32> %2 to <2 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:49:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <4 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:76:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:84:5: note: possible intended match here
# | %loadedv = trunc <4 x i32> %2 to <4 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:59:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <6 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:93:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:101:5: note: possible intended match here
# | %loadedv = trunc <6 x i32> %2 to <6 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:69:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <8 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:110:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:118:5: note: possible intended match here
# | %loadedv = trunc <8 x i32> %2 to <8 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:79:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <3 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:127:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:135:5: note: possible intended match here
# | %loadedv = trunc <3 x i32> %2 to <3 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:89:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <6 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:144:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:152:5: note: possible intended match here
# | %loadedv = trunc <6 x i32> %2 to <6 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:100:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <9 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:161:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:169:5: note: possible intended match here
# | %loadedv = trunc <9 x i32> %2 to <9 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:110:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <12 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:178:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:186:5: note: possible intended match here
# | %loadedv = trunc <12 x i32> %2 to <12 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:120:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <4 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:195:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:203:5: note: possible intended match here
# | %loadedv = trunc <4 x i32> %2 to <4 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:130:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <8 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:212:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:220:5: note: possible intended match here
# | %loadedv = trunc <8 x i32> %2 to <8 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:140:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <12 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:229:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:237:5: note: possible intended match here
# | %loadedv = trunc <12 x i32> %2 to <12 x i1>
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl:150:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_AND:%.*]] = and <16 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:246:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:254:5: note: possible intended match here
# | %loadedv = trunc <16 x i32> %2 to <16 x i1>
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ; ModuleID = 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\and_mat.hlsl'
# | 2: source_filename = "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\CodeGenHLSL\\builtins\\and_mat.hlsl"
# | 3: target datalayout = "e-m:e-ve-p:32:32-i1:32-i8:8-i16:16-i32:32-i64:64-f16:16-f32:32-f64:64-n8:16:32:64"
# | 4: target triple = "dxilv1.3-pc-shadermodel6.3-library"
# | 5:
# | 6: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | 7: define hidden noundef <2 x i1> @_Z16test_and_bool1x2u11matrix_typeILm1ELm2EbES_(<2 x i1> noundef %x, <2 x i1> noundef %y) #0 {
# | 8: entry:
# | check:8'0 X error: no match found
# | 9: %x.addr = alloca [2 x <1 x i32>], align 4
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 10: %y.addr = alloca [2 x <1 x i32>], align 4
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 11: %0 = zext <2 x i1> %x to <2 x i32>
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 12: store <2 x i32> %0, ptr %x.addr, align 4
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 13: %1 = zext <2 x i1> %y to <2 x i32>
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 14: store <2 x i32> %1, ptr %y.addr, align 4
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 15: %2 = load <2 x i32>, ptr %x.addr, align 4
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 16: %loadedv = trunc <2 x i32> %2 to <2 x i1>
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:8'1 ? possible intended match
# | 17: %3 = load <2 x i32>, ptr %y.addr, align 4
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 18: %loadedv1 = trunc <2 x i32> %3 to <2 x i1>
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 19: %hlsl.and = and <2 x i1> %loadedv, %loadedv1
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 20: ret <2 x i1> %hlsl.and
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 21: }
# | check:8'0 ~~
# | 22:
# | check:8'0 ~
# | 23: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 24: define hidden noundef <3 x i1> @_Z16test_and_bool1x3u11matrix_typeILm1ELm3EbES_(<3 x i1> noundef %x, <3 x i1> noundef %y) #0 {
# | check:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 25: entry:
# | check:18'0 X error: no match found
# | 26: %x.addr = alloca [3 x <1 x i32>], align 4
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 27: %y.addr = alloca [3 x <1 x i32>], align 4
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 28: %0 = zext <3 x i1> %x to <3 x i32>
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 29: store <3 x i32> %0, ptr %x.addr, align 4
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 30: %1 = zext <3 x i1> %y to <3 x i32>
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 31: store <3 x i32> %1, ptr %y.addr, align 4
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 32: %2 = load <3 x i32>, ptr %x.addr, align 4
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 33: %loadedv = trunc <3 x i32> %2 to <3 x i1>
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:18'1 ? possible intended match
# | 34: %3 = load <3 x i32>, ptr %y.addr, align 4
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 35: %loadedv1 = trunc <3 x i32> %3 to <3 x i1>
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 36: %hlsl.and = and <3 x i1> %loadedv, %loadedv1
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 37: ret <3 x i1> %hlsl.and
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 38: }
# | check:18'0 ~~
# | 39:
# | check:18'0 ~
# | 40: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 41: define hidden noundef <4 x i1> @_Z16test_and_bool1x4u11matrix_typeILm1ELm4EbES_(<4 x i1> noundef %x, <4 x i1> noundef %y) #0 {
# | check:18'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 42: entry:
# | check:28'0 X error: no match found
# | 43: %x.addr = alloca [4 x <1 x i32>], align 4
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 44: %y.addr = alloca [4 x <1 x i32>], align 4
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 45: %0 = zext <4 x i1> %x to <4 x i32>
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 46: store <4 x i32> %0, ptr %x.addr, align 4
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 47: %1 = zext <4 x i1> %y to <4 x i32>
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 48: store <4 x i32> %1, ptr %y.addr, align 4
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 49: %2 = load <4 x i32>, ptr %x.addr, align 4
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 50: %loadedv = trunc <4 x i32> %2 to <4 x i1>
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:28'1 ? possible intended match
# | 51: %3 = load <4 x i32>, ptr %y.addr, align 4
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 52: %loadedv1 = trunc <4 x i32> %3 to <4 x i1>
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 53: %hlsl.and = and <4 x i1> %loadedv, %loadedv1
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 54: ret <4 x i1> %hlsl.and
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 55: }
# | check:28'0 ~~
# | 56:
# | check:28'0 ~
# | 57: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 58: define hidden noundef <2 x i1> @_Z16test_and_bool2x1u11matrix_typeILm2ELm1EbES_(<2 x i1> noundef %x, <2 x i1> noundef %y) #0 {
# | check:28'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 59: entry:
# | check:38'0 X error: no match found
# | 60: %x.addr = alloca [1 x <2 x i32>], align 4
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 61: %y.addr = alloca [1 x <2 x i32>], align 4
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 62: %0 = zext <2 x i1> %x to <2 x i32>
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 63: store <2 x i32> %0, ptr %x.addr, align 4
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 64: %1 = zext <2 x i1> %y to <2 x i32>
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 65: store <2 x i32> %1, ptr %y.addr, align 4
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 66: %2 = load <2 x i32>, ptr %x.addr, align 4
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 67: %loadedv = trunc <2 x i32> %2 to <2 x i1>
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:38'1 ? possible intended match
# | 68: %3 = load <2 x i32>, ptr %y.addr, align 4
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 69: %loadedv1 = trunc <2 x i32> %3 to <2 x i1>
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 70: %hlsl.and = and <2 x i1> %loadedv, %loadedv1
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 71: ret <2 x i1> %hlsl.and
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 72: }
# | check:38'0 ~~
# | 73:
# | check:38'0 ~
# | 74: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 75: define hidden noundef <4 x i1> @_Z16test_and_bool2x2u11matrix_typeILm2ELm2EbES_(<4 x i1> noundef %x, <4 x i1> noundef %y) #0 {
# | check:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 76: entry:
# | check:49'0 X error: no match found
# | 77: %x.addr = alloca [2 x <2 x i32>], align 4
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 78: %y.addr = alloca [2 x <2 x i32>], align 4
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 79: %0 = zext <4 x i1> %x to <4 x i32>
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 80: store <4 x i32> %0, ptr %x.addr, align 4
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 81: %1 = zext <4 x i1> %y to <4 x i32>
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 82: store <4 x i32> %1, ptr %y.addr, align 4
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 83: %2 = load <4 x i32>, ptr %x.addr, align 4
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 84: %loadedv = trunc <4 x i32> %2 to <4 x i1>
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:49'1 ? possible intended match
# | 85: %3 = load <4 x i32>, ptr %y.addr, align 4
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 86: %loadedv1 = trunc <4 x i32> %3 to <4 x i1>
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 87: %hlsl.and = and <4 x i1> %loadedv, %loadedv1
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 88: ret <4 x i1> %hlsl.and
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 89: }
# | check:49'0 ~~
# | 90:
# | check:49'0 ~
# | 91: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 92: define hidden noundef <6 x i1> @_Z16test_and_bool2x3u11matrix_typeILm2ELm3EbES_(<6 x i1> noundef %x, <6 x i1> noundef %y) #0 {
# | check:49'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 93: entry:
# | check:59'0 X error: no match found
# | 94: %x.addr = alloca [3 x <2 x i32>], align 4
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 95: %y.addr = alloca [3 x <2 x i32>], align 4
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 96: %0 = zext <6 x i1> %x to <6 x i32>
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 97: store <6 x i32> %0, ptr %x.addr, align 4
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 98: %1 = zext <6 x i1> %y to <6 x i32>
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 99: store <6 x i32> %1, ptr %y.addr, align 4
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 100: %2 = load <6 x i32>, ptr %x.addr, align 4
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 101: %loadedv = trunc <6 x i32> %2 to <6 x i1>
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:59'1 ? possible intended match
# | 102: %3 = load <6 x i32>, ptr %y.addr, align 4
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 103: %loadedv1 = trunc <6 x i32> %3 to <6 x i1>
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 104: %hlsl.and = and <6 x i1> %loadedv, %loadedv1
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 105: ret <6 x i1> %hlsl.and
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 106: }
# | check:59'0 ~~
# | 107:
# | check:59'0 ~
# | 108: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 109: define hidden noundef <8 x i1> @_Z16test_and_bool2x4u11matrix_typeILm2ELm4EbES_(<8 x i1> noundef %x, <8 x i1> noundef %y) #0 {
# | check:59'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 110: entry:
# | check:69'0 X error: no match found
# | 111: %x.addr = alloca [4 x <2 x i32>], align 4
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 112: %y.addr = alloca [4 x <2 x i32>], align 4
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 113: %0 = zext <8 x i1> %x to <8 x i32>
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 114: store <8 x i32> %0, ptr %x.addr, align 4
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 115: %1 = zext <8 x i1> %y to <8 x i32>
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 116: store <8 x i32> %1, ptr %y.addr, align 4
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 117: %2 = load <8 x i32>, ptr %x.addr, align 4
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 118: %loadedv = trunc <8 x i32> %2 to <8 x i1>
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:69'1 ? possible intended match
# | 119: %3 = load <8 x i32>, ptr %y.addr, align 4
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 120: %loadedv1 = trunc <8 x i32> %3 to <8 x i1>
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 121: %hlsl.and = and <8 x i1> %loadedv, %loadedv1
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 122: ret <8 x i1> %hlsl.and
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 123: }
# | check:69'0 ~~
# | 124:
# | check:69'0 ~
# | 125: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 126: define hidden noundef <3 x i1> @_Z16test_and_bool3x1u11matrix_typeILm3ELm1EbES_(<3 x i1> noundef %x, <3 x i1> noundef %y) #0 {
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 127: entry:
# | check:79'0 X error: no match found
# | 128: %x.addr = alloca [1 x <3 x i32>], align 4
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 129: %y.addr = alloca [1 x <3 x i32>], align 4
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 130: %0 = zext <3 x i1> %x to <3 x i32>
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 131: store <3 x i32> %0, ptr %x.addr, align 4
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 132: %1 = zext <3 x i1> %y to <3 x i32>
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 133: store <3 x i32> %1, ptr %y.addr, align 4
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 134: %2 = load <3 x i32>, ptr %x.addr, align 4
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 135: %loadedv = trunc <3 x i32> %2 to <3 x i1>
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:79'1 ? possible intended match
# | 136: %3 = load <3 x i32>, ptr %y.addr, align 4
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 137: %loadedv1 = trunc <3 x i32> %3 to <3 x i1>
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 138: %hlsl.and = and <3 x i1> %loadedv, %loadedv1
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 139: ret <3 x i1> %hlsl.and
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 140: }
# | check:79'0 ~~
# | 141:
# | check:79'0 ~
# | 142: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 143: define hidden noundef <6 x i1> @_Z16test_and_bool3x2u11matrix_typeILm3ELm2EbES_(<6 x i1> noundef %x, <6 x i1> noundef %y) #0 {
# | check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 144: entry:
# | check:89'0 X error: no match found
# | 145: %x.addr = alloca [2 x <3 x i32>], align 4
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 146: %y.addr = alloca [2 x <3 x i32>], align 4
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 147: %0 = zext <6 x i1> %x to <6 x i32>
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 148: store <6 x i32> %0, ptr %x.addr, align 4
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 149: %1 = zext <6 x i1> %y to <6 x i32>
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 150: store <6 x i32> %1, ptr %y.addr, align 4
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 151: %2 = load <6 x i32>, ptr %x.addr, align 4
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 152: %loadedv = trunc <6 x i32> %2 to <6 x i1>
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:89'1 ? possible intended match
# | 153: %3 = load <6 x i32>, ptr %y.addr, align 4
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 154: %loadedv1 = trunc <6 x i32> %3 to <6 x i1>
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 155: %hlsl.and = and <6 x i1> %loadedv, %loadedv1
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 156: ret <6 x i1> %hlsl.and
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 157: }
# | check:89'0 ~~
# | 158:
# | check:89'0 ~
# | 159: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 160: define hidden noundef <9 x i1> @_Z16test_and_bool3x3u11matrix_typeILm3ELm3EbES_(<9 x i1> noundef %x, <9 x i1> noundef %y) #0 {
# | check:89'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 161: entry:
# | check:100'0 X error: no match found
# | 162: %x.addr = alloca [3 x <3 x i32>], align 4
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 163: %y.addr = alloca [3 x <3 x i32>], align 4
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 164: %0 = zext <9 x i1> %x to <9 x i32>
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 165: store <9 x i32> %0, ptr %x.addr, align 4
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 166: %1 = zext <9 x i1> %y to <9 x i32>
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 167: store <9 x i32> %1, ptr %y.addr, align 4
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 168: %2 = load <9 x i32>, ptr %x.addr, align 4
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 169: %loadedv = trunc <9 x i32> %2 to <9 x i1>
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:100'1 ? possible intended match
# | 170: %3 = load <9 x i32>, ptr %y.addr, align 4
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 171: %loadedv1 = trunc <9 x i32> %3 to <9 x i1>
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 172: %hlsl.and = and <9 x i1> %loadedv, %loadedv1
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 173: ret <9 x i1> %hlsl.and
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 174: }
# | check:100'0 ~~
# | 175:
# | check:100'0 ~
# | 176: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 177: define hidden noundef <12 x i1> @_Z16test_and_bool3x4u11matrix_typeILm3ELm4EbES_(<12 x i1> noundef %x, <12 x i1> noundef %y) #0 {
# | check:100'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 178: entry:
# | check:110'0 X error: no match found
# | 179: %x.addr = alloca [4 x <3 x i32>], align 4
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 180: %y.addr = alloca [4 x <3 x i32>], align 4
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 181: %0 = zext <12 x i1> %x to <12 x i32>
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 182: store <12 x i32> %0, ptr %x.addr, align 4
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 183: %1 = zext <12 x i1> %y to <12 x i32>
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 184: store <12 x i32> %1, ptr %y.addr, align 4
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 185: %2 = load <12 x i32>, ptr %x.addr, align 4
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 186: %loadedv = trunc <12 x i32> %2 to <12 x i1>
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:110'1 ? possible intended match
# | 187: %3 = load <12 x i32>, ptr %y.addr, align 4
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 188: %loadedv1 = trunc <12 x i32> %3 to <12 x i1>
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 189: %hlsl.and = and <12 x i1> %loadedv, %loadedv1
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 190: ret <12 x i1> %hlsl.and
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 191: }
# | check:110'0 ~~
# | 192:
# | check:110'0 ~
# | 193: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 194: define hidden noundef <4 x i1> @_Z16test_and_bool4x1u11matrix_typeILm4ELm1EbES_(<4 x i1> noundef %x, <4 x i1> noundef %y) #0 {
# | check:110'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 195: entry:
# | check:120'0 X error: no match found
# | 196: %x.addr = alloca [1 x <4 x i32>], align 4
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 197: %y.addr = alloca [1 x <4 x i32>], align 4
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 198: %0 = zext <4 x i1> %x to <4 x i32>
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 199: store <4 x i32> %0, ptr %x.addr, align 4
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 200: %1 = zext <4 x i1> %y to <4 x i32>
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 201: store <4 x i32> %1, ptr %y.addr, align 4
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 202: %2 = load <4 x i32>, ptr %x.addr, align 4
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 203: %loadedv = trunc <4 x i32> %2 to <4 x i1>
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:120'1 ? possible intended match
# | 204: %3 = load <4 x i32>, ptr %y.addr, align 4
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 205: %loadedv1 = trunc <4 x i32> %3 to <4 x i1>
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 206: %hlsl.and = and <4 x i1> %loadedv, %loadedv1
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 207: ret <4 x i1> %hlsl.and
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 208: }
# | check:120'0 ~~
# | 209:
# | check:120'0 ~
# | 210: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 211: define hidden noundef <8 x i1> @_Z16test_and_bool4x2u11matrix_typeILm4ELm2EbES_(<8 x i1> noundef %x, <8 x i1> noundef %y) #0 {
# | check:120'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 212: entry:
# | check:130'0 X error: no match found
# | 213: %x.addr = alloca [2 x <4 x i32>], align 4
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 214: %y.addr = alloca [2 x <4 x i32>], align 4
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 215: %0 = zext <8 x i1> %x to <8 x i32>
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 216: store <8 x i32> %0, ptr %x.addr, align 4
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 217: %1 = zext <8 x i1> %y to <8 x i32>
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 218: store <8 x i32> %1, ptr %y.addr, align 4
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 219: %2 = load <8 x i32>, ptr %x.addr, align 4
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 220: %loadedv = trunc <8 x i32> %2 to <8 x i1>
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:130'1 ? possible intended match
# | 221: %3 = load <8 x i32>, ptr %y.addr, align 4
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 222: %loadedv1 = trunc <8 x i32> %3 to <8 x i1>
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 223: %hlsl.and = and <8 x i1> %loadedv, %loadedv1
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 224: ret <8 x i1> %hlsl.and
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 225: }
# | check:130'0 ~~
# | 226:
# | check:130'0 ~
# | 227: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 228: define hidden noundef <12 x i1> @_Z16test_and_bool4x3u11matrix_typeILm4ELm3EbES_(<12 x i1> noundef %x, <12 x i1> noundef %y) #0 {
# | check:130'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 229: entry:
# | check:140'0 X error: no match found
# | 230: %x.addr = alloca [3 x <4 x i32>], align 4
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 231: %y.addr = alloca [3 x <4 x i32>], align 4
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 232: %0 = zext <12 x i1> %x to <12 x i32>
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 233: store <12 x i32> %0, ptr %x.addr, align 4
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 234: %1 = zext <12 x i1> %y to <12 x i32>
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 235: store <12 x i32> %1, ptr %y.addr, align 4
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 236: %2 = load <12 x i32>, ptr %x.addr, align 4
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 237: %loadedv = trunc <12 x i32> %2 to <12 x i1>
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:140'1 ? possible intended match
# | 238: %3 = load <12 x i32>, ptr %y.addr, align 4
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 239: %loadedv1 = trunc <12 x i32> %3 to <12 x i1>
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 240: %hlsl.and = and <12 x i1> %loadedv, %loadedv1
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 241: ret <12 x i1> %hlsl.and
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 242: }
# | check:140'0 ~~
# | 243:
# | check:140'0 ~
# | 244: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 245: define hidden noundef <16 x i1> @_Z16test_and_bool4x4u11matrix_typeILm4ELm4EbES_(<16 x i1> noundef %x, <16 x i1> noundef %y) #0 {
# | check:140'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 246: entry:
# | check:150'0 X error: no match found
# | 247: %x.addr = alloca [4 x <4 x i32>], align 4
# | check:150'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 248: %y.addr = alloca [4 x <4 x i32>], align 4
# | check:150'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 249: %0 = zext <16 x i1> %x to <16 x i32>
# | check:150'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 250: store <16 x i32> %0, ptr %x.addr, align 4
# | check:150'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 251: %1 = zext <16 x i1> %y to <16 x i32>
# | check:150'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 252: store <16 x i32> %1, ptr %y.addr, align 4
# | check:150'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 253: %2 = load <16 x i32>, ptr %x.addr, align 4
# | check:150'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 254: %loadedv = trunc <16 x i32> %2 to <16 x i1>
# | check:150'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:150'1 ? possible intended match
# | 255: %3 = load <16 x i32>, ptr %y.addr, align 4
# | check:150'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 256: %loadedv1 = trunc <16 x i32> %3 to <16 x i1>
# | check:150'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 257: %hlsl.and = and <16 x i1> %loadedv, %loadedv1
# | check:150'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 258: ret <16 x i1> %hlsl.and
# | check:150'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 259: }
# | check:150'0 ~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGenHLSL/builtins/or.hlsl</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 -finclude-default-header -triple dxil-pc-shadermodel6.3-library C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl -emit-llvm -disable-llvm-passes -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl
# 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 -finclude-default-header -triple dxil-pc-shadermodel6.3-library 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl' -emit-llvm -disable-llvm-passes -o -
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:78:18: warning: implicit conversion turns floating-point number into integer: 'float4' (aka 'vector<float, 4>') to 'vector<bool, 4>' (vector of 4 'bool' values) [-Wfloat-conversion]
# | 78 | return or(x, y);
# | | ~~ ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:78:15: warning: implicit conversion turns floating-point number into integer: 'float4' (aka 'vector<float, 4>') to 'vector<bool, 4>' (vector of 4 'bool' values) [-Wfloat-conversion]
# | 78 | return or(x, y);
# | | ~~ ^
# | 2 warnings generated.
# `-----------------------------
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:84:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <2 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:121:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:132:5: note: possible intended match here
# | %hlsl.or = or <2 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:94:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <3 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:138:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:149:5: note: possible intended match here
# | %hlsl.or = or <3 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:104:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <4 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:155:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:166:5: note: possible intended match here
# | %hlsl.or = or <4 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:114:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <2 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:172:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:183:5: note: possible intended match here
# | %hlsl.or = or <2 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:125:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <4 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:189:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:200:5: note: possible intended match here
# | %hlsl.or = or <4 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:135:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <6 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:206:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:217:5: note: possible intended match here
# | %hlsl.or = or <6 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:145:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <8 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:223:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:234:5: note: possible intended match here
# | %hlsl.or = or <8 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:155:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <3 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:240:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:251:5: note: possible intended match here
# | %hlsl.or = or <3 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:165:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <6 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:257:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:268:5: note: possible intended match here
# | %hlsl.or = or <6 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:176:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <9 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:274:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:285:5: note: possible intended match here
# | %hlsl.or = or <9 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:186:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <12 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:291:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:302:5: note: possible intended match here
# | %hlsl.or = or <12 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:196:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <4 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:308:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:319:5: note: possible intended match here
# | %hlsl.or = or <4 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:206:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <8 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:325:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:336:5: note: possible intended match here
# | %hlsl.or = or <8 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:216:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <12 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:342:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:353:5: note: possible intended match here
# | %hlsl.or = or <12 x i1> %loadedv, %loadedv1
# | ^
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl:226:11: error: CHECK: expected string not found in input
# | // CHECK: [[HLSL_OR:%.*]] = or <16 x i32> [[A:%.*]], [[B:%.*]]
# | ^
# | <stdin>:359:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:370:5: note: possible intended match here
# | %hlsl.or = or <16 x i1> %loadedv, %loadedv1
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\or.hlsl
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 116: ret <4 x i1> %hlsl.or
# | 117: }
# | 118:
# | 119: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | 120: define hidden noundef <2 x i1> @_Z15test_or_bool1x2u11matrix_typeILm1ELm2EbES_(<2 x i1> noundef %x, <2 x i1> noundef %y) #0 {
# | 121: entry:
# | check:84'0 X error: no match found
# | 122: %x.addr = alloca [2 x <1 x i32>], align 4
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 123: %y.addr = alloca [2 x <1 x i32>], align 4
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 124: %0 = zext <2 x i1> %x to <2 x i32>
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 125: store <2 x i32> %0, ptr %x.addr, align 4
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 126: %1 = zext <2 x i1> %y to <2 x i32>
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 127: store <2 x i32> %1, ptr %y.addr, align 4
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 128: %2 = load <2 x i32>, ptr %x.addr, align 4
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 129: %loadedv = trunc <2 x i32> %2 to <2 x i1>
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 130: %3 = load <2 x i32>, ptr %y.addr, align 4
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 131: %loadedv1 = trunc <2 x i32> %3 to <2 x i1>
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 132: %hlsl.or = or <2 x i1> %loadedv, %loadedv1
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:84'1 ? possible intended match
# | 133: ret <2 x i1> %hlsl.or
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 134: }
# | check:84'0 ~~
# | 135:
# | check:84'0 ~
# | 136: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 137: define hidden noundef <3 x i1> @_Z15test_or_bool1x3u11matrix_typeILm1ELm3EbES_(<3 x i1> noundef %x, <3 x i1> noundef %y) #0 {
# | check:84'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 138: entry:
# | check:94'0 X error: no match found
# | 139: %x.addr = alloca [3 x <1 x i32>], align 4
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 140: %y.addr = alloca [3 x <1 x i32>], align 4
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 141: %0 = zext <3 x i1> %x to <3 x i32>
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 142: store <3 x i32> %0, ptr %x.addr, align 4
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 143: %1 = zext <3 x i1> %y to <3 x i32>
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 144: store <3 x i32> %1, ptr %y.addr, align 4
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 145: %2 = load <3 x i32>, ptr %x.addr, align 4
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 146: %loadedv = trunc <3 x i32> %2 to <3 x i1>
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 147: %3 = load <3 x i32>, ptr %y.addr, align 4
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 148: %loadedv1 = trunc <3 x i32> %3 to <3 x i1>
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 149: %hlsl.or = or <3 x i1> %loadedv, %loadedv1
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:94'1 ? possible intended match
# | 150: ret <3 x i1> %hlsl.or
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 151: }
# | check:94'0 ~~
# | 152:
# | check:94'0 ~
# | 153: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 154: define hidden noundef <4 x i1> @_Z15test_or_bool1x4u11matrix_typeILm1ELm4EbES_(<4 x i1> noundef %x, <4 x i1> noundef %y) #0 {
# | check:94'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 155: entry:
# | check:104'0 X error: no match found
# | 156: %x.addr = alloca [4 x <1 x i32>], align 4
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 157: %y.addr = alloca [4 x <1 x i32>], align 4
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 158: %0 = zext <4 x i1> %x to <4 x i32>
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 159: store <4 x i32> %0, ptr %x.addr, align 4
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 160: %1 = zext <4 x i1> %y to <4 x i32>
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 161: store <4 x i32> %1, ptr %y.addr, align 4
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 162: %2 = load <4 x i32>, ptr %x.addr, align 4
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 163: %loadedv = trunc <4 x i32> %2 to <4 x i1>
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 164: %3 = load <4 x i32>, ptr %y.addr, align 4
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 165: %loadedv1 = trunc <4 x i32> %3 to <4 x i1>
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 166: %hlsl.or = or <4 x i1> %loadedv, %loadedv1
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:104'1 ? possible intended match
# | 167: ret <4 x i1> %hlsl.or
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 168: }
# | check:104'0 ~~
# | 169:
# | check:104'0 ~
# | 170: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 171: define hidden noundef <2 x i1> @_Z15test_or_bool2x1u11matrix_typeILm2ELm1EbES_(<2 x i1> noundef %x, <2 x i1> noundef %y) #0 {
# | check:104'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 172: entry:
# | check:114'0 X error: no match found
# | 173: %x.addr = alloca [1 x <2 x i32>], align 4
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 174: %y.addr = alloca [1 x <2 x i32>], align 4
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 175: %0 = zext <2 x i1> %x to <2 x i32>
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 176: store <2 x i32> %0, ptr %x.addr, align 4
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 177: %1 = zext <2 x i1> %y to <2 x i32>
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 178: store <2 x i32> %1, ptr %y.addr, align 4
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 179: %2 = load <2 x i32>, ptr %x.addr, align 4
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 180: %loadedv = trunc <2 x i32> %2 to <2 x i1>
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 181: %3 = load <2 x i32>, ptr %y.addr, align 4
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 182: %loadedv1 = trunc <2 x i32> %3 to <2 x i1>
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 183: %hlsl.or = or <2 x i1> %loadedv, %loadedv1
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:114'1 ? possible intended match
# | 184: ret <2 x i1> %hlsl.or
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 185: }
# | check:114'0 ~~
# | 186:
# | check:114'0 ~
# | 187: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 188: define hidden noundef <4 x i1> @_Z15test_or_bool2x2u11matrix_typeILm2ELm2EbES_(<4 x i1> noundef %x, <4 x i1> noundef %y) #0 {
# | check:114'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 189: entry:
# | check:125'0 X error: no match found
# | 190: %x.addr = alloca [2 x <2 x i32>], align 4
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 191: %y.addr = alloca [2 x <2 x i32>], align 4
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 192: %0 = zext <4 x i1> %x to <4 x i32>
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 193: store <4 x i32> %0, ptr %x.addr, align 4
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 194: %1 = zext <4 x i1> %y to <4 x i32>
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 195: store <4 x i32> %1, ptr %y.addr, align 4
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 196: %2 = load <4 x i32>, ptr %x.addr, align 4
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 197: %loadedv = trunc <4 x i32> %2 to <4 x i1>
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 198: %3 = load <4 x i32>, ptr %y.addr, align 4
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 199: %loadedv1 = trunc <4 x i32> %3 to <4 x i1>
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 200: %hlsl.or = or <4 x i1> %loadedv, %loadedv1
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:125'1 ? possible intended match
# | 201: ret <4 x i1> %hlsl.or
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 202: }
# | check:125'0 ~~
# | 203:
# | check:125'0 ~
# | 204: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 205: define hidden noundef <6 x i1> @_Z15test_or_bool2x3u11matrix_typeILm2ELm3EbES_(<6 x i1> noundef %x, <6 x i1> noundef %y) #0 {
# | check:125'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 206: entry:
# | check:135'0 X error: no match found
# | 207: %x.addr = alloca [3 x <2 x i32>], align 4
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 208: %y.addr = alloca [3 x <2 x i32>], align 4
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 209: %0 = zext <6 x i1> %x to <6 x i32>
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 210: store <6 x i32> %0, ptr %x.addr, align 4
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 211: %1 = zext <6 x i1> %y to <6 x i32>
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 212: store <6 x i32> %1, ptr %y.addr, align 4
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 213: %2 = load <6 x i32>, ptr %x.addr, align 4
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 214: %loadedv = trunc <6 x i32> %2 to <6 x i1>
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 215: %3 = load <6 x i32>, ptr %y.addr, align 4
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 216: %loadedv1 = trunc <6 x i32> %3 to <6 x i1>
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 217: %hlsl.or = or <6 x i1> %loadedv, %loadedv1
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:135'1 ? possible intended match
# | 218: ret <6 x i1> %hlsl.or
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 219: }
# | check:135'0 ~~
# | 220:
# | check:135'0 ~
# | 221: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 222: define hidden noundef <8 x i1> @_Z15test_or_bool2x4u11matrix_typeILm2ELm4EbES_(<8 x i1> noundef %x, <8 x i1> noundef %y) #0 {
# | check:135'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 223: entry:
# | check:145'0 X error: no match found
# | 224: %x.addr = alloca [4 x <2 x i32>], align 4
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 225: %y.addr = alloca [4 x <2 x i32>], align 4
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 226: %0 = zext <8 x i1> %x to <8 x i32>
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 227: store <8 x i32> %0, ptr %x.addr, align 4
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 228: %1 = zext <8 x i1> %y to <8 x i32>
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 229: store <8 x i32> %1, ptr %y.addr, align 4
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 230: %2 = load <8 x i32>, ptr %x.addr, align 4
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 231: %loadedv = trunc <8 x i32> %2 to <8 x i1>
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 232: %3 = load <8 x i32>, ptr %y.addr, align 4
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 233: %loadedv1 = trunc <8 x i32> %3 to <8 x i1>
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 234: %hlsl.or = or <8 x i1> %loadedv, %loadedv1
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:145'1 ? possible intended match
# | 235: ret <8 x i1> %hlsl.or
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 236: }
# | check:145'0 ~~
# | 237:
# | check:145'0 ~
# | 238: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 239: define hidden noundef <3 x i1> @_Z15test_or_bool3x1u11matrix_typeILm3ELm1EbES_(<3 x i1> noundef %x, <3 x i1> noundef %y) #0 {
# | check:145'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 240: entry:
# | check:155'0 X error: no match found
# | 241: %x.addr = alloca [1 x <3 x i32>], align 4
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 242: %y.addr = alloca [1 x <3 x i32>], align 4
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 243: %0 = zext <3 x i1> %x to <3 x i32>
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 244: store <3 x i32> %0, ptr %x.addr, align 4
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 245: %1 = zext <3 x i1> %y to <3 x i32>
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 246: store <3 x i32> %1, ptr %y.addr, align 4
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 247: %2 = load <3 x i32>, ptr %x.addr, align 4
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 248: %loadedv = trunc <3 x i32> %2 to <3 x i1>
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 249: %3 = load <3 x i32>, ptr %y.addr, align 4
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 250: %loadedv1 = trunc <3 x i32> %3 to <3 x i1>
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 251: %hlsl.or = or <3 x i1> %loadedv, %loadedv1
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:155'1 ? possible intended match
# | 252: ret <3 x i1> %hlsl.or
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 253: }
# | check:155'0 ~~
# | 254:
# | check:155'0 ~
# | 255: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 256: define hidden noundef <6 x i1> @_Z15test_or_bool3x2u11matrix_typeILm3ELm2EbES_(<6 x i1> noundef %x, <6 x i1> noundef %y) #0 {
# | check:155'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 257: entry:
# | check:165'0 X error: no match found
# | 258: %x.addr = alloca [2 x <3 x i32>], align 4
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 259: %y.addr = alloca [2 x <3 x i32>], align 4
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 260: %0 = zext <6 x i1> %x to <6 x i32>
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 261: store <6 x i32> %0, ptr %x.addr, align 4
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 262: %1 = zext <6 x i1> %y to <6 x i32>
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 263: store <6 x i32> %1, ptr %y.addr, align 4
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 264: %2 = load <6 x i32>, ptr %x.addr, align 4
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 265: %loadedv = trunc <6 x i32> %2 to <6 x i1>
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 266: %3 = load <6 x i32>, ptr %y.addr, align 4
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 267: %loadedv1 = trunc <6 x i32> %3 to <6 x i1>
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 268: %hlsl.or = or <6 x i1> %loadedv, %loadedv1
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:165'1 ? possible intended match
# | 269: ret <6 x i1> %hlsl.or
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 270: }
# | check:165'0 ~~
# | 271:
# | check:165'0 ~
# | 272: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 273: define hidden noundef <9 x i1> @_Z15test_or_bool3x3u11matrix_typeILm3ELm3EbES_(<9 x i1> noundef %x, <9 x i1> noundef %y) #0 {
# | check:165'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 274: entry:
# | check:176'0 X error: no match found
# | 275: %x.addr = alloca [3 x <3 x i32>], align 4
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 276: %y.addr = alloca [3 x <3 x i32>], align 4
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 277: %0 = zext <9 x i1> %x to <9 x i32>
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 278: store <9 x i32> %0, ptr %x.addr, align 4
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 279: %1 = zext <9 x i1> %y to <9 x i32>
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 280: store <9 x i32> %1, ptr %y.addr, align 4
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 281: %2 = load <9 x i32>, ptr %x.addr, align 4
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 282: %loadedv = trunc <9 x i32> %2 to <9 x i1>
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 283: %3 = load <9 x i32>, ptr %y.addr, align 4
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 284: %loadedv1 = trunc <9 x i32> %3 to <9 x i1>
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 285: %hlsl.or = or <9 x i1> %loadedv, %loadedv1
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:176'1 ? possible intended match
# | 286: ret <9 x i1> %hlsl.or
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 287: }
# | check:176'0 ~~
# | 288:
# | check:176'0 ~
# | 289: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 290: define hidden noundef <12 x i1> @_Z15test_or_bool3x4u11matrix_typeILm3ELm4EbES_(<12 x i1> noundef %x, <12 x i1> noundef %y) #0 {
# | check:176'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 291: entry:
# | check:186'0 X error: no match found
# | 292: %x.addr = alloca [4 x <3 x i32>], align 4
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 293: %y.addr = alloca [4 x <3 x i32>], align 4
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 294: %0 = zext <12 x i1> %x to <12 x i32>
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 295: store <12 x i32> %0, ptr %x.addr, align 4
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 296: %1 = zext <12 x i1> %y to <12 x i32>
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 297: store <12 x i32> %1, ptr %y.addr, align 4
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 298: %2 = load <12 x i32>, ptr %x.addr, align 4
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 299: %loadedv = trunc <12 x i32> %2 to <12 x i1>
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 300: %3 = load <12 x i32>, ptr %y.addr, align 4
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 301: %loadedv1 = trunc <12 x i32> %3 to <12 x i1>
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 302: %hlsl.or = or <12 x i1> %loadedv, %loadedv1
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:186'1 ? possible intended match
# | 303: ret <12 x i1> %hlsl.or
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 304: }
# | check:186'0 ~~
# | 305:
# | check:186'0 ~
# | 306: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 307: define hidden noundef <4 x i1> @_Z15test_or_bool4x1u11matrix_typeILm4ELm1EbES_(<4 x i1> noundef %x, <4 x i1> noundef %y) #0 {
# | check:186'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 308: entry:
# | check:196'0 X error: no match found
# | 309: %x.addr = alloca [1 x <4 x i32>], align 4
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 310: %y.addr = alloca [1 x <4 x i32>], align 4
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 311: %0 = zext <4 x i1> %x to <4 x i32>
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 312: store <4 x i32> %0, ptr %x.addr, align 4
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 313: %1 = zext <4 x i1> %y to <4 x i32>
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 314: store <4 x i32> %1, ptr %y.addr, align 4
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 315: %2 = load <4 x i32>, ptr %x.addr, align 4
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 316: %loadedv = trunc <4 x i32> %2 to <4 x i1>
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 317: %3 = load <4 x i32>, ptr %y.addr, align 4
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 318: %loadedv1 = trunc <4 x i32> %3 to <4 x i1>
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 319: %hlsl.or = or <4 x i1> %loadedv, %loadedv1
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:196'1 ? possible intended match
# | 320: ret <4 x i1> %hlsl.or
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 321: }
# | check:196'0 ~~
# | 322:
# | check:196'0 ~
# | 323: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 324: define hidden noundef <8 x i1> @_Z15test_or_bool4x2u11matrix_typeILm4ELm2EbES_(<8 x i1> noundef %x, <8 x i1> noundef %y) #0 {
# | check:196'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 325: entry:
# | check:206'0 X error: no match found
# | 326: %x.addr = alloca [2 x <4 x i32>], align 4
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 327: %y.addr = alloca [2 x <4 x i32>], align 4
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 328: %0 = zext <8 x i1> %x to <8 x i32>
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 329: store <8 x i32> %0, ptr %x.addr, align 4
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 330: %1 = zext <8 x i1> %y to <8 x i32>
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 331: store <8 x i32> %1, ptr %y.addr, align 4
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 332: %2 = load <8 x i32>, ptr %x.addr, align 4
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 333: %loadedv = trunc <8 x i32> %2 to <8 x i1>
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 334: %3 = load <8 x i32>, ptr %y.addr, align 4
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 335: %loadedv1 = trunc <8 x i32> %3 to <8 x i1>
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 336: %hlsl.or = or <8 x i1> %loadedv, %loadedv1
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:206'1 ? possible intended match
# | 337: ret <8 x i1> %hlsl.or
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~
# | 338: }
# | check:206'0 ~~
# | 339:
# | check:206'0 ~
# | 340: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 341: define hidden noundef <12 x i1> @_Z15test_or_bool4x3u11matrix_typeILm4ELm3EbES_(<12 x i1> noundef %x, <12 x i1> noundef %y) #0 {
# | check:206'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 342: entry:
# | check:216'0 X error: no match found
# | 343: %x.addr = alloca [3 x <4 x i32>], align 4
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 344: %y.addr = alloca [3 x <4 x i32>], align 4
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 345: %0 = zext <12 x i1> %x to <12 x i32>
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 346: store <12 x i32> %0, ptr %x.addr, align 4
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 347: %1 = zext <12 x i1> %y to <12 x i32>
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 348: store <12 x i32> %1, ptr %y.addr, align 4
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 349: %2 = load <12 x i32>, ptr %x.addr, align 4
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 350: %loadedv = trunc <12 x i32> %2 to <12 x i1>
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 351: %3 = load <12 x i32>, ptr %y.addr, align 4
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 352: %loadedv1 = trunc <12 x i32> %3 to <12 x i1>
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 353: %hlsl.or = or <12 x i1> %loadedv, %loadedv1
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:216'1 ? possible intended match
# | 354: ret <12 x i1> %hlsl.or
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 355: }
# | check:216'0 ~~
# | 356:
# | check:216'0 ~
# | 357: ; Function Attrs: alwaysinline convergent mustprogress norecurse nounwind
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 358: define hidden noundef <16 x i1> @_Z15test_or_bool4x4u11matrix_typeILm4ELm4EbES_(<16 x i1> noundef %x, <16 x i1> noundef %y) #0 {
# | check:216'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 359: entry:
# | check:226'0 X error: no match found
# | 360: %x.addr = alloca [4 x <4 x i32>], align 4
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 361: %y.addr = alloca [4 x <4 x i32>], align 4
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 362: %0 = zext <16 x i1> %x to <16 x i32>
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 363: store <16 x i32> %0, ptr %x.addr, align 4
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 364: %1 = zext <16 x i1> %y to <16 x i32>
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 365: store <16 x i32> %1, ptr %y.addr, align 4
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 366: %2 = load <16 x i32>, ptr %x.addr, align 4
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 367: %loadedv = trunc <16 x i32> %2 to <16 x i1>
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 368: %3 = load <16 x i32>, ptr %y.addr, align 4
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 369: %loadedv1 = trunc <16 x i32> %3 to <16 x i1>
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 370: %hlsl.or = or <16 x i1> %loadedv, %loadedv1
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:226'1 ? possible intended match
# | 371: ret <16 x i1> %hlsl.or
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 372: }
# | check:226'0 ~~
# | 373:
# | check:226'0 ~
# | 374: attributes #0 = { alwaysinline convergent mustprogress norecurse nounwind "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" }
# | check:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 375:
# | check:226'0 ~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGenHLSL/builtins/transpose.hlsl</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 -finclude-default-header -triple dxil-pc-shadermodel6.3-library -emit-llvm -disable-llvm-passes -fmatrix-memory-layout=column-major -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\transpose.hlsl | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\transpose.hlsl --check-prefixes=CHECK,COLMAJOR
# 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 -finclude-default-header -triple dxil-pc-shadermodel6.3-library -emit-llvm -disable-llvm-passes -fmatrix-memory-layout=column-major -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\transpose.hlsl'
# 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\clang\test\CodeGenHLSL\builtins\transpose.hlsl' --check-prefixes=CHECK,COLMAJOR
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\transpose.hlsl:12:14: error: COLMAJOR: expected string not found in input
# | // COLMAJOR: [[TRANS:%.*]] = call <6 x i32> @llvm.matrix.transpose.v6i32(<6 x i32> [[A]], i32 2, i32 3)
# | ^
# | <stdin>:12:43: note: scanning from here
# | %1 = load <6 x i32>, ptr %a.addr, align 4
# | ^
# | <stdin>:12:43: note: with "A" equal to "%1"
# | %1 = load <6 x i32>, ptr %a.addr, align 4
# | ^
# | <stdin>:14:2: note: possible intended match here
# | %2 = call <6 x i1> @llvm.matrix.transpose.v6i1(<6 x i1> %loadedv, i32 2, i32 3)
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGenHLSL\builtins\transpose.hlsl
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 7: define hidden noundef <6 x i1> @_Z22test_transpose_bool2x3u11matrix_typeILm2ELm3EbE(<6 x i1> noundef %a) #0 {
# | 8: entry:
# | 9: %a.addr = alloca [3 x <2 x i32>], align 4
# | 10: %0 = zext <6 x i1> %a to <6 x i32>
# | 11: store <6 x i32> %0, ptr %a.addr, align 4
# | 12: %1 = load <6 x i32>, ptr %a.addr, align 4
# | check:12'0 X error: no match found
# | check:12'1 with "A" equal to "%1"
# | 13: %loadedv = trunc <6 x i32> %1 to <6 x i1>
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 14: %2 = call <6 x i1> @llvm.matrix.transpose.v6i1(<6 x i1> %loadedv, i32 2, i32 3)
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:12'2 ? possible intended match
# | 15: ret <6 x i1> %2
# | check:12'0 ~~~~~~~~~~~~~~~~~
# | 16: }
# | check:12'0 ~~
# | 17:
# | check:12'0 ~
# | 18: ; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 19: declare <6 x i1> @llvm.matrix.transpose.v6i1(<6 x i1>, i32 immarg, i32 immarg) #1
# | check:12'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# 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/195586
More information about the cfe-commits
mailing list