[clang] [CIR] Scoped atomic store (PR #171627)

via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 10 07:26:16 PST 2025


github-actions[bot] wrote:

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

* 85820 tests passed
* 753 tests skipped
* 2 tests failed

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

### Clang
<details>
<summary>Clang.CIR/CodeGen/atomic.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 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir
# 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 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir
# 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 --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c -check-prefix=CIR
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c -check-prefix=CIR
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c:168:9: error: CIR: expected string not found in input
# | // CIR: cir.store align(4) atomic(relaxed) %{{.+}}, %{{.+}} : !s32i, !cir.ptr<!s32i>
# |         ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:437:37: note: scanning from here
# |  cir.func no_inline dso_local @store(%arg0: !cir.ptr<!s32i> loc(fused[#loc98, #loc99]), %arg1: !s32i loc(fused[#loc100, #loc101])) {
# |                                     ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:445:12: note: possible intended match here
# |  cir.store align(4) syncscope(system) atomic(relaxed) %4, %2 : !s32i, !cir.ptr<!s32i> loc(#loc930)
# |            ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c:192:9: error: CIR: expected string not found in input
# | // CIR: cir.store align(4) atomic(relaxed) %{{.+}}, %{{.+}} : !s32i, !cir.ptr<!s32i>
# |         ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:456:39: note: scanning from here
# |  cir.func no_inline dso_local @store_n(%arg0: !cir.ptr<!s32i> loc(fused[#loc117, #loc118]), %arg1: !s32i loc(fused[#loc119, #loc120])) {
# |                                       ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:469:12: note: possible intended match here
# |  cir.store align(4) syncscope(system) atomic(relaxed) %8, %5 : !s32i, !cir.ptr<!s32i> loc(#loc936)
# |            ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c:216:9: error: CIR: expected string not found in input
# | // CIR: cir.store align(4) atomic(relaxed) %{{.+}}, %{{.+}} : !s32i, !cir.ptr<!s32i>
# |         ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:484:41: note: scanning from here
# |  cir.func no_inline dso_local @c11_store(%arg0: !cir.ptr<!s32i> loc(fused[#loc140, #loc141]), %arg1: !s32i loc(fused[#loc142, #loc143])) {
# |                                         ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:497:12: note: possible intended match here
# |  cir.store align(4) syncscope(system) atomic(relaxed) %8, %5 : !s32i, !cir.ptr<!s32i> loc(#loc942)
# |            ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c:1225:15: error: CIR-NEXT: expected string not found in input
# |  // CIR-NEXT: cir.store align(4) atomic(relaxed) %[[VALUE]], %[[PTR]] : !s32i, !cir.ptr<!s32i>
# |               ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:1571:52: note: scanning from here
# |  %6 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc1180)
# |                                                    ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:1571:52: note: with "VALUE" equal to "6"
# |  %6 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc1180)
# |                                                    ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:1571:52: note: with "PTR" equal to "3"
# |  %6 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc1180)
# |                                                    ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:1572:16: note: possible intended match here
# |  cir.store align(4) syncscope(system) atomic(relaxed) %6, %3 : !s32i, !cir.ptr<!s32i> loc(#loc1180)
# |                ^
# | 
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |            432:  %19 = cir.load align(4) syncscope(system) atomic(seq_cst) %17 : !cir.ptr<!s32i>, !s32i loc(#loc926) 
# |            433:  cir.store align(4) %19, %4 : !s32i, !cir.ptr<!s32i> loc(#loc926) 
# |            434:  %20 = cir.load align(4) %4 : !cir.ptr<!s32i>, !s32i loc(#loc85) 
# |            435:  cir.return loc(#loc76) 
# |            436:  } loc(#loc921) 
# |            437:  cir.func no_inline dso_local @store(%arg0: !cir.ptr<!s32i> loc(fused[#loc98, #loc99]), %arg1: !s32i loc(fused[#loc100, #loc101])) { 
# | check:168'0                                         X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            438:  %0 = cir.alloca !cir.ptr<!s32i>, !cir.ptr<!cir.ptr<!s32i>>, ["ptr", init] {alignment = 8 : i64} loc(#loc928) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            439:  %1 = cir.alloca !s32i, !cir.ptr<!s32i>, ["x", init] {alignment = 4 : i64} loc(#loc929) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            440:  cir.store %arg0, %0 : !cir.ptr<!s32i>, !cir.ptr<!cir.ptr<!s32i>> loc(#loc102) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            441:  cir.store %arg1, %1 : !s32i, !cir.ptr<!s32i> loc(#loc102) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            442:  %2 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc103) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            443:  %3 = cir.const #cir.int<0> : !s32i loc(#loc104) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            444:  %4 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc930) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            445:  cir.store align(4) syncscope(system) atomic(relaxed) %4, %2 : !s32i, !cir.ptr<!s32i> loc(#loc930) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:168'1                ?                                                                                        possible intended match
# |            446:  %5 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc107) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            447:  %6 = cir.const #cir.int<3> : !s32i loc(#loc108) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            448:  %7 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc931) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            449:  cir.store align(4) syncscope(system) atomic(release) %7, %5 : !s32i, !cir.ptr<!s32i> loc(#loc931) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            450:  %8 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc111) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            451:  %9 = cir.const #cir.int<5> : !s32i loc(#loc112) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            452:  %10 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc932) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            453:  cir.store align(4) syncscope(system) atomic(seq_cst) %10, %8 : !s32i, !cir.ptr<!s32i> loc(#loc932) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            454:  cir.return loc(#loc97) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~
# |            455:  } loc(#loc927) 
# | check:168'0     ~~~~~~~~~~~~~~~~
# |            456:  cir.func no_inline dso_local @store_n(%arg0: !cir.ptr<!s32i> loc(fused[#loc117, #loc118]), %arg1: !s32i loc(fused[#loc119, #loc120])) { 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:192'0                                           X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            457:  %0 = cir.alloca !cir.ptr<!s32i>, !cir.ptr<!cir.ptr<!s32i>>, ["ptr", init] {alignment = 8 : i64} loc(#loc934) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            458:  %1 = cir.alloca !s32i, !cir.ptr<!s32i>, ["x", init] {alignment = 4 : i64} loc(#loc935) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            459:  %2 = cir.alloca !s32i, !cir.ptr<!s32i>, [".atomictmp"] {alignment = 4 : i64} loc(#loc121) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            460:  %3 = cir.alloca !s32i, !cir.ptr<!s32i>, [".atomictmp"] {alignment = 4 : i64} loc(#loc122) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            461:  %4 = cir.alloca !s32i, !cir.ptr<!s32i>, [".atomictmp"] {alignment = 4 : i64} loc(#loc123) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            464:  %5 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc125) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            465:  %6 = cir.const #cir.int<0> : !s32i loc(#loc126) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            466:  %7 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc121) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            467:  cir.store align(4) %7, %2 : !s32i, !cir.ptr<!s32i> loc(#loc127) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            468:  %8 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc936) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            469:  cir.store align(4) syncscope(system) atomic(relaxed) %8, %5 : !s32i, !cir.ptr<!s32i> loc(#loc936) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:192'1                ?                                                                                        possible intended match
# |            470:  %9 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc130) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            471:  %10 = cir.const #cir.int<3> : !s32i loc(#loc131) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            472:  %11 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc122) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            473:  cir.store align(4) %11, %3 : !s32i, !cir.ptr<!s32i> loc(#loc127) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            474:  %12 = cir.load align(4) %3 : !cir.ptr<!s32i>, !s32i loc(#loc937) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            479:  cir.store align(4) %15, %4 : !s32i, !cir.ptr<!s32i> loc(#loc127) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            480:  %16 = cir.load align(4) %4 : !cir.ptr<!s32i>, !s32i loc(#loc938) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            481:  cir.store align(4) syncscope(system) atomic(seq_cst) %16, %13 : !s32i, !cir.ptr<!s32i> loc(#loc938) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            482:  cir.return loc(#loc116) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~
# |            483:  } loc(#loc933) 
# | check:192'0     ~~~~~~~~~~~~~~~~
# |            484:  cir.func no_inline dso_local @c11_store(%arg0: !cir.ptr<!s32i> loc(fused[#loc140, #loc141]), %arg1: !s32i loc(fused[#loc142, #loc143])) { 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:216'0                                             X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            485:  %0 = cir.alloca !cir.ptr<!s32i>, !cir.ptr<!cir.ptr<!s32i>>, ["ptr", init] {alignment = 8 : i64} loc(#loc940) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            486:  %1 = cir.alloca !s32i, !cir.ptr<!s32i>, ["x", init] {alignment = 4 : i64} loc(#loc941) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            487:  %2 = cir.alloca !s32i, !cir.ptr<!s32i>, [".atomictmp"] {alignment = 4 : i64} loc(#loc144) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            488:  %3 = cir.alloca !s32i, !cir.ptr<!s32i>, [".atomictmp"] {alignment = 4 : i64} loc(#loc145) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            489:  %4 = cir.alloca !s32i, !cir.ptr<!s32i>, [".atomictmp"] {alignment = 4 : i64} loc(#loc146) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            492:  %5 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc148) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            493:  %6 = cir.const #cir.int<0> : !s32i loc(#loc149) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            494:  %7 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc144) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            495:  cir.store align(4) %7, %2 : !s32i, !cir.ptr<!s32i> loc(#loc150) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            496:  %8 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc942) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            497:  cir.store align(4) syncscope(system) atomic(relaxed) %8, %5 : !s32i, !cir.ptr<!s32i> loc(#loc942) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:216'1                ?                                                                                        possible intended match
# |            498:  %9 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc153) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            499:  %10 = cir.const #cir.int<3> : !s32i loc(#loc154) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            500:  %11 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc145) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            501:  cir.store align(4) %11, %3 : !s32i, !cir.ptr<!s32i> loc(#loc150) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            502:  %12 = cir.load align(4) %3 : !cir.ptr<!s32i>, !s32i loc(#loc943) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |           1566:  %4 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc877) 
# |           1567:  %5 = cir.const #cir.int<10> : !s32i loc(#loc874) 
# |           1568:  cir.store align(4) %5, %2 : !s32i, !cir.ptr<!s32i> loc(#loc878) 
# |           1569:  cir.switch (%4 : !s32i) { 
# |           1570:  cir.case(default, []) { 
# |           1571:  %6 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc1180) 
# | next:1225'0                                                        X~~~~~~~~~~~~~~ error: no match found
# | next:1225'1                                                                        with "VALUE" equal to "6"
# | next:1225'2                                                                        with "PTR" equal to "3"
# |           1572:  cir.store align(4) syncscope(system) atomic(relaxed) %6, %3 : !s32i, !cir.ptr<!s32i> loc(#loc1180) 
# | next:1225'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1225'3                    ?                                                                                     possible intended match
# |           1573:  cir.break loc(#loc877) 
# | next:1225'0     ~~~~~~~~~~~~~~~~~~~~~~~~
# |           1574:  } loc(#loc877) 
# | next:1225'0     ~~~~~~~~~~~~~~~~
# |           1575:  cir.case(anyof, [#cir.int<3> : !s32i]) { 
# | next:1225'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1576:  %6 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc1180) 
# | next:1225'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1577:  cir.store align(4) syncscope(system) atomic(release) %6, %3 : !s32i, !cir.ptr<!s32i> loc(#loc1180) 
# | next:1225'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>Clang.CIR/CodeGen/atomic.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 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir
# 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 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir
# 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 --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c -check-prefix=CIR
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c -check-prefix=CIR
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c:168:9: error: CIR: expected string not found in input
# | // CIR: cir.store align(4) atomic(relaxed) %{{.+}}, %{{.+}} : !s32i, !cir.ptr<!s32i>
# |         ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:437:37: note: scanning from here
# |  cir.func no_inline dso_local @store(%arg0: !cir.ptr<!s32i> loc(fused[#loc98, #loc99]), %arg1: !s32i loc(fused[#loc100, #loc101])) {
# |                                     ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:445:12: note: possible intended match here
# |  cir.store align(4) syncscope(system) atomic(relaxed) %4, %2 : !s32i, !cir.ptr<!s32i> loc(#loc930)
# |            ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c:192:9: error: CIR: expected string not found in input
# | // CIR: cir.store align(4) atomic(relaxed) %{{.+}}, %{{.+}} : !s32i, !cir.ptr<!s32i>
# |         ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:456:39: note: scanning from here
# |  cir.func no_inline dso_local @store_n(%arg0: !cir.ptr<!s32i> loc(fused[#loc117, #loc118]), %arg1: !s32i loc(fused[#loc119, #loc120])) {
# |                                       ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:469:12: note: possible intended match here
# |  cir.store align(4) syncscope(system) atomic(relaxed) %8, %5 : !s32i, !cir.ptr<!s32i> loc(#loc936)
# |            ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c:216:9: error: CIR: expected string not found in input
# | // CIR: cir.store align(4) atomic(relaxed) %{{.+}}, %{{.+}} : !s32i, !cir.ptr<!s32i>
# |         ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:484:41: note: scanning from here
# |  cir.func no_inline dso_local @c11_store(%arg0: !cir.ptr<!s32i> loc(fused[#loc140, #loc141]), %arg1: !s32i loc(fused[#loc142, #loc143])) {
# |                                         ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:497:12: note: possible intended match here
# |  cir.store align(4) syncscope(system) atomic(relaxed) %8, %5 : !s32i, !cir.ptr<!s32i> loc(#loc942)
# |            ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c:1225:15: error: CIR-NEXT: expected string not found in input
# |  // CIR-NEXT: cir.store align(4) atomic(relaxed) %[[VALUE]], %[[PTR]] : !s32i, !cir.ptr<!s32i>
# |               ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:1571:52: note: scanning from here
# |  %6 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc1180)
# |                                                    ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:1571:52: note: with "VALUE" equal to "6"
# |  %6 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc1180)
# |                                                    ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:1571:52: note: with "PTR" equal to "3"
# |  %6 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc1180)
# |                                                    ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir:1572:16: note: possible intended match here
# |  cir.store align(4) syncscope(system) atomic(relaxed) %6, %3 : !s32i, !cir.ptr<!s32i> loc(#loc1180)
# |                ^
# | 
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/atomic.c.tmp.cir
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/atomic.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |            432:  %19 = cir.load align(4) syncscope(system) atomic(seq_cst) %17 : !cir.ptr<!s32i>, !s32i loc(#loc926) 
# |            433:  cir.store align(4) %19, %4 : !s32i, !cir.ptr<!s32i> loc(#loc926) 
# |            434:  %20 = cir.load align(4) %4 : !cir.ptr<!s32i>, !s32i loc(#loc85) 
# |            435:  cir.return loc(#loc76) 
# |            436:  } loc(#loc921) 
# |            437:  cir.func no_inline dso_local @store(%arg0: !cir.ptr<!s32i> loc(fused[#loc98, #loc99]), %arg1: !s32i loc(fused[#loc100, #loc101])) { 
# | check:168'0                                         X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            438:  %0 = cir.alloca !cir.ptr<!s32i>, !cir.ptr<!cir.ptr<!s32i>>, ["ptr", init] {alignment = 8 : i64} loc(#loc928) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            439:  %1 = cir.alloca !s32i, !cir.ptr<!s32i>, ["x", init] {alignment = 4 : i64} loc(#loc929) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            440:  cir.store %arg0, %0 : !cir.ptr<!s32i>, !cir.ptr<!cir.ptr<!s32i>> loc(#loc102) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            441:  cir.store %arg1, %1 : !s32i, !cir.ptr<!s32i> loc(#loc102) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            442:  %2 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc103) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            443:  %3 = cir.const #cir.int<0> : !s32i loc(#loc104) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            444:  %4 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc930) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            445:  cir.store align(4) syncscope(system) atomic(relaxed) %4, %2 : !s32i, !cir.ptr<!s32i> loc(#loc930) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:168'1                ?                                                                                        possible intended match
# |            446:  %5 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc107) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            447:  %6 = cir.const #cir.int<3> : !s32i loc(#loc108) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            448:  %7 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc931) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            449:  cir.store align(4) syncscope(system) atomic(release) %7, %5 : !s32i, !cir.ptr<!s32i> loc(#loc931) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            450:  %8 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc111) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            451:  %9 = cir.const #cir.int<5> : !s32i loc(#loc112) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            452:  %10 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc932) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            453:  cir.store align(4) syncscope(system) atomic(seq_cst) %10, %8 : !s32i, !cir.ptr<!s32i> loc(#loc932) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            454:  cir.return loc(#loc97) 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~
# |            455:  } loc(#loc927) 
# | check:168'0     ~~~~~~~~~~~~~~~~
# |            456:  cir.func no_inline dso_local @store_n(%arg0: !cir.ptr<!s32i> loc(fused[#loc117, #loc118]), %arg1: !s32i loc(fused[#loc119, #loc120])) { 
# | check:168'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:192'0                                           X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            457:  %0 = cir.alloca !cir.ptr<!s32i>, !cir.ptr<!cir.ptr<!s32i>>, ["ptr", init] {alignment = 8 : i64} loc(#loc934) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            458:  %1 = cir.alloca !s32i, !cir.ptr<!s32i>, ["x", init] {alignment = 4 : i64} loc(#loc935) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            459:  %2 = cir.alloca !s32i, !cir.ptr<!s32i>, [".atomictmp"] {alignment = 4 : i64} loc(#loc121) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            460:  %3 = cir.alloca !s32i, !cir.ptr<!s32i>, [".atomictmp"] {alignment = 4 : i64} loc(#loc122) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            461:  %4 = cir.alloca !s32i, !cir.ptr<!s32i>, [".atomictmp"] {alignment = 4 : i64} loc(#loc123) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            464:  %5 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc125) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            465:  %6 = cir.const #cir.int<0> : !s32i loc(#loc126) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            466:  %7 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc121) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            467:  cir.store align(4) %7, %2 : !s32i, !cir.ptr<!s32i> loc(#loc127) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            468:  %8 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc936) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            469:  cir.store align(4) syncscope(system) atomic(relaxed) %8, %5 : !s32i, !cir.ptr<!s32i> loc(#loc936) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:192'1                ?                                                                                        possible intended match
# |            470:  %9 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc130) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            471:  %10 = cir.const #cir.int<3> : !s32i loc(#loc131) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            472:  %11 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc122) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            473:  cir.store align(4) %11, %3 : !s32i, !cir.ptr<!s32i> loc(#loc127) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            474:  %12 = cir.load align(4) %3 : !cir.ptr<!s32i>, !s32i loc(#loc937) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            479:  cir.store align(4) %15, %4 : !s32i, !cir.ptr<!s32i> loc(#loc127) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            480:  %16 = cir.load align(4) %4 : !cir.ptr<!s32i>, !s32i loc(#loc938) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            481:  cir.store align(4) syncscope(system) atomic(seq_cst) %16, %13 : !s32i, !cir.ptr<!s32i> loc(#loc938) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            482:  cir.return loc(#loc116) 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~
# |            483:  } loc(#loc933) 
# | check:192'0     ~~~~~~~~~~~~~~~~
# |            484:  cir.func no_inline dso_local @c11_store(%arg0: !cir.ptr<!s32i> loc(fused[#loc140, #loc141]), %arg1: !s32i loc(fused[#loc142, #loc143])) { 
# | check:192'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:216'0                                             X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            485:  %0 = cir.alloca !cir.ptr<!s32i>, !cir.ptr<!cir.ptr<!s32i>>, ["ptr", init] {alignment = 8 : i64} loc(#loc940) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            486:  %1 = cir.alloca !s32i, !cir.ptr<!s32i>, ["x", init] {alignment = 4 : i64} loc(#loc941) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            487:  %2 = cir.alloca !s32i, !cir.ptr<!s32i>, [".atomictmp"] {alignment = 4 : i64} loc(#loc144) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            488:  %3 = cir.alloca !s32i, !cir.ptr<!s32i>, [".atomictmp"] {alignment = 4 : i64} loc(#loc145) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            489:  %4 = cir.alloca !s32i, !cir.ptr<!s32i>, [".atomictmp"] {alignment = 4 : i64} loc(#loc146) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            492:  %5 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc148) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            493:  %6 = cir.const #cir.int<0> : !s32i loc(#loc149) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            494:  %7 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc144) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            495:  cir.store align(4) %7, %2 : !s32i, !cir.ptr<!s32i> loc(#loc150) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            496:  %8 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc942) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            497:  cir.store align(4) syncscope(system) atomic(relaxed) %8, %5 : !s32i, !cir.ptr<!s32i> loc(#loc942) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:216'1                ?                                                                                        possible intended match
# |            498:  %9 = cir.load align(8) %0 : !cir.ptr<!cir.ptr<!s32i>>, !cir.ptr<!s32i> loc(#loc153) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            499:  %10 = cir.const #cir.int<3> : !s32i loc(#loc154) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            500:  %11 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc145) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            501:  cir.store align(4) %11, %3 : !s32i, !cir.ptr<!s32i> loc(#loc150) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            502:  %12 = cir.load align(4) %3 : !cir.ptr<!s32i>, !s32i loc(#loc943) 
# | check:216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |           1566:  %4 = cir.load align(4) %1 : !cir.ptr<!s32i>, !s32i loc(#loc877) 
# |           1567:  %5 = cir.const #cir.int<10> : !s32i loc(#loc874) 
# |           1568:  cir.store align(4) %5, %2 : !s32i, !cir.ptr<!s32i> loc(#loc878) 
# |           1569:  cir.switch (%4 : !s32i) { 
# |           1570:  cir.case(default, []) { 
# |           1571:  %6 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc1180) 
# | next:1225'0                                                        X~~~~~~~~~~~~~~ error: no match found
# | next:1225'1                                                                        with "VALUE" equal to "6"
# | next:1225'2                                                                        with "PTR" equal to "3"
# |           1572:  cir.store align(4) syncscope(system) atomic(relaxed) %6, %3 : !s32i, !cir.ptr<!s32i> loc(#loc1180) 
# | next:1225'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1225'3                    ?                                                                                     possible intended match
# |           1573:  cir.break loc(#loc877) 
# | next:1225'0     ~~~~~~~~~~~~~~~~~~~~~~~~
# |           1574:  } loc(#loc877) 
# | next:1225'0     ~~~~~~~~~~~~~~~~
# |           1575:  cir.case(anyof, [#cir.int<3> : !s32i]) { 
# | next:1225'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1576:  %6 = cir.load align(4) %2 : !cir.ptr<!s32i>, !s32i loc(#loc1180) 
# | next:1225'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1577:  cir.store align(4) syncscope(system) atomic(release) %6, %3 : !s32i, !cir.ptr<!s32i> loc(#loc1180) 
# | next:1225'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/171627


More information about the cfe-commits mailing list