[clang] [CIR][X86] Add support for `intersect` builtins (PR #172554)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 9 10:11:30 PST 2026


github-actions[bot] wrote:

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

* 86260 tests passed
* 755 tests skipped
* 2 tests failed

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

### Clang
<details>
<summary>Clang.CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c -triple=x86_64-unknown-linux -target-feature +avx512vp2intersect -target-feature +avx512vl -fclangir -emit-cir -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir -Wall -Werror
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c -triple=x86_64-unknown-linux -target-feature +avx512vp2intersect -target-feature +avx512vl -fclangir -emit-cir -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir -Wall -Werror
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CIR --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CIR --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c:54:10: error: CIR: expected string not found in input
# |  // CIR: %[[SHUF1:.*]] = cir.vec.shuffle(%[[VAL1]], %[[ZERO1]] : !cir.vector<4 x !cir.bool>) [#cir.int<0> : !s32i, #cir.int<1> : !s32i, #cir.int<2> : !s32i, #cir.int<3> : !s32i, #cir.int<4> : !s32i, #cir.int<5> : !s32i, #cir.int<6> : !s32i, #cir.int<7> : !s32i] : !cir.vector<8 x !cir.bool>
# |          ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:159:56: note: scanning from here
# |  %10 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc48)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:159:56: note: with "VAL1" equal to "9"
# |  %10 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc48)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:159:56: note: with "ZERO1" equal to "10"
# |  %10 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc48)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c:92:10: error: CIR: expected string not found in input
# |  // CIR: %[[SHUF1:.*]] = cir.vec.shuffle(%[[VAL1]], %[[ZERO1]] : !cir.vector<4 x !cir.bool>) [#cir.int<0> : !s32i, #cir.int<1> : !s32i, #cir.int<2> : !s32i, #cir.int<3> : !s32i, #cir.int<4> : !s32i, #cir.int<5> : !s32i, #cir.int<6> : !s32i, #cir.int<7> : !s32i] : !cir.vector<8 x !cir.bool>
# |          ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:203:56: note: scanning from here
# |  %12 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc80)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:203:56: note: with "VAL1" equal to "11"
# |  %12 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc80)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:203:56: note: with "ZERO1" equal to "12"
# |  %12 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc80)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c:130:10: error: CIR: expected string not found in input
# |  // CIR: %[[SHUF1:.*]] = cir.vec.shuffle(%[[VAL1]], %[[ZERO1]] : !cir.vector<2 x !cir.bool>) [#cir.int<0> : !s32i, #cir.int<1> : !s32i, #cir.int<2> : !s32i, #cir.int<3> : !s32i, #cir.int<2> : !s32i, #cir.int<3> : !s32i, #cir.int<2> : !s32i, #cir.int<3> : !s32i] : !cir.vector<8 x !cir.bool>
# |          ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:245:56: note: scanning from here
# |  %10 = cir.const #cir.zero : !cir.vector<2 x !cir.bool> loc(#loc112)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:245:56: note: with "VAL1" equal to "9"
# |  %10 = cir.const #cir.zero : !cir.vector<2 x !cir.bool> loc(#loc112)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:245:56: note: with "ZERO1" equal to "10"
# |  %10 = cir.const #cir.zero : !cir.vector<2 x !cir.bool> loc(#loc112)
# |                                                        ^
# | 
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |            154:  %5 = cir.load align(32) %1 : !cir.ptr<!cir.vector<4 x !s64i>>, !cir.vector<4 x !s64i> loc(#loc45) 
# |            155:  %6 = cir.load align(8) %2 : !cir.ptr<!cir.ptr<!u8i>>, !cir.ptr<!u8i> loc(#loc46) 
# |            156:  %7 = cir.load align(8) %3 : !cir.ptr<!cir.ptr<!u8i>>, !cir.ptr<!u8i> loc(#loc47) 
# |            157:  %8 = cir.call_llvm_intrinsic "x86.avx512.vp2intersect.q.256" %4, %5 : (!cir.vector<4 x !s64i>, !cir.vector<4 x !s64i>) -> !rec_anon_struct1 loc(#loc48) 
# |            158:  %9 = cir.extract_member %8[0] : !rec_anon_struct1 -> !cir.vector<4 x !cir.bool> loc(#loc48) 
# |            159:  %10 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc48) 
# | check:54'0                                                             X~~~~~~~~~~~~ error: no match found
# | check:54'1                                                                           with "VAL1" equal to "9"
# | check:54'2                                                                           with "ZERO1" equal to "10"
# |            160:  %11 = cir.vec.shuffle(%9, %10 : !cir.vector<4 x !cir.bool>) [#cir.int<0> : !s64i, #cir.int<1> : !s64i, #cir.int<2> : !s64i, #cir.int<3> : !s64i, #cir.int<4> : !s64i, #cir.int<5> : !s64i, #cir.int<6> : !s64i, #cir.int<7> : !s64i] : !cir.vector<8 x !cir.bool> loc(#loc48) 
# | check:54'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            161:  %12 = cir.cast bitcast %11 : !cir.vector<8 x !cir.bool> -> !u8i loc(#loc48) 
# | check:54'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            162:  cir.store align(1) %12, %6 : !u8i, !cir.ptr<!u8i> loc(#loc48) 
# | check:54'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            163:  %13 = cir.extract_member %8[1] : !rec_anon_struct1 -> !cir.vector<4 x !cir.bool> loc(#loc48) 
# | check:54'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            164:  %14 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc48) 
# | check:54'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            198:  %7 = cir.cast bitcast %6 : !cir.vector<2 x !s64i> -> !cir.vector<4 x !s32i> loc(#loc77) 
# |            199:  %8 = cir.load align(8) %2 : !cir.ptr<!cir.ptr<!u8i>>, !cir.ptr<!u8i> loc(#loc78) 
# |            200:  %9 = cir.load align(8) %3 : !cir.ptr<!cir.ptr<!u8i>>, !cir.ptr<!u8i> loc(#loc79) 
# |            201:  %10 = cir.call_llvm_intrinsic "x86.avx512.vp2intersect.d.128" %5, %7 : (!cir.vector<4 x !s32i>, !cir.vector<4 x !s32i>) -> !rec_anon_struct1 loc(#loc80) 
# |            202:  %11 = cir.extract_member %10[0] : !rec_anon_struct1 -> !cir.vector<4 x !cir.bool> loc(#loc80) 
# |            203:  %12 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc80) 
# | check:92'0                                                             X~~~~~~~~~~~~ error: no match found
# | check:92'1                                                                           with "VAL1" equal to "11"
# | check:92'2                                                                           with "ZERO1" equal to "12"
# |            204:  %13 = cir.vec.shuffle(%11, %12 : !cir.vector<4 x !cir.bool>) [#cir.int<0> : !s64i, #cir.int<1> : !s64i, #cir.int<2> : !s64i, #cir.int<3> : !s64i, #cir.int<4> : !s64i, #cir.int<5> : !s64i, #cir.int<6> : !s64i, #cir.int<7> : !s64i] : !cir.vector<8 x !cir.bool> loc(#loc80) 
# | check:92'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            205:  %14 = cir.cast bitcast %13 : !cir.vector<8 x !cir.bool> -> !u8i loc(#loc80) 
# | check:92'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            206:  cir.store align(1) %14, %8 : !u8i, !cir.ptr<!u8i> loc(#loc80) 
# | check:92'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            207:  %15 = cir.extract_member %10[1] : !rec_anon_struct1 -> !cir.vector<4 x !cir.bool> loc(#loc80) 
# | check:92'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            208:  %16 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc80) 
# | check:92'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            240:  %5 = cir.load align(16) %1 : !cir.ptr<!cir.vector<2 x !s64i>>, !cir.vector<2 x !s64i> loc(#loc109) 
# |            241:  %6 = cir.load align(8) %2 : !cir.ptr<!cir.ptr<!u8i>>, !cir.ptr<!u8i> loc(#loc110) 
# |            242:  %7 = cir.load align(8) %3 : !cir.ptr<!cir.ptr<!u8i>>, !cir.ptr<!u8i> loc(#loc111) 
# |            243:  %8 = cir.call_llvm_intrinsic "x86.avx512.vp2intersect.q.128" %4, %5 : (!cir.vector<2 x !s64i>, !cir.vector<2 x !s64i>) -> !rec_anon_struct2 loc(#loc112) 
# |            244:  %9 = cir.extract_member %8[0] : !rec_anon_struct2 -> !cir.vector<2 x !cir.bool> loc(#loc112) 
# |            245:  %10 = cir.const #cir.zero : !cir.vector<2 x !cir.bool> loc(#loc112) 
# | check:130'0                                                            X~~~~~~~~~~~~~ error: no match found
# | check:130'1                                                                           with "VAL1" equal to "9"
# | check:130'2                                                                           with "ZERO1" equal to "10"
# |            246:  %11 = cir.vec.shuffle(%9, %10 : !cir.vector<2 x !cir.bool>) [#cir.int<0> : !s64i, #cir.int<1> : !s64i, #cir.int<2> : !s64i, #cir.int<3> : !s64i, #cir.int<2> : !s64i, #cir.int<3> : !s64i, #cir.int<2> : !s64i, #cir.int<3> : !s64i] : !cir.vector<8 x !cir.bool> loc(#loc112) 
# | check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            247:  %12 = cir.cast bitcast %11 : !cir.vector<8 x !cir.bool> -> !u8i loc(#loc112) 
# | check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            248:  cir.store align(1) %12, %6 : !u8i, !cir.ptr<!u8i> loc(#loc112) 
# | check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            249:  %13 = cir.extract_member %8[1] : !rec_anon_struct2 -> !cir.vector<2 x !cir.bool> loc(#loc112) 
# | check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            250:  %14 = cir.const #cir.zero : !cir.vector<2 x !cir.bool> loc(#loc112) 
# | check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c -triple=x86_64-unknown-linux -target-feature +avx512vp2intersect -target-feature +avx512vl -fclangir -emit-cir -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir -Wall -Werror
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -x c -flax-vector-conversions=none -ffreestanding /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c -triple=x86_64-unknown-linux -target-feature +avx512vp2intersect -target-feature +avx512vl -fclangir -emit-cir -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir -Wall -Werror
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CIR --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CIR --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c:54:10: error: CIR: expected string not found in input
# |  // CIR: %[[SHUF1:.*]] = cir.vec.shuffle(%[[VAL1]], %[[ZERO1]] : !cir.vector<4 x !cir.bool>) [#cir.int<0> : !s32i, #cir.int<1> : !s32i, #cir.int<2> : !s32i, #cir.int<3> : !s32i, #cir.int<4> : !s32i, #cir.int<5> : !s32i, #cir.int<6> : !s32i, #cir.int<7> : !s32i] : !cir.vector<8 x !cir.bool>
# |          ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:159:56: note: scanning from here
# |  %10 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc48)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:159:56: note: with "VAL1" equal to "9"
# |  %10 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc48)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:159:56: note: with "ZERO1" equal to "10"
# |  %10 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc48)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c:92:10: error: CIR: expected string not found in input
# |  // CIR: %[[SHUF1:.*]] = cir.vec.shuffle(%[[VAL1]], %[[ZERO1]] : !cir.vector<4 x !cir.bool>) [#cir.int<0> : !s32i, #cir.int<1> : !s32i, #cir.int<2> : !s32i, #cir.int<3> : !s32i, #cir.int<4> : !s32i, #cir.int<5> : !s32i, #cir.int<6> : !s32i, #cir.int<7> : !s32i] : !cir.vector<8 x !cir.bool>
# |          ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:203:56: note: scanning from here
# |  %12 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc80)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:203:56: note: with "VAL1" equal to "11"
# |  %12 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc80)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:203:56: note: with "ZERO1" equal to "12"
# |  %12 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc80)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c:130:10: error: CIR: expected string not found in input
# |  // CIR: %[[SHUF1:.*]] = cir.vec.shuffle(%[[VAL1]], %[[ZERO1]] : !cir.vector<2 x !cir.bool>) [#cir.int<0> : !s32i, #cir.int<1> : !s32i, #cir.int<2> : !s32i, #cir.int<3> : !s32i, #cir.int<2> : !s32i, #cir.int<3> : !s32i, #cir.int<2> : !s32i, #cir.int<3> : !s32i] : !cir.vector<8 x !cir.bool>
# |          ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:245:56: note: scanning from here
# |  %10 = cir.const #cir.zero : !cir.vector<2 x !cir.bool> loc(#loc112)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:245:56: note: with "VAL1" equal to "9"
# |  %10 = cir.const #cir.zero : !cir.vector<2 x !cir.bool> loc(#loc112)
# |                                                        ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir:245:56: note: with "ZERO1" equal to "10"
# |  %10 = cir.const #cir.zero : !cir.vector<2 x !cir.bool> loc(#loc112)
# |                                                        ^
# | 
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGenBuiltins/X86/Output/avx512vlvp2intersect-builtins.c.tmp.cir
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGenBuiltins/X86/avx512vlvp2intersect-builtins.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |            154:  %5 = cir.load align(32) %1 : !cir.ptr<!cir.vector<4 x !s64i>>, !cir.vector<4 x !s64i> loc(#loc45) 
# |            155:  %6 = cir.load align(8) %2 : !cir.ptr<!cir.ptr<!u8i>>, !cir.ptr<!u8i> loc(#loc46) 
# |            156:  %7 = cir.load align(8) %3 : !cir.ptr<!cir.ptr<!u8i>>, !cir.ptr<!u8i> loc(#loc47) 
# |            157:  %8 = cir.call_llvm_intrinsic "x86.avx512.vp2intersect.q.256" %4, %5 : (!cir.vector<4 x !s64i>, !cir.vector<4 x !s64i>) -> !rec_anon_struct1 loc(#loc48) 
# |            158:  %9 = cir.extract_member %8[0] : !rec_anon_struct1 -> !cir.vector<4 x !cir.bool> loc(#loc48) 
# |            159:  %10 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc48) 
# | check:54'0                                                             X~~~~~~~~~~~~ error: no match found
# | check:54'1                                                                           with "VAL1" equal to "9"
# | check:54'2                                                                           with "ZERO1" equal to "10"
# |            160:  %11 = cir.vec.shuffle(%9, %10 : !cir.vector<4 x !cir.bool>) [#cir.int<0> : !s64i, #cir.int<1> : !s64i, #cir.int<2> : !s64i, #cir.int<3> : !s64i, #cir.int<4> : !s64i, #cir.int<5> : !s64i, #cir.int<6> : !s64i, #cir.int<7> : !s64i] : !cir.vector<8 x !cir.bool> loc(#loc48) 
# | check:54'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            161:  %12 = cir.cast bitcast %11 : !cir.vector<8 x !cir.bool> -> !u8i loc(#loc48) 
# | check:54'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            162:  cir.store align(1) %12, %6 : !u8i, !cir.ptr<!u8i> loc(#loc48) 
# | check:54'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            163:  %13 = cir.extract_member %8[1] : !rec_anon_struct1 -> !cir.vector<4 x !cir.bool> loc(#loc48) 
# | check:54'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            164:  %14 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc48) 
# | check:54'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            198:  %7 = cir.cast bitcast %6 : !cir.vector<2 x !s64i> -> !cir.vector<4 x !s32i> loc(#loc77) 
# |            199:  %8 = cir.load align(8) %2 : !cir.ptr<!cir.ptr<!u8i>>, !cir.ptr<!u8i> loc(#loc78) 
# |            200:  %9 = cir.load align(8) %3 : !cir.ptr<!cir.ptr<!u8i>>, !cir.ptr<!u8i> loc(#loc79) 
# |            201:  %10 = cir.call_llvm_intrinsic "x86.avx512.vp2intersect.d.128" %5, %7 : (!cir.vector<4 x !s32i>, !cir.vector<4 x !s32i>) -> !rec_anon_struct1 loc(#loc80) 
# |            202:  %11 = cir.extract_member %10[0] : !rec_anon_struct1 -> !cir.vector<4 x !cir.bool> loc(#loc80) 
# |            203:  %12 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc80) 
# | check:92'0                                                             X~~~~~~~~~~~~ error: no match found
# | check:92'1                                                                           with "VAL1" equal to "11"
# | check:92'2                                                                           with "ZERO1" equal to "12"
# |            204:  %13 = cir.vec.shuffle(%11, %12 : !cir.vector<4 x !cir.bool>) [#cir.int<0> : !s64i, #cir.int<1> : !s64i, #cir.int<2> : !s64i, #cir.int<3> : !s64i, #cir.int<4> : !s64i, #cir.int<5> : !s64i, #cir.int<6> : !s64i, #cir.int<7> : !s64i] : !cir.vector<8 x !cir.bool> loc(#loc80) 
# | check:92'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            205:  %14 = cir.cast bitcast %13 : !cir.vector<8 x !cir.bool> -> !u8i loc(#loc80) 
# | check:92'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            206:  cir.store align(1) %14, %8 : !u8i, !cir.ptr<!u8i> loc(#loc80) 
# | check:92'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            207:  %15 = cir.extract_member %10[1] : !rec_anon_struct1 -> !cir.vector<4 x !cir.bool> loc(#loc80) 
# | check:92'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            208:  %16 = cir.const #cir.zero : !cir.vector<4 x !cir.bool> loc(#loc80) 
# | check:92'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            240:  %5 = cir.load align(16) %1 : !cir.ptr<!cir.vector<2 x !s64i>>, !cir.vector<2 x !s64i> loc(#loc109) 
# |            241:  %6 = cir.load align(8) %2 : !cir.ptr<!cir.ptr<!u8i>>, !cir.ptr<!u8i> loc(#loc110) 
# |            242:  %7 = cir.load align(8) %3 : !cir.ptr<!cir.ptr<!u8i>>, !cir.ptr<!u8i> loc(#loc111) 
# |            243:  %8 = cir.call_llvm_intrinsic "x86.avx512.vp2intersect.q.128" %4, %5 : (!cir.vector<2 x !s64i>, !cir.vector<2 x !s64i>) -> !rec_anon_struct2 loc(#loc112) 
# |            244:  %9 = cir.extract_member %8[0] : !rec_anon_struct2 -> !cir.vector<2 x !cir.bool> loc(#loc112) 
# |            245:  %10 = cir.const #cir.zero : !cir.vector<2 x !cir.bool> loc(#loc112) 
# | check:130'0                                                            X~~~~~~~~~~~~~ error: no match found
# | check:130'1                                                                           with "VAL1" equal to "9"
# | check:130'2                                                                           with "ZERO1" equal to "10"
# |            246:  %11 = cir.vec.shuffle(%9, %10 : !cir.vector<2 x !cir.bool>) [#cir.int<0> : !s64i, #cir.int<1> : !s64i, #cir.int<2> : !s64i, #cir.int<3> : !s64i, #cir.int<2> : !s64i, #cir.int<3> : !s64i, #cir.int<2> : !s64i, #cir.int<3> : !s64i] : !cir.vector<8 x !cir.bool> loc(#loc112) 
# | check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            247:  %12 = cir.cast bitcast %11 : !cir.vector<8 x !cir.bool> -> !u8i loc(#loc112) 
# | check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            248:  cir.store align(1) %12, %6 : !u8i, !cir.ptr<!u8i> loc(#loc112) 
# | check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            249:  %13 = cir.extract_member %8[1] : !rec_anon_struct2 -> !cir.vector<2 x !cir.bool> loc(#loc112) 
# | check:130'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            250:  %14 = cir.const #cir.zero : !cir.vector<2 x !cir.bool> loc(#loc112) 
# | check:130'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/172554


More information about the cfe-commits mailing list