github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 88227 tests passed
* 775 tests skipped
* 14 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CIR/CodeGen/switch.cpp</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/23/include
-nostdsysteminc -std=c++17 -triple x86_64-unknown-linux-gnu -fclangir
-emit-cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/switch.cpp
-o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/switch.cpp.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/23/include
-nostdsysteminc -std=c++17 -triple x86_64-unknown-linux-gnu -fclangir
-emit-cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/switch.cpp
-o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/switch.cpp.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/switch.cpp.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/switch.cpp
--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/switch.cpp.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/switch.cpp
--check-prefix=CIR
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/switch.cpp:268:14:
error: CIR-NEXT: is not on the line after the previous match
# | // CIR-NEXT: cir.case(equal, [#cir.int<1> : !s32i]) {
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/switch.cpp.tmp.cir:183:2:
note: 'next' match was here
# | cir.case(equal, [#cir.int<1> : !s32i]) {
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/switch.cpp.tmp.cir:179:26:
note: previous match ended here
# | cir.switch(%1 : !s32i) {
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/switch.cpp.tmp.cir:180:1:
note: non-matching line after previous match is here
# | cir.case(equal, [#cir.int<0> : !s32i]) {
# | ^
# |
# | Input file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/switch.cpp.tmp.cir
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/switch.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 178: %1 = cir.load align(4) %0 : !cir.ptr<!s32i>, !s32i
loc(#loc84)
# | 179: cir.switch(%1 : !s32i) {
# | 180: cir.case(equal, [#cir.int<0> : !s32i]) {
# | 181: cir.yield loc(#loc85)
# | 182: } loc(#loc85)
# | 183: cir.case(equal, [#cir.int<1> : !s32i]) {
# | next:268 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: match on
wrong line
# | 184: cir.yield loc(#loc86)
# | 185: } loc(#loc86)
# | 186: cir.case(equal, [#cir.int<2> : !s32i]) {
# | 187: cir.break loc(#loc88)
# | 188: } loc(#loc87)
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Lowering/if.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir
-cir-to-llvm -o - |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir
-check-prefix=MLIR
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir
-cir-to-llvm -o -
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir:5:1:
error: Module has no target triple
# | module {
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir:5:1:
note: see current operation:
# | "builtin.module"() ({
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
32>) -> !cir.int<s, 32>>, global_visibility = #cir<visibility default>, linkage
= 0 : i32, sym_name = "foo"}> ({
# | ^bb0(%arg3: !cir.int<s, 32>):
# | %2 = "cir.cast"(%arg3) <{kind = 28 : i32}> : (!cir.int<s, 32>) ->
!cir.bool
# | "cir.brcond"(%2)[^bb1, ^bb2] <{operandSegmentSizes = array<i32: 1, 0,
0>}> : (!cir.bool) -> ()
# | ^bb1: // pred: ^bb0
# | %3 = "cir.const"() <{value = #cir.int<1> : !cir.int<s, 32>}> : () ->
!cir.int<s, 32>
# | "cir.return"(%3) : (!cir.int<s, 32>) -> ()
# | ^bb2: // pred: ^bb0
# | %4 = "cir.const"() <{value = #cir.int<0> : !cir.int<s, 32>}> : () ->
!cir.int<s, 32>
# | "cir.return"(%4) : (!cir.int<s, 32>) -> ()
# | ^bb3: // no predecessors
# | "cir.return"(%arg3) : (!cir.int<s, 32>) -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
32>) -> !cir.int<s, 32>>, global_visibility = #cir<visibility default>, linkage
= 0 : i32, sym_name = "onlyIf"}> ({
# | ^bb0(%arg2: !cir.int<s, 32>):
# | %0 = "cir.cast"(%arg2) <{kind = 28 : i32}> : (!cir.int<s, 32>) ->
!cir.bool
# | "cir.brcond"(%0)[^bb1, ^bb2] <{operandSegmentSizes = array<i32: 1, 0,
0>}> : (!cir.bool) -> ()
# | ^bb1: // pred: ^bb0
# | %1 = "cir.const"() <{value = #cir.int<1> : !cir.int<s, 32>}> : () ->
!cir.int<s, 32>
# | "cir.return"(%1) : (!cir.int<s, 32>) -> ()
# | ^bb2: // pred: ^bb0
# | "cir.return"(%arg2) : (!cir.int<s, 32>) -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
32>) -> !cir.int<s, 32>>, global_visibility = #cir<visibility default>, linkage
= 0 : i32, sym_name = "emptyIfClause"}> ({
# | ^bb0(%arg1: !cir.int<s, 32>):
# | "cir.return"(%arg1) : (!cir.int<s, 32>) -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
32>) -> !cir.int<s, 32>>, global_visibility = #cir<visibility default>, linkage
= 0 : i32, sym_name = "emptyIfElseClause"}> ({
# | ^bb0(%arg0: !cir.int<s, 32>):
# | "cir.return"(%arg0) : (!cir.int<s, 32>) -> ()
# | }) : () -> ()
# | }) : () -> ()
# `-----------------------------
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir
-check-prefix=MLIR
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir:70:11:
error: MLIR: expected string not found in input
# | // MLIR: llvm.cond_br {{%.*}}, ^[[T:.*]], ^[[PHI:.*]]
# | ^
# | <stdin>:25:26: note: scanning from here
# | llvm.func @emptyIfClause(%arg0: i32) -> i32 {
# | ^
# | <stdin>:26:2: note: possible intended match here
# | llvm.return %arg0 : i32
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir:86:11:
error: MLIR: expected string not found in input
# | // MLIR: llvm.cond_br {{%.*}}, ^[[T:.*]], ^[[F:.*]]
# | ^
# | <stdin>:28:30: note: scanning from here
# | llvm.func @emptyIfElseClause(%arg0: i32) -> i32 {
# | ^
# | <stdin>:29:2: note: possible intended match here
# | llvm.return %arg0 : i32
# | ^
# |
# | Input file: <stdin>
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 20: %2 = llvm.mlir.constant(1 : i32) : i32
# | 21: llvm.return %2 : i32
# | 22: ^bb2: // pred: ^bb0
# | 23: llvm.return %arg0 : i32
# | 24: }
# | 25: llvm.func @emptyIfClause(%arg0: i32) -> i32 {
# | check:70'0 X~~~~~~~~~~~~~~~~~~~~~ error: no
match found
# | 26: llvm.return %arg0 : i32
# | check:70'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:70'1 ? possible intended match
# | 27: }
# | check:70'0 ~~~
# | 28: llvm.func @emptyIfElseClause(%arg0: i32) -> i32 {
# | check:70'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:86'0 X~~~~~~~~~~~~~~~~~~~~~ error:
no match found
# | 29: llvm.return %arg0 : i32
# | check:86'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:86'1 ? possible intended match
# | 30: }
# | check:86'0 ~~~
# | 31: }
# | check:86'0 ~~
# | 32:
# | check:86'0 ~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Lowering/switch.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir
-cir-to-llvm -o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Lowering/Output/switch.cir.tmp.mlir
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir
-cir-to-llvm -o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Lowering/Output/switch.cir.tmp.mlir
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir:8:1:
error: Module has no target triple
# | module {
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir:8:1:
note: see current operation:
# | "builtin.module"() ({
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
8>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32, sym_name
= "shouldLowerSwitchWithDefault"}> ({
# | ^bb0(%arg8: !cir.int<s, 8>):
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | "cir.switch.flat"(%arg8)[^bb4, ^bb3] <{caseValues = [#cir.int<1> :
!cir.int<s, 8>], case_operand_segments = array<i32: 0>, operandSegmentSizes =
array<i32: 1, 0, 0>}> : (!cir.int<s, 8>) -> ()
# | ^bb2: // no predecessors
# | "cir.br"()[^bb3] : () -> ()
# | ^bb3: // 2 preds: ^bb1, ^bb2
# | "cir.br"()[^bb5] : () -> ()
# | ^bb4: // pred: ^bb1
# | "cir.br"()[^bb5] : () -> ()
# | ^bb5: // 2 preds: ^bb3, ^bb4
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
32>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32,
sym_name = "shouldLowerSwitchWithoutDefault"}> ({
# | ^bb0(%arg7: !cir.int<s, 32>):
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | "cir.switch.flat"(%arg7)[^bb4, ^bb3] <{caseValues = [#cir.int<1> :
!cir.int<s, 32>], case_operand_segments = array<i32: 0>, operandSegmentSizes =
array<i32: 1, 0, 0>}> : (!cir.int<s, 32>) -> ()
# | ^bb2: // no predecessors
# | "cir.br"()[^bb3] : () -> ()
# | ^bb3: // 2 preds: ^bb1, ^bb2
# | "cir.br"()[^bb4] : () -> ()
# | ^bb4: // 2 preds: ^bb1, ^bb3
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
64>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32,
sym_name = "shouldLowerSwitchWithImplicitFallthrough"}> ({
# | ^bb0(%arg6: !cir.int<s, 64>):
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | "cir.switch.flat"(%arg6)[^bb4, ^bb3, ^bb3] <{caseValues = [#cir.int<1>
: !cir.int<s, 64>, #cir.int<2> : !cir.int<s, 64>], case_operand_segments =
array<i32: 0, 0>, operandSegmentSizes = array<i32: 1, 0, 0>}> : (!cir.int<s,
64>) -> ()
# | ^bb2: // no predecessors
# | "cir.br"()[^bb3] : () -> ()
# | ^bb3: // 3 preds: ^bb1, ^bb1, ^bb2
# | "cir.br"()[^bb4] : () -> ()
# | ^bb4: // 2 preds: ^bb1, ^bb3
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
64>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32,
sym_name = "shouldLowerSwitchWithExplicitFallthrough"}> ({
# | ^bb0(%arg5: !cir.int<s, 64>):
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | "cir.switch.flat"(%arg5)[^bb6, ^bb3, ^bb5] <{caseValues = [#cir.int<1>
: !cir.int<s, 64>, #cir.int<2> : !cir.int<s, 64>], case_operand_segments =
array<i32: 0, 0>, operandSegmentSizes = array<i32: 1, 0, 0>}> : (!cir.int<s,
64>) -> ()
# | ^bb2: // no predecessors
# | "cir.br"()[^bb3] : () -> ()
# | ^bb3: // 2 preds: ^bb1, ^bb2
# | "cir.br"()[^bb4] : () -> ()
# | ^bb4: // pred: ^bb3
# | "cir.br"()[^bb5] : () -> ()
# | ^bb5: // 2 preds: ^bb1, ^bb4
# | "cir.br"()[^bb6] : () -> ()
# | ^bb6: // 2 preds: ^bb1, ^bb5
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
64>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32,
sym_name = "shouldLowerSwitchWithFallthroughToExit"}> ({
# | ^bb0(%arg4: !cir.int<s, 64>):
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
64>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32,
sym_name = "shouldDropEmptySwitch"}> ({
# | ^bb0(%arg3: !cir.int<s, 64>):
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
32>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32,
sym_name = "shouldLowerMultiBlockCase"}> ({
# | ^bb0(%arg2: !cir.int<s, 32>):
# | %6 = "cir.alloca"() <{alignment = 4 : i64, allocaType = !cir.int<s,
32>, init, name = "a"}> : () -> !cir.ptr<!cir.int<s, 32>>
# | "cir.store"(%arg2, %6) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>)
-> ()
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | %7 = "cir.load"(%6) : (!cir.ptr<!cir.int<s, 32>>) -> !cir.int<s, 32>
# | "cir.br"()[^bb2] : () -> ()
# | ^bb2: // pred: ^bb1
# | "cir.switch.flat"(%7)[^bb6, ^bb4] <{caseValues = [#cir.int<3> :
!cir.int<s, 32>], case_operand_segments = array<i32: 0>, operandSegmentSizes =
array<i32: 1, 0, 0>}> : (!cir.int<s, 32>) -> ()
# | ^bb3: // no predecessors
# | "cir.br"()[^bb4] : () -> ()
# | ^bb4: // 2 preds: ^bb2, ^bb3
# | "cir.return"() : () -> ()
# | ^bb5: // no predecessors
# | "cir.br"()[^bb6] : () -> ()
# | ^bb6: // 2 preds: ^bb2, ^bb5
# | "cir.br"()[^bb7] : () -> ()
# | ^bb7: // pred: ^bb6
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], function_type =
!cir.func<(!cir.int<s, 32>, !cir.int<s, 32>) -> !cir.int<s, 32>>,
global_visibility = #cir<visibility default>, linkage = 0 : i32, sym_name =
"shouldLowerNestedBreak"}> ({
# | ^bb0(%arg0: !cir.int<s, 32>, %arg1: !cir.int<s, 32>):
# | %0 = "cir.alloca"() <{alignment = 4 : i64, allocaType = !cir.int<s,
32>, init, name = "x"}> : () -> !cir.ptr<!cir.int<s, 32>>
# | %1 = "cir.alloca"() <{alignment = 4 : i64, allocaType = !cir.int<s,
32>, init, name = "y"}> : () -> !cir.ptr<!cir.int<s, 32>>
# | %2 = "cir.alloca"() <{alignment = 4 : i64, allocaType = !cir.int<s,
32>, name = "__retval"}> : () -> !cir.ptr<!cir.int<s, 32>>
# | "cir.store"(%arg0, %0) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>)
-> ()
# | "cir.store"(%arg1, %1) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>)
-> ()
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | %3 = "cir.load"(%0) : (!cir.ptr<!cir.int<s, 32>>) -> !cir.int<s, 32>
# | "cir.br"()[^bb2] : () -> ()
# | ^bb2: // pred: ^bb1
# | "cir.switch.flat"(%3)[^bb5, ^bb4] <{caseValues = [#cir.int<0> :
!cir.int<s, 32>], case_operand_segments = array<i32: 0>, operandSegmentSizes =
array<i32: 1, 0, 0>}> : (!cir.int<s, 32>) -> ()
# | ^bb3: // no predecessors
# | "cir.br"()[^bb4] : () -> ()
# | ^bb4: // 2 preds: ^bb2, ^bb3
# | "cir.br"()[^bb5] : () -> ()
# | ^bb5: // 2 preds: ^bb2, ^bb4
# | "cir.br"()[^bb6] : () -> ()
# | ^bb6: // pred: ^bb5
# | %4 = "cir.const"() <{value = #cir.int<3> : !cir.int<s, 32>}> : () ->
!cir.int<s, 32>
# | "cir.store"(%4, %2) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>) -> ()
# | %5 = "cir.load"(%2) : (!cir.ptr<!cir.int<s, 32>>) -> !cir.int<s, 32>
# | "cir.return"(%5) : (!cir.int<s, 32>) -> ()
# | }) : () -> ()
# | }) : () -> ()
# `-----------------------------
# 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/Lowering/Output/switch.cir.tmp.mlir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.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/Lowering/Output/switch.cir.tmp.mlir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir:92:12:
error: CHECK: expected string not found in input
# | // CHECK: llvm.switch %arg0 : i64, ^bb[[#EXIT:]] [
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Lowering/Output/switch.cir.tmp.mlir:59:7:
note: scanning from here
# | ^bb6: // 2 preds: ^bb1, ^bb5
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Lowering/Output/switch.cir.tmp.mlir:77:2:
note: possible intended match here
# | llvm.switch %2 : i32, ^bb6 [
# | ^
# |
# | Input file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Lowering/Output/switch.cir.tmp.mlir
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 54: llvm.br ^bb4
# | 55: ^bb4: // pred: ^bb3
# | 56: llvm.br ^bb5
# | 57: ^bb5: // 2 preds: ^bb1, ^bb4
# | 58: llvm.br ^bb6
# | 59: ^bb6: // 2 preds: ^bb1, ^bb5
# | check:92'0 X~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 60: llvm.return
# | check:92'0 ~~~~~~~~~~~~~
# | 61: }
# | check:92'0 ~~~
# | 62: llvm.func @shouldLowerSwitchWithFallthroughToExit(%arg0:
i64) {
# | check:92'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 63: llvm.return
# | check:92'0 ~~~~~~~~~~~~~
# | 64: }
# | check:92'0 ~~~
# | .
# | .
# | .
# | 72: llvm.br ^bb1
# | check:92'0 ~~~~~~~~~~~~~~
# | 73: ^bb1: // pred: ^bb0
# | check:92'0 ~~~~~~~~~~~~~~~~~~~~~
# | 74: %2 = llvm.load %1 {alignment = 4 : i64} : !llvm.ptr -> i32
# | check:92'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 75: llvm.br ^bb2
# | check:92'0 ~~~~~~~~~~~~~~
# | 76: ^bb2: // pred: ^bb1
# | check:92'0 ~~~~~~~~~~~~~~~~~~~~~
# | 77: llvm.switch %2 : i32, ^bb6 [
# | check:92'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:92'1 ? possible intended match
# | 78: 3: ^bb4
# | check:92'0 ~~~~~~~~~
# | 79: ]
# | check:92'0 ~~~
# | 80: ^bb3: // no predecessors
# | check:92'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 81: llvm.br ^bb4
# | check:92'0 ~~~~~~~~~~~~~~
# | 82: ^bb4: // 2 preds: ^bb2, ^bb3
# | check:92'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Transforms/flatten-cleanup-scope-simple.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/flatten-cleanup-scope-simple.cir
-cir-flatten-cfg -o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/flatten-cleanup-scope-simple.cir.tmp.cir
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/flatten-cleanup-scope-simple.cir
-cir-flatten-cfg -o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/flatten-cleanup-scope-simple.cir.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/Transforms/Output/flatten-cleanup-scope-simple.cir.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/flatten-cleanup-scope-simple.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/Transforms/Output/flatten-cleanup-scope-simple.cir.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/flatten-cleanup-scope-simple.cir
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/flatten-cleanup-scope-simple.cir:386:11:
error: CHECK: expected string not found in input
# | // CHECK: 1: ^[[SWITCH_BREAK:bb[0-9]+]],
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/flatten-cleanup-scope-simple.cir.tmp.cir:197:36:
note: scanning from here
# | cir.switch.flat %2 : !s32i, ^bb7 [
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/flatten-cleanup-scope-simple.cir.tmp.cir:198:2:
note: possible intended match here
# | 1: ^bb6
# | ^
# |
# | Input file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/flatten-cleanup-scope-simple.cir.tmp.cir
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/flatten-cleanup-scope-simple.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 192: cir.brcond %1 ^bb3, ^bb8
# | 193: ^bb3: // pred: ^bb2
# | 194: %2 = cir.call @get() : () -> !s32i
# | 195: cir.br ^bb4
# | 196: ^bb4: // pred: ^bb3
# | 197: cir.switch.flat %2 : !s32i, ^bb7 [
# | check:386'0 X error: no match found
# | 198: 1: ^bb6
# | check:386'0 ~~~~~~~~~
# | check:386'1 ? possible intended match
# | 199: ]
# | check:386'0 ~~~
# | 200: ^bb5: // no predecessors
# | check:386'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 201: cir.br ^bb6
# | check:386'0 ~~~~~~~~~~~~~
# | 202: ^bb6: // 2 preds: ^bb4, ^bb5
# | check:386'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 203: cir.br ^bb7
# | check:386'0 ~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Transforms/switch-fold.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
-cir-canonicalize -cir-simplify -o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/switch-fold.cir.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch-fold.cir
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
-cir-canonicalize -cir-simplify -o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/switch-fold.cir.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch-fold.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/Transforms/Output/switch-fold.cir.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch-fold.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/Transforms/Output/switch-fold.cir.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch-fold.cir
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch-fold.cir:149:11:
error: CHECK: expected string not found in input
# | //CHECK: cir.case(anyof, [#cir.int<4> : !s32i, #cir.int<5> : !s32i]) {
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/switch-fold.cir.tmp.cir:59:3:
note: scanning from here
# | }
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/switch-fold.cir.tmp.cir:63:2:
note: possible intended match here
# | cir.case(anyof, [#cir.int<6> : !s32i, #cir.int<7> : !s32i]) {
# | ^
# |
# | Input file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/switch-fold.cir.tmp.cir
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch-fold.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 54: cir.scope {
# | 55: %1 = cir.load %0 : !cir.ptr<!s32i>, !s32i
# | 56: cir.switch(%1 : !s32i) {
# | 57: cir.case(equal, [#cir.int<3> : !s32i]) {
# | 58: cir.break
# | 59: }
# | check:149'0 X error: no match found
# | 60: cir.case(default, []) {
# | check:149'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 61: cir.yield
# | check:149'0 ~~~~~~~~~~~
# | 62: }
# | check:149'0 ~~~
# | 63: cir.case(anyof, [#cir.int<6> : !s32i, #cir.int<7> :
!s32i]) {
# | check:149'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:149'1 ?
possible intended match
# | 64: cir.break
# | check:149'0 ~~~~~~~~~~~
# | 65: }
# | check:149'0 ~~~
# | 66: cir.yield
# | check:149'0 ~~~~~~~~~~~
# | 67: }
# | check:149'0 ~~~
# | 68: }
# | check:149'0 ~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Transforms/switch.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch.cir
-cir-flatten-cfg -o - |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch.cir
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch.cir
-cir-flatten-cfg -o -
# note: command had no output on stdout or stderr
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch.cir
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch.cir:109:11:
error: CHECK: expected string not found in input
# | // CHECK: cir.switch.flat %arg0 : !s64i, ^bb[[#EXIT:]] [
# | ^
# | <stdin>:66:65: note: scanning from here
# | cir.func @shouldFlatSwitchWithFallthroughToExit(%arg0: !s64i) {
# | ^
# | <stdin>:80:2: note: possible intended match here
# | cir.switch.flat %1 : !s32i, ^bb6 [
# | ^
# |
# | Input file: <stdin>
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 61: ^bb5: // 2 preds: ^bb1, ^bb4
# | 62: cir.br ^bb6
# | 63: ^bb6: // 2 preds: ^bb1, ^bb5
# | 64: cir.return
# | 65: }
# | 66: cir.func @shouldFlatSwitchWithFallthroughToExit(%arg0:
!s64i) {
# | check:109'0
X error: no match found
# | 67: cir.return
# | check:109'0 ~~~~~~~~~~~~
# | 68: }
# | check:109'0 ~~~
# | 69: cir.func @shouldDropEmptySwitch(%arg0: !s64i) {
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 70: cir.return
# | check:109'0 ~~~~~~~~~~~~
# | 71: }
# | check:109'0 ~~~
# | .
# | .
# | .
# | 75: cir.br ^bb1
# | check:109'0 ~~~~~~~~~~~~~
# | 76: ^bb1: // pred: ^bb0
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~
# | 77: %1 = cir.load %0 : !cir.ptr<!s32i>, !s32i
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 78: cir.br ^bb2
# | check:109'0 ~~~~~~~~~~~~~
# | 79: ^bb2: // pred: ^bb1
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~
# | 80: cir.switch.flat %1 : !s32i, ^bb6 [
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:109'1 ? possible intended match
# | 81: 3: ^bb4
# | check:109'0 ~~~~~~~~~
# | 82: ]
# | check:109'0 ~~~
# | 83: ^bb3: // no predecessors
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 84: cir.br ^bb4
# | check:109'0 ~~~~~~~~~~~~~
# | 85: ^bb4: // 2 preds: ^bb2, ^bb3
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Transforms/ternary.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/ternary.cir
-cir-flatten-cfg -o - |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/ternary.cir
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/ternary.cir
-cir-flatten-cfg -o -
# note: command had no output on stdout or stderr
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/ternary.cir
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/ternary.cir:57:11:
error: CHECK: expected string not found in input
# | // CHECK: cir.brcond %arg0 ^bb1, ^bb2
# | ^
# | <stdin>:24:36: note: scanning from here
# | cir.func @foo2(%arg0: !cir.bool) {
# | ^
# | <stdin>:25:2: note: possible intended match here
# | cir.return
# | ^
# |
# | Input file: <stdin>
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/ternary.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 19: ^bb4: // pred: ^bb3
# | 20: cir.store %7, %1 : !s32i, !cir.ptr<!s32i>
# | 21: %8 = cir.load %1 : !cir.ptr<!s32i>, !s32i
# | 22: cir.return %8 : !s32i
# | 23: }
# | 24: cir.func @foo2(%arg0: !cir.bool) {
# | check:57'0 X error: no match found
# | 25: cir.return
# | check:57'0 ~~~~~~~~~~~~
# | check:57'1 ? possible intended match
# | 26: }
# | check:57'0 ~~~
# | 27: }
# | check:57'0 ~~
# | 28:
# | check:57'0 ~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/CodeGen/switch.cpp</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/23/include
-nostdsysteminc -std=c++17 -triple x86_64-unknown-linux-gnu -fclangir
-emit-cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/switch.cpp
-o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/switch.cpp.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/23/include
-nostdsysteminc -std=c++17 -triple x86_64-unknown-linux-gnu -fclangir
-emit-cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/switch.cpp
-o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/switch.cpp.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/switch.cpp.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/switch.cpp
--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/switch.cpp.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/switch.cpp
--check-prefix=CIR
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/switch.cpp:268:14:
error: CIR-NEXT: is not on the line after the previous match
# | // CIR-NEXT: cir.case(equal, [#cir.int<1> : !s32i]) {
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/switch.cpp.tmp.cir:183:2:
note: 'next' match was here
# | cir.case(equal, [#cir.int<1> : !s32i]) {
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/switch.cpp.tmp.cir:179:26:
note: previous match ended here
# | cir.switch(%1 : !s32i) {
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/switch.cpp.tmp.cir:180:1:
note: non-matching line after previous match is here
# | cir.case(equal, [#cir.int<0> : !s32i]) {
# | ^
# |
# | Input file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/CodeGen/Output/switch.cpp.tmp.cir
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/CodeGen/switch.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 178: %1 = cir.load align(4) %0 : !cir.ptr<!s32i>, !s32i
loc(#loc84)
# | 179: cir.switch(%1 : !s32i) {
# | 180: cir.case(equal, [#cir.int<0> : !s32i]) {
# | 181: cir.yield loc(#loc85)
# | 182: } loc(#loc85)
# | 183: cir.case(equal, [#cir.int<1> : !s32i]) {
# | next:268 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: match on
wrong line
# | 184: cir.yield loc(#loc86)
# | 185: } loc(#loc86)
# | 186: cir.case(equal, [#cir.int<2> : !s32i]) {
# | 187: cir.break loc(#loc88)
# | 188: } loc(#loc87)
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Lowering/if.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir
-cir-to-llvm -o - |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir
-check-prefix=MLIR
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir
-cir-to-llvm -o -
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir:5:1:
error: Module has no target triple
# | module {
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir:5:1:
note: see current operation:
# | "builtin.module"() ({
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
32>) -> !cir.int<s, 32>>, global_visibility = #cir<visibility default>, linkage
= 0 : i32, sym_name = "foo"}> ({
# | ^bb0(%arg3: !cir.int<s, 32>):
# | %2 = "cir.cast"(%arg3) <{kind = 28 : i32}> : (!cir.int<s, 32>) ->
!cir.bool
# | "cir.brcond"(%2)[^bb1, ^bb2] <{operandSegmentSizes = array<i32: 1, 0,
0>}> : (!cir.bool) -> ()
# | ^bb1: // pred: ^bb0
# | %3 = "cir.const"() <{value = #cir.int<1> : !cir.int<s, 32>}> : () ->
!cir.int<s, 32>
# | "cir.return"(%3) : (!cir.int<s, 32>) -> ()
# | ^bb2: // pred: ^bb0
# | %4 = "cir.const"() <{value = #cir.int<0> : !cir.int<s, 32>}> : () ->
!cir.int<s, 32>
# | "cir.return"(%4) : (!cir.int<s, 32>) -> ()
# | ^bb3: // no predecessors
# | "cir.return"(%arg3) : (!cir.int<s, 32>) -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
32>) -> !cir.int<s, 32>>, global_visibility = #cir<visibility default>, linkage
= 0 : i32, sym_name = "onlyIf"}> ({
# | ^bb0(%arg2: !cir.int<s, 32>):
# | %0 = "cir.cast"(%arg2) <{kind = 28 : i32}> : (!cir.int<s, 32>) ->
!cir.bool
# | "cir.brcond"(%0)[^bb1, ^bb2] <{operandSegmentSizes = array<i32: 1, 0,
0>}> : (!cir.bool) -> ()
# | ^bb1: // pred: ^bb0
# | %1 = "cir.const"() <{value = #cir.int<1> : !cir.int<s, 32>}> : () ->
!cir.int<s, 32>
# | "cir.return"(%1) : (!cir.int<s, 32>) -> ()
# | ^bb2: // pred: ^bb0
# | "cir.return"(%arg2) : (!cir.int<s, 32>) -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
32>) -> !cir.int<s, 32>>, global_visibility = #cir<visibility default>, linkage
= 0 : i32, sym_name = "emptyIfClause"}> ({
# | ^bb0(%arg1: !cir.int<s, 32>):
# | "cir.return"(%arg1) : (!cir.int<s, 32>) -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
32>) -> !cir.int<s, 32>>, global_visibility = #cir<visibility default>, linkage
= 0 : i32, sym_name = "emptyIfElseClause"}> ({
# | ^bb0(%arg0: !cir.int<s, 32>):
# | "cir.return"(%arg0) : (!cir.int<s, 32>) -> ()
# | }) : () -> ()
# | }) : () -> ()
# `-----------------------------
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir
-check-prefix=MLIR
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir:70:11:
error: MLIR: expected string not found in input
# | // MLIR: llvm.cond_br {{%.*}}, ^[[T:.*]], ^[[PHI:.*]]
# | ^
# | <stdin>:25:26: note: scanning from here
# | llvm.func @emptyIfClause(%arg0: i32) -> i32 {
# | ^
# | <stdin>:26:2: note: possible intended match here
# | llvm.return %arg0 : i32
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir:86:11:
error: MLIR: expected string not found in input
# | // MLIR: llvm.cond_br {{%.*}}, ^[[T:.*]], ^[[F:.*]]
# | ^
# | <stdin>:28:30: note: scanning from here
# | llvm.func @emptyIfElseClause(%arg0: i32) -> i32 {
# | ^
# | <stdin>:29:2: note: possible intended match here
# | llvm.return %arg0 : i32
# | ^
# |
# | Input file: <stdin>
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/if.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 20: %2 = llvm.mlir.constant(1 : i32) : i32
# | 21: llvm.return %2 : i32
# | 22: ^bb2: // pred: ^bb0
# | 23: llvm.return %arg0 : i32
# | 24: }
# | 25: llvm.func @emptyIfClause(%arg0: i32) -> i32 {
# | check:70'0 X~~~~~~~~~~~~~~~~~~~~~ error: no
match found
# | 26: llvm.return %arg0 : i32
# | check:70'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:70'1 ? possible intended match
# | 27: }
# | check:70'0 ~~~
# | 28: llvm.func @emptyIfElseClause(%arg0: i32) -> i32 {
# | check:70'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:86'0 X~~~~~~~~~~~~~~~~~~~~~ error:
no match found
# | 29: llvm.return %arg0 : i32
# | check:86'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:86'1 ? possible intended match
# | 30: }
# | check:86'0 ~~~
# | 31: }
# | check:86'0 ~~
# | 32:
# | check:86'0 ~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Lowering/switch.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir
-cir-to-llvm -o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Lowering/Output/switch.cir.tmp.mlir
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir
-cir-to-llvm -o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Lowering/Output/switch.cir.tmp.mlir
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir:8:1:
error: Module has no target triple
# | module {
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir:8:1:
note: see current operation:
# | "builtin.module"() ({
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
8>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32, sym_name
= "shouldLowerSwitchWithDefault"}> ({
# | ^bb0(%arg8: !cir.int<s, 8>):
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | "cir.switch.flat"(%arg8)[^bb4, ^bb3] <{caseValues = [#cir.int<1> :
!cir.int<s, 8>], case_operand_segments = array<i32: 0>, operandSegmentSizes =
array<i32: 1, 0, 0>}> : (!cir.int<s, 8>) -> ()
# | ^bb2: // no predecessors
# | "cir.br"()[^bb3] : () -> ()
# | ^bb3: // 2 preds: ^bb1, ^bb2
# | "cir.br"()[^bb5] : () -> ()
# | ^bb4: // pred: ^bb1
# | "cir.br"()[^bb5] : () -> ()
# | ^bb5: // 2 preds: ^bb3, ^bb4
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
32>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32,
sym_name = "shouldLowerSwitchWithoutDefault"}> ({
# | ^bb0(%arg7: !cir.int<s, 32>):
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | "cir.switch.flat"(%arg7)[^bb4, ^bb3] <{caseValues = [#cir.int<1> :
!cir.int<s, 32>], case_operand_segments = array<i32: 0>, operandSegmentSizes =
array<i32: 1, 0, 0>}> : (!cir.int<s, 32>) -> ()
# | ^bb2: // no predecessors
# | "cir.br"()[^bb3] : () -> ()
# | ^bb3: // 2 preds: ^bb1, ^bb2
# | "cir.br"()[^bb4] : () -> ()
# | ^bb4: // 2 preds: ^bb1, ^bb3
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
64>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32,
sym_name = "shouldLowerSwitchWithImplicitFallthrough"}> ({
# | ^bb0(%arg6: !cir.int<s, 64>):
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | "cir.switch.flat"(%arg6)[^bb4, ^bb3, ^bb3] <{caseValues = [#cir.int<1>
: !cir.int<s, 64>, #cir.int<2> : !cir.int<s, 64>], case_operand_segments =
array<i32: 0, 0>, operandSegmentSizes = array<i32: 1, 0, 0>}> : (!cir.int<s,
64>) -> ()
# | ^bb2: // no predecessors
# | "cir.br"()[^bb3] : () -> ()
# | ^bb3: // 3 preds: ^bb1, ^bb1, ^bb2
# | "cir.br"()[^bb4] : () -> ()
# | ^bb4: // 2 preds: ^bb1, ^bb3
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
64>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32,
sym_name = "shouldLowerSwitchWithExplicitFallthrough"}> ({
# | ^bb0(%arg5: !cir.int<s, 64>):
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | "cir.switch.flat"(%arg5)[^bb6, ^bb3, ^bb5] <{caseValues = [#cir.int<1>
: !cir.int<s, 64>, #cir.int<2> : !cir.int<s, 64>], case_operand_segments =
array<i32: 0, 0>, operandSegmentSizes = array<i32: 1, 0, 0>}> : (!cir.int<s,
64>) -> ()
# | ^bb2: // no predecessors
# | "cir.br"()[^bb3] : () -> ()
# | ^bb3: // 2 preds: ^bb1, ^bb2
# | "cir.br"()[^bb4] : () -> ()
# | ^bb4: // pred: ^bb3
# | "cir.br"()[^bb5] : () -> ()
# | ^bb5: // 2 preds: ^bb1, ^bb4
# | "cir.br"()[^bb6] : () -> ()
# | ^bb6: // 2 preds: ^bb1, ^bb5
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
64>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32,
sym_name = "shouldLowerSwitchWithFallthroughToExit"}> ({
# | ^bb0(%arg4: !cir.int<s, 64>):
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
64>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32,
sym_name = "shouldDropEmptySwitch"}> ({
# | ^bb0(%arg3: !cir.int<s, 64>):
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], function_type = !cir.func<(!cir.int<s,
32>)>, global_visibility = #cir<visibility default>, linkage = 0 : i32,
sym_name = "shouldLowerMultiBlockCase"}> ({
# | ^bb0(%arg2: !cir.int<s, 32>):
# | %6 = "cir.alloca"() <{alignment = 4 : i64, allocaType = !cir.int<s,
32>, init, name = "a"}> : () -> !cir.ptr<!cir.int<s, 32>>
# | "cir.store"(%arg2, %6) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>)
-> ()
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | %7 = "cir.load"(%6) : (!cir.ptr<!cir.int<s, 32>>) -> !cir.int<s, 32>
# | "cir.br"()[^bb2] : () -> ()
# | ^bb2: // pred: ^bb1
# | "cir.switch.flat"(%7)[^bb6, ^bb4] <{caseValues = [#cir.int<3> :
!cir.int<s, 32>], case_operand_segments = array<i32: 0>, operandSegmentSizes =
array<i32: 1, 0, 0>}> : (!cir.int<s, 32>) -> ()
# | ^bb3: // no predecessors
# | "cir.br"()[^bb4] : () -> ()
# | ^bb4: // 2 preds: ^bb2, ^bb3
# | "cir.return"() : () -> ()
# | ^bb5: // no predecessors
# | "cir.br"()[^bb6] : () -> ()
# | ^bb6: // 2 preds: ^bb2, ^bb5
# | "cir.br"()[^bb7] : () -> ()
# | ^bb7: // pred: ^bb6
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], function_type =
!cir.func<(!cir.int<s, 32>, !cir.int<s, 32>) -> !cir.int<s, 32>>,
global_visibility = #cir<visibility default>, linkage = 0 : i32, sym_name =
"shouldLowerNestedBreak"}> ({
# | ^bb0(%arg0: !cir.int<s, 32>, %arg1: !cir.int<s, 32>):
# | %0 = "cir.alloca"() <{alignment = 4 : i64, allocaType = !cir.int<s,
32>, init, name = "x"}> : () -> !cir.ptr<!cir.int<s, 32>>
# | %1 = "cir.alloca"() <{alignment = 4 : i64, allocaType = !cir.int<s,
32>, init, name = "y"}> : () -> !cir.ptr<!cir.int<s, 32>>
# | %2 = "cir.alloca"() <{alignment = 4 : i64, allocaType = !cir.int<s,
32>, name = "__retval"}> : () -> !cir.ptr<!cir.int<s, 32>>
# | "cir.store"(%arg0, %0) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>)
-> ()
# | "cir.store"(%arg1, %1) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>)
-> ()
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | %3 = "cir.load"(%0) : (!cir.ptr<!cir.int<s, 32>>) -> !cir.int<s, 32>
# | "cir.br"()[^bb2] : () -> ()
# | ^bb2: // pred: ^bb1
# | "cir.switch.flat"(%3)[^bb5, ^bb4] <{caseValues = [#cir.int<0> :
!cir.int<s, 32>], case_operand_segments = array<i32: 0>, operandSegmentSizes =
array<i32: 1, 0, 0>}> : (!cir.int<s, 32>) -> ()
# | ^bb3: // no predecessors
# | "cir.br"()[^bb4] : () -> ()
# | ^bb4: // 2 preds: ^bb2, ^bb3
# | "cir.br"()[^bb5] : () -> ()
# | ^bb5: // 2 preds: ^bb2, ^bb4
# | "cir.br"()[^bb6] : () -> ()
# | ^bb6: // pred: ^bb5
# | %4 = "cir.const"() <{value = #cir.int<3> : !cir.int<s, 32>}> : () ->
!cir.int<s, 32>
# | "cir.store"(%4, %2) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>) -> ()
# | %5 = "cir.load"(%2) : (!cir.ptr<!cir.int<s, 32>>) -> !cir.int<s, 32>
# | "cir.return"(%5) : (!cir.int<s, 32>) -> ()
# | }) : () -> ()
# | }) : () -> ()
# `-----------------------------
# 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/Lowering/Output/switch.cir.tmp.mlir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.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/Lowering/Output/switch.cir.tmp.mlir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir:92:12:
error: CHECK: expected string not found in input
# | // CHECK: llvm.switch %arg0 : i64, ^bb[[#EXIT:]] [
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Lowering/Output/switch.cir.tmp.mlir:59:7:
note: scanning from here
# | ^bb6: // 2 preds: ^bb1, ^bb5
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Lowering/Output/switch.cir.tmp.mlir:77:2:
note: possible intended match here
# | llvm.switch %2 : i32, ^bb6 [
# | ^
# |
# | Input file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Lowering/Output/switch.cir.tmp.mlir
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/switch.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 54: llvm.br ^bb4
# | 55: ^bb4: // pred: ^bb3
# | 56: llvm.br ^bb5
# | 57: ^bb5: // 2 preds: ^bb1, ^bb4
# | 58: llvm.br ^bb6
# | 59: ^bb6: // 2 preds: ^bb1, ^bb5
# | check:92'0 X~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 60: llvm.return
# | check:92'0 ~~~~~~~~~~~~~
# | 61: }
# | check:92'0 ~~~
# | 62: llvm.func @shouldLowerSwitchWithFallthroughToExit(%arg0:
i64) {
# | check:92'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 63: llvm.return
# | check:92'0 ~~~~~~~~~~~~~
# | 64: }
# | check:92'0 ~~~
# | .
# | .
# | .
# | 72: llvm.br ^bb1
# | check:92'0 ~~~~~~~~~~~~~~
# | 73: ^bb1: // pred: ^bb0
# | check:92'0 ~~~~~~~~~~~~~~~~~~~~~
# | 74: %2 = llvm.load %1 {alignment = 4 : i64} : !llvm.ptr -> i32
# | check:92'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 75: llvm.br ^bb2
# | check:92'0 ~~~~~~~~~~~~~~
# | 76: ^bb2: // pred: ^bb1
# | check:92'0 ~~~~~~~~~~~~~~~~~~~~~
# | 77: llvm.switch %2 : i32, ^bb6 [
# | check:92'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:92'1 ? possible intended match
# | 78: 3: ^bb4
# | check:92'0 ~~~~~~~~~
# | 79: ]
# | check:92'0 ~~~
# | 80: ^bb3: // no predecessors
# | check:92'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 81: llvm.br ^bb4
# | check:92'0 ~~~~~~~~~~~~~~
# | 82: ^bb4: // 2 preds: ^bb2, ^bb3
# | check:92'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Transforms/flatten-cleanup-scope-simple.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/flatten-cleanup-scope-simple.cir
-cir-flatten-cfg -o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/flatten-cleanup-scope-simple.cir.tmp.cir
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/flatten-cleanup-scope-simple.cir
-cir-flatten-cfg -o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/flatten-cleanup-scope-simple.cir.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/Transforms/Output/flatten-cleanup-scope-simple.cir.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/flatten-cleanup-scope-simple.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/Transforms/Output/flatten-cleanup-scope-simple.cir.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/flatten-cleanup-scope-simple.cir
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/flatten-cleanup-scope-simple.cir:386:11:
error: CHECK: expected string not found in input
# | // CHECK: 1: ^[[SWITCH_BREAK:bb[0-9]+]],
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/flatten-cleanup-scope-simple.cir.tmp.cir:197:36:
note: scanning from here
# | cir.switch.flat %2 : !s32i, ^bb7 [
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/flatten-cleanup-scope-simple.cir.tmp.cir:198:2:
note: possible intended match here
# | 1: ^bb6
# | ^
# |
# | Input file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/flatten-cleanup-scope-simple.cir.tmp.cir
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/flatten-cleanup-scope-simple.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 192: cir.brcond %1 ^bb3, ^bb8
# | 193: ^bb3: // pred: ^bb2
# | 194: %2 = cir.call @get() : () -> !s32i
# | 195: cir.br ^bb4
# | 196: ^bb4: // pred: ^bb3
# | 197: cir.switch.flat %2 : !s32i, ^bb7 [
# | check:386'0 X error: no match found
# | 198: 1: ^bb6
# | check:386'0 ~~~~~~~~~
# | check:386'1 ? possible intended match
# | 199: ]
# | check:386'0 ~~~
# | 200: ^bb5: // no predecessors
# | check:386'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 201: cir.br ^bb6
# | check:386'0 ~~~~~~~~~~~~~
# | 202: ^bb6: // 2 preds: ^bb4, ^bb5
# | check:386'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 203: cir.br ^bb7
# | check:386'0 ~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Transforms/switch-fold.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
-cir-canonicalize -cir-simplify -o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/switch-fold.cir.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch-fold.cir
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
-cir-canonicalize -cir-simplify -o
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/switch-fold.cir.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch-fold.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/Transforms/Output/switch-fold.cir.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch-fold.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/Transforms/Output/switch-fold.cir.tmp.cir
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch-fold.cir
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch-fold.cir:149:11:
error: CHECK: expected string not found in input
# | //CHECK: cir.case(anyof, [#cir.int<4> : !s32i, #cir.int<5> : !s32i]) {
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/switch-fold.cir.tmp.cir:59:3:
note: scanning from here
# | }
# | ^
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/switch-fold.cir.tmp.cir:63:2:
note: possible intended match here
# | cir.case(anyof, [#cir.int<6> : !s32i, #cir.int<7> : !s32i]) {
# | ^
# |
# | Input file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/CIR/Transforms/Output/switch-fold.cir.tmp.cir
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch-fold.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 54: cir.scope {
# | 55: %1 = cir.load %0 : !cir.ptr<!s32i>, !s32i
# | 56: cir.switch(%1 : !s32i) {
# | 57: cir.case(equal, [#cir.int<3> : !s32i]) {
# | 58: cir.break
# | 59: }
# | check:149'0 X error: no match found
# | 60: cir.case(default, []) {
# | check:149'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 61: cir.yield
# | check:149'0 ~~~~~~~~~~~
# | 62: }
# | check:149'0 ~~~
# | 63: cir.case(anyof, [#cir.int<6> : !s32i, #cir.int<7> :
!s32i]) {
# | check:149'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:149'1 ?
possible intended match
# | 64: cir.break
# | check:149'0 ~~~~~~~~~~~
# | 65: }
# | check:149'0 ~~~
# | 66: cir.yield
# | check:149'0 ~~~~~~~~~~~
# | 67: }
# | check:149'0 ~~~
# | 68: }
# | check:149'0 ~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Transforms/switch.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch.cir
-cir-flatten-cfg -o - |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch.cir
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch.cir
-cir-flatten-cfg -o -
# note: command had no output on stdout or stderr
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch.cir
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch.cir:109:11:
error: CHECK: expected string not found in input
# | // CHECK: cir.switch.flat %arg0 : !s64i, ^bb[[#EXIT:]] [
# | ^
# | <stdin>:66:65: note: scanning from here
# | cir.func @shouldFlatSwitchWithFallthroughToExit(%arg0: !s64i) {
# | ^
# | <stdin>:80:2: note: possible intended match here
# | cir.switch.flat %1 : !s32i, ^bb6 [
# | ^
# |
# | Input file: <stdin>
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/switch.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 61: ^bb5: // 2 preds: ^bb1, ^bb4
# | 62: cir.br ^bb6
# | 63: ^bb6: // 2 preds: ^bb1, ^bb5
# | 64: cir.return
# | 65: }
# | 66: cir.func @shouldFlatSwitchWithFallthroughToExit(%arg0:
!s64i) {
# | check:109'0
X error: no match found
# | 67: cir.return
# | check:109'0 ~~~~~~~~~~~~
# | 68: }
# | check:109'0 ~~~
# | 69: cir.func @shouldDropEmptySwitch(%arg0: !s64i) {
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 70: cir.return
# | check:109'0 ~~~~~~~~~~~~
# | 71: }
# | check:109'0 ~~~
# | .
# | .
# | .
# | 75: cir.br ^bb1
# | check:109'0 ~~~~~~~~~~~~~
# | 76: ^bb1: // pred: ^bb0
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~
# | 77: %1 = cir.load %0 : !cir.ptr<!s32i>, !s32i
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 78: cir.br ^bb2
# | check:109'0 ~~~~~~~~~~~~~
# | 79: ^bb2: // pred: ^bb1
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~
# | 80: cir.switch.flat %1 : !s32i, ^bb6 [
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:109'1 ? possible intended match
# | 81: 3: ^bb4
# | check:109'0 ~~~~~~~~~
# | 82: ]
# | check:109'0 ~~~
# | 83: ^bb3: // no predecessors
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 84: cir.br ^bb4
# | check:109'0 ~~~~~~~~~~~~~
# | 85: ^bb4: // 2 preds: ^bb2, ^bb3
# | check:109'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Transforms/ternary.cir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/ternary.cir
-cir-flatten-cfg -o - |
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/ternary.cir
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/cir-opt
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/ternary.cir
-cir-flatten-cfg -o -
# note: command had no output on stdout or stderr
# executed command:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/ternary.cir
# .---command stderr------------
# |
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/ternary.cir:57:11:
error: CHECK: expected string not found in input
# | // CHECK: cir.brcond %arg0 ^bb1, ^bb2
# | ^
# | <stdin>:24:36: note: scanning from here
# | cir.func @foo2(%arg0: !cir.bool) {
# | ^
# | <stdin>:25:2: note: possible intended match here
# | cir.return
# | ^
# |
# | Input file: <stdin>
# | Check file:
/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/ternary.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 19: ^bb4: // pred: ^bb3
# | 20: cir.store %7, %1 : !s32i, !cir.ptr<!s32i>
# | 21: %8 = cir.load %1 : !cir.ptr<!s32i>, !s32i
# | 22: cir.return %8 : !s32i
# | 23: }
# | 24: cir.func @foo2(%arg0: !cir.bool) {
# | check:57'0 X error: no match found
# | 25: cir.return
# | check:57'0 ~~~~~~~~~~~~
# | check:57'1 ? possible intended match
# | 26: }
# | check:57'0 ~~~
# | 27: }
# | check:57'0 ~~
# | 28:
# | check:57'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/187865
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits