[clang] [CIR] Fix address space of dest cleanup slot (PR #222628)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 10 06:12:23 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 63555 tests passed
* 830 tests skipped
* 6 tests failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CIR/Lowering/fenv.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/fenv.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/fenv.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/Lowering/fenv.cir -cir-to-llvm -o -
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/fenv.cir:6:1: error: Module has no target triple
# | module {
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/fenv.cir:6:1: note: see current operation:
# | "builtin.module"() ({
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.float, !cir.float)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "fadd_variants"}> ({
# | ^bb0(%arg27: !cir.float, %arg28: !cir.float):
# | %62 = "cir.fadd"(%arg27, %arg28) <{fenv = #cir.fenv<dynamic_rounding_mode = tonearest, except_mode = unknown, strict_except = true>}> : (!cir.float, !cir.float) -> !cir.float
# | %63 = "cir.fadd"(%arg27, %arg28) : (!cir.float, !cir.float) -> !cir.float
# | %64 = "cir.fadd"(%arg27, %arg28) <{fenv = #cir.fenv<>}> : (!cir.float, !cir.float) -> !cir.float
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.float, !cir.float)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "rounding_modes"}> ({
# | ^bb0(%arg25: !cir.float, %arg26: !cir.float):
# | %56 = "cir.fadd"(%arg25, %arg26) <{fenv = #cir.fenv<dynamic_rounding_mode = tonearest>}> : (!cir.float, !cir.float) -> !cir.float
# | %57 = "cir.fadd"(%arg25, %arg26) <{fenv = #cir.fenv<dynamic_rounding_mode = downward>}> : (!cir.float, !cir.float) -> !cir.float
# | %58 = "cir.fadd"(%arg25, %arg26) <{fenv = #cir.fenv<dynamic_rounding_mode = upward>}> : (!cir.float, !cir.float) -> !cir.float
# | %59 = "cir.fadd"(%arg25, %arg26) <{fenv = #cir.fenv<dynamic_rounding_mode = upwardzero>}> : (!cir.float, !cir.float) -> !cir.float
# | %60 = "cir.fadd"(%arg25, %arg26) <{fenv = #cir.fenv<dynamic_rounding_mode = tonearestaway>}> : (!cir.float, !cir.float) -> !cir.float
# | %61 = "cir.fadd"(%arg25, %arg26) <{fenv = #cir.fenv<dynamic_rounding_mode = unknown>}> : (!cir.float, !cir.float) -> !cir.float
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.float, !cir.float)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "exception_behaviors"}> ({
# | ^bb0(%arg23: !cir.float, %arg24: !cir.float):
# | %52 = "cir.fadd"(%arg23, %arg24) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.float, !cir.float) -> !cir.float
# | %53 = "cir.fadd"(%arg23, %arg24) <{fenv = #cir.fenv<strict_except = false>}> : (!cir.float, !cir.float) -> !cir.float
# | %54 = "cir.fadd"(%arg23, %arg24) <{fenv = #cir.fenv<except_mode = masked, strict_except = false>}> : (!cir.float, !cir.float) -> !cir.float
# | %55 = "cir.fadd"(%arg23, %arg24) <{fenv = #cir.fenv<dynamic_rounding_mode = tonearest>}> : (!cir.float, !cir.float) -> !cir.float
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.double, !cir.double)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "all_binops"}> ({
# | ^bb0(%arg21: !cir.double, %arg22: !cir.double):
# | %47 = "cir.fadd"(%arg21, %arg22) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %48 = "cir.fsub"(%arg21, %arg22) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %49 = "cir.fmul"(%arg21, %arg22) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %50 = "cir.fdiv"(%arg21, %arg22) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %51 = "cir.frem"(%arg21, %arg22) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "vector_binop"}> ({
# | ^bb0(%arg19: !cir.vector<4 x !cir.float>, %arg20: !cir.vector<4 x !cir.float>):
# | %46 = "cir.fadd"(%arg19, %arg20) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>) -> !cir.vector<4 x !cir.float>
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.double)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "unary_fp_builtins"}> ({
# | ^bb0(%arg18: !cir.double):
# | %41 = "cir.cos"(%arg18) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double) -> !cir.double
# | %42 = "cir.sqrt"(%arg18) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double) -> !cir.double
# | %43 = "cir.ceil"(%arg18) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double) -> !cir.double
# | %44 = "cir.fabs"(%arg18) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double) -> !cir.double
# | %45 = "cir.cos"(%arg18) : (!cir.double) -> !cir.double
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.double, !cir.double)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "binary_fp_builtins"}> ({
# | ^bb0(%arg16: !cir.double, %arg17: !cir.double):
# | %35 = "cir.pow"(%arg16, %arg17) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %36 = "cir.atan2"(%arg16, %arg17) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %37 = "cir.fmod"(%arg16, %arg17) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %38 = "cir.fmaximum"(%arg16, %arg17) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %39 = "cir.fminimum"(%arg16, %arg17) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %40 = "cir.copysign"(%arg16, %arg17) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.double, !cir.double, !cir.double)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "ternary_fp_builtins"}> ({
# | ^bb0(%arg13: !cir.double, %arg14: !cir.double, %arg15: !cir.double):
# | %31 = "cir.fma"(%arg13, %arg14, %arg15) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double, !cir.double) -> !cir.double
# | %32 = "cir.fma"(%arg13, %arg14, %arg15) : (!cir.double, !cir.double, !cir.double) -> !cir.double
# | %33 = "cir.fmuladd"(%arg13, %arg14, %arg15) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double, !cir.double) -> !cir.double
# | %34 = "cir.fmuladd"(%arg13, %arg14, %arg15) : (!cir.double, !cir.double, !cir.double) -> !cir.double
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "ternary_fp_vec_builtins"}> ({
# | ^bb0(%arg10: !cir.vector<4 x !cir.float>, %arg11: !cir.vector<4 x !cir.float>, %arg12: !cir.vector<4 x !cir.float>):
# | %27 = "cir.fma"(%arg10, %arg11, %arg12) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>) -> !cir.vector<4 x !cir.float>
# | %28 = "cir.fma"(%arg10, %arg11, %arg12) : (!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>) -> !cir.vector<4 x !cir.float>
# | %29 = "cir.fmuladd"(%arg10, %arg11, %arg12) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>) -> !cir.vector<4 x !cir.float>
# | %30 = "cir.fmuladd"(%arg10, %arg11, %arg12) : (!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>) -> !cir.vector<4 x !cir.float>
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.double, !cir.double)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "minmax_num"}> ({
# | ^bb0(%arg8: !cir.double, %arg9: !cir.double):
# | %23 = "cir.fmaxnum"(%arg8, %arg9) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %24 = "cir.fminnum"(%arg8, %arg9) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %25 = "cir.fmaxnum"(%arg8, %arg9) : (!cir.double, !cir.double) -> !cir.double
# | %26 = "cir.fminnum"(%arg8, %arg9) : (!cir.double, !cir.double) -> !cir.double
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.float, !cir.double, !cir.int<s, 32>)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "fp_casts"}> ({
# | ^bb0(%arg5: !cir.float, %arg6: !cir.double, %arg7: !cir.int<s, 32>):
# | %17 = "cir.cast"(%arg6) <{fenv = #cir.fenv<strict_except = true>, kind = #cir.cast<floating>}> : (!cir.double) -> !cir.float
# | %18 = "cir.cast"(%arg5) <{fenv = #cir.fenv<strict_except = true>, kind = #cir.cast<floating>}> : (!cir.float) -> !cir.double
# | %19 = "cir.cast"(%arg7) <{fenv = #cir.fenv<strict_except = true>, kind = #cir.cast<int_to_float>}> : (!cir.int<s, 32>) -> !cir.float
# | %20 = "cir.cast"(%arg5) <{fenv = #cir.fenv<strict_except = true>, kind = #cir.cast<float_to_int>}> : (!cir.float) -> !cir.int<s, 32>
# | %21 = "cir.cast"(%arg6) <{kind = #cir.cast<floating>}> : (!cir.double) -> !cir.float
# | %22 = "cir.cast"(%arg5) <{kind = #cir.cast<floating>}> : (!cir.float) -> !cir.double
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type
# | ...
# `---data was truncated (10240/13397) (change limit with -D output_limit=N)
# 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/fenv.cir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/fenv.cir:155:12: error: CHECK: expected string not found in input
# | // CHECK: llvm.intr.maxnum(%{{.*}}, %{{.*}}) {fastmathFlags = #llvm.fastmath<nsz>} : (f64, f64) -> f64
# | ^
# | <stdin>:128:157: note: scanning from here
# | %3 = llvm.call_intrinsic "llvm.experimental.constrained.minnum"(%arg0, %arg1, %2) {fastmathFlags = #llvm.fastmath<nsz>} : (f64, f64, !llvm.metadata) -> f64
# | ^
# | <stdin>:129:7: note: possible intended match here
# | %4 = llvm.intr.maxnum(%arg0, %arg1) fastmath<nsz> : (f64, f64) -> f64
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/fenv.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 123: }
# | 124: llvm.func @minmax_num(%arg0: f64, %arg1: f64) {
# | 125: %0 = llvm.mlir.metadata_as_value #llvm.md_string<"fpexcept.strict">
# | 126: %1 = llvm.call_intrinsic "llvm.experimental.constrained.maxnum"(%arg0, %arg1, %0) {fastmathFlags = #llvm.fastmath<nsz>} : (f64, f64, !llvm.metadata) -> f64
# | 127: %2 = llvm.mlir.metadata_as_value #llvm.md_string<"fpexcept.strict">
# | 128: %3 = llvm.call_intrinsic "llvm.experimental.constrained.minnum"(%arg0, %arg1, %2) {fastmathFlags = #llvm.fastmath<nsz>} : (f64, f64, !llvm.metadata) -> f64
# | check:155'0 { search range start (exclusive)
# | check:155'1 error: no match found in search range
# | 129: %4 = llvm.intr.maxnum(%arg0, %arg1) fastmath<nsz> : (f64, f64) -> f64
# | check:155'2 ? possible intended match
# | 130: %5 = llvm.intr.minnum(%arg0, %arg1) fastmath<nsz> : (f64, f64) -> f64
# | 131: llvm.return
# | 132: }
# | 133: llvm.func @fp_casts(%arg0: f32, %arg1: f64, %arg2: i32) {
# | check:155'3 } search range end (exclusive)
# | 134: %0 = llvm.mlir.metadata_as_value #llvm.md_string<"round.tonearest">
# | 135: %1 = llvm.mlir.metadata_as_value #llvm.md_string<"fpexcept.strict">
# | 136: %2 = llvm.call_intrinsic "llvm.experimental.constrained.fptrunc"(%arg1, %0, %1) : (f64, !llvm.metadata, !llvm.metadata) -> f32
# | 137: %3 = llvm.mlir.metadata_as_value #llvm.md_string<"fpexcept.strict">
# | 138: %4 = llvm.call_intrinsic "llvm.experimental.constrained.fpext"(%arg0, %3) : (f32, !llvm.metadata) -> f64
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Lowering/goto.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/goto.cir --pass-pipeline='builtin.module(cir-to-llvm,canonicalize{region-simplify=disabled})' -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/goto.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/goto.cir '--pass-pipeline=builtin.module(cir-to-llvm,canonicalize{region-simplify=disabled})' -o -
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/goto.cir:5:1: error: Module has no target triple
# | module {
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/goto.cir:5:1: note: see current operation:
# | "builtin.module"() ({
# | "cir.func"() <{arg_attrs = [{}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.int<s, 32>) -> !cir.int<s, 32>>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "gotoFromIf"}> ({
# | ^bb0(%arg0: !cir.int<s, 32>):
# | %0 = "cir.alloca"() <{alignment = 4 : i64, init, name = "x"}> : () -> !cir.ptr<!cir.int<s, 32>>
# | %1 = "cir.alloca"() <{alignment = 4 : i64, name = "__retval"}> : () -> !cir.ptr<!cir.int<s, 32>>
# | "cir.store"(%arg0, %0) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>) -> ()
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | %2 = "cir.load"(%0) : (!cir.ptr<!cir.int<s, 32>>) -> !cir.int<s, 32>
# | %3 = "cir.const"() <{value = #cir.int<5> : !cir.int<s, 32>}> : () -> !cir.int<s, 32>
# | %4 = "cir.cmp"(%2, %3) <{kind = #cir.cmp<gt>}> : (!cir.int<s, 32>, !cir.int<s, 32>) -> !cir.bool
# | "cir.brcond"(%4)[^bb2, ^bb3] <{operandSegmentSizes = array<i32: 1, 0, 0>}> : (!cir.bool) -> ()
# | ^bb2: // pred: ^bb1
# | "cir.goto"() <{label = "err"}> : () -> ()
# | ^bb3: // pred: ^bb1
# | "cir.br"()[^bb4] : () -> ()
# | ^bb4: // pred: ^bb3
# | %5 = "cir.const"() <{value = #cir.int<0> : !cir.int<s, 32>}> : () -> !cir.int<s, 32>
# | "cir.store"(%5, %1) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>) -> ()
# | "cir.br"()[^bb5] : () -> ()
# | ^bb5: // 2 preds: ^bb4, ^bb6
# | %6 = "cir.load"(%1) : (!cir.ptr<!cir.int<s, 32>>) -> !cir.int<s, 32>
# | "cir.return"(%6) : (!cir.int<s, 32>) -> ()
# | ^bb6: // no predecessors
# | "cir.label"() <{label = "err"}> : () -> ()
# | %7 = "cir.const"() <{value = #cir.int<-1> : !cir.int<s, 32>}> : () -> !cir.int<s, 32>
# | "cir.store"(%7, %1) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>) -> ()
# | "cir.br"()[^bb5] : () -> ()
# | }) : () -> ()
# | }) : () -> ()
# `-----------------------------
# 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/goto.cir -check-prefix=MLIR
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/goto.cir:44:10: error: MLIR: expected string not found in input
# | // MLIR: %[[#Ret_val:]] = llvm.load %[[#Ret_val_addr]] {alignment = 4 : i64} : !llvm.ptr -> i32
# | ^
# | <stdin>:22:7: note: scanning from here
# | ^bb5: // 2 preds: ^bb4, ^bb6
# | ^
# | <stdin>:22:7: note: with "Ret_val_addr" equal to "5"
# | ^bb5: // 2 preds: ^bb4, ^bb6
# | ^
# | <stdin>:22:7: note: pattern attempts to capture variables: "Ret_val"
# | ^bb5: // 2 preds: ^bb4, ^bb6
# | ^
# | <stdin>:23:2: note: possible intended match here
# | %8 = llvm.load %5 <alignment = 4> : !llvm.ptr -> i32
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/goto.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 17: ^bb3: // pred: ^bb1
# | 18: llvm.br ^bb4
# | 19: ^bb4: // pred: ^bb3
# | 20: llvm.store %1, %5 <alignment = 4> : i32, !llvm.ptr
# | 21: llvm.br ^bb5
# | 22: ^bb5: // 2 preds: ^bb4, ^bb6
# | check:44'0 { search range start (exclusive)
# | check:44'1 error: no match found in search range
# | check:44'2 with "Ret_val_addr" equal to "5"
# | check:44'3 pattern attempts to capture variables: "Ret_val"
# | 23: %8 = llvm.load %5 <alignment = 4> : !llvm.ptr -> i32
# | check:44'4 ? possible intended match
# | 24: llvm.return %8 : i32
# | 25: ^bb6: // pred: ^bb2
# | 26: llvm.store %0, %5 <alignment = 4> : i32, !llvm.ptr
# | 27: llvm.br ^bb5
# | 28: }
# | 29: }
# | 30:
# | check:44'5 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Transforms/abi-lowering/x86_64-struct-direct-offset.cir</summary>
```
Exit Code: 127
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/abi-lowering/x86_64-struct-direct-offset.cir -cir-call-conv-lowering=target=x86_64 | /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/abi-lowering/x86_64-struct-direct-offset.cir --check-prefix=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/abi-lowering/x86_64-struct-direct-offset.cir -cir-call-conv-lowering=target=x86_64
# 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/abi-lowering/x86_64-struct-direct-offset.cir --check-prefix=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/cir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/abi-lowering/x86_64-struct-direct-offset.cir -cir-call-conv-lowering=target=x86_64 -cir-to-llvm -o - 2>/dev/null | mlir-translate -mlir-to-llvmir --allow-unregistered-dialect | /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/abi-lowering/x86_64-struct-direct-offset.cir --check-prefix=LLVM
# executed command: mlir-translate -mlir-to-llvmir --allow-unregistered-dialect
# .---command stderr------------
# | 'mlir-translate': command not found
# `-----------------------------
# error: command failed with exit status: 127
--
```
</details>
<details>
<summary>Clang.CIR/Lowering/fenv.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/fenv.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/fenv.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/Lowering/fenv.cir -cir-to-llvm -o -
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/fenv.cir:6:1: error: Module has no target triple
# | module {
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/fenv.cir:6:1: note: see current operation:
# | "builtin.module"() ({
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.float, !cir.float)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "fadd_variants"}> ({
# | ^bb0(%arg27: !cir.float, %arg28: !cir.float):
# | %62 = "cir.fadd"(%arg27, %arg28) <{fenv = #cir.fenv<dynamic_rounding_mode = tonearest, except_mode = unknown, strict_except = true>}> : (!cir.float, !cir.float) -> !cir.float
# | %63 = "cir.fadd"(%arg27, %arg28) : (!cir.float, !cir.float) -> !cir.float
# | %64 = "cir.fadd"(%arg27, %arg28) <{fenv = #cir.fenv<>}> : (!cir.float, !cir.float) -> !cir.float
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.float, !cir.float)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "rounding_modes"}> ({
# | ^bb0(%arg25: !cir.float, %arg26: !cir.float):
# | %56 = "cir.fadd"(%arg25, %arg26) <{fenv = #cir.fenv<dynamic_rounding_mode = tonearest>}> : (!cir.float, !cir.float) -> !cir.float
# | %57 = "cir.fadd"(%arg25, %arg26) <{fenv = #cir.fenv<dynamic_rounding_mode = downward>}> : (!cir.float, !cir.float) -> !cir.float
# | %58 = "cir.fadd"(%arg25, %arg26) <{fenv = #cir.fenv<dynamic_rounding_mode = upward>}> : (!cir.float, !cir.float) -> !cir.float
# | %59 = "cir.fadd"(%arg25, %arg26) <{fenv = #cir.fenv<dynamic_rounding_mode = upwardzero>}> : (!cir.float, !cir.float) -> !cir.float
# | %60 = "cir.fadd"(%arg25, %arg26) <{fenv = #cir.fenv<dynamic_rounding_mode = tonearestaway>}> : (!cir.float, !cir.float) -> !cir.float
# | %61 = "cir.fadd"(%arg25, %arg26) <{fenv = #cir.fenv<dynamic_rounding_mode = unknown>}> : (!cir.float, !cir.float) -> !cir.float
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.float, !cir.float)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "exception_behaviors"}> ({
# | ^bb0(%arg23: !cir.float, %arg24: !cir.float):
# | %52 = "cir.fadd"(%arg23, %arg24) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.float, !cir.float) -> !cir.float
# | %53 = "cir.fadd"(%arg23, %arg24) <{fenv = #cir.fenv<strict_except = false>}> : (!cir.float, !cir.float) -> !cir.float
# | %54 = "cir.fadd"(%arg23, %arg24) <{fenv = #cir.fenv<except_mode = masked, strict_except = false>}> : (!cir.float, !cir.float) -> !cir.float
# | %55 = "cir.fadd"(%arg23, %arg24) <{fenv = #cir.fenv<dynamic_rounding_mode = tonearest>}> : (!cir.float, !cir.float) -> !cir.float
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.double, !cir.double)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "all_binops"}> ({
# | ^bb0(%arg21: !cir.double, %arg22: !cir.double):
# | %47 = "cir.fadd"(%arg21, %arg22) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %48 = "cir.fsub"(%arg21, %arg22) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %49 = "cir.fmul"(%arg21, %arg22) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %50 = "cir.fdiv"(%arg21, %arg22) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %51 = "cir.frem"(%arg21, %arg22) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "vector_binop"}> ({
# | ^bb0(%arg19: !cir.vector<4 x !cir.float>, %arg20: !cir.vector<4 x !cir.float>):
# | %46 = "cir.fadd"(%arg19, %arg20) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>) -> !cir.vector<4 x !cir.float>
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.double)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "unary_fp_builtins"}> ({
# | ^bb0(%arg18: !cir.double):
# | %41 = "cir.cos"(%arg18) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double) -> !cir.double
# | %42 = "cir.sqrt"(%arg18) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double) -> !cir.double
# | %43 = "cir.ceil"(%arg18) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double) -> !cir.double
# | %44 = "cir.fabs"(%arg18) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double) -> !cir.double
# | %45 = "cir.cos"(%arg18) : (!cir.double) -> !cir.double
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.double, !cir.double)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "binary_fp_builtins"}> ({
# | ^bb0(%arg16: !cir.double, %arg17: !cir.double):
# | %35 = "cir.pow"(%arg16, %arg17) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %36 = "cir.atan2"(%arg16, %arg17) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %37 = "cir.fmod"(%arg16, %arg17) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %38 = "cir.fmaximum"(%arg16, %arg17) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %39 = "cir.fminimum"(%arg16, %arg17) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %40 = "cir.copysign"(%arg16, %arg17) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.double, !cir.double, !cir.double)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "ternary_fp_builtins"}> ({
# | ^bb0(%arg13: !cir.double, %arg14: !cir.double, %arg15: !cir.double):
# | %31 = "cir.fma"(%arg13, %arg14, %arg15) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double, !cir.double) -> !cir.double
# | %32 = "cir.fma"(%arg13, %arg14, %arg15) : (!cir.double, !cir.double, !cir.double) -> !cir.double
# | %33 = "cir.fmuladd"(%arg13, %arg14, %arg15) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double, !cir.double) -> !cir.double
# | %34 = "cir.fmuladd"(%arg13, %arg14, %arg15) : (!cir.double, !cir.double, !cir.double) -> !cir.double
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "ternary_fp_vec_builtins"}> ({
# | ^bb0(%arg10: !cir.vector<4 x !cir.float>, %arg11: !cir.vector<4 x !cir.float>, %arg12: !cir.vector<4 x !cir.float>):
# | %27 = "cir.fma"(%arg10, %arg11, %arg12) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>) -> !cir.vector<4 x !cir.float>
# | %28 = "cir.fma"(%arg10, %arg11, %arg12) : (!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>) -> !cir.vector<4 x !cir.float>
# | %29 = "cir.fmuladd"(%arg10, %arg11, %arg12) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>) -> !cir.vector<4 x !cir.float>
# | %30 = "cir.fmuladd"(%arg10, %arg11, %arg12) : (!cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>, !cir.vector<4 x !cir.float>) -> !cir.vector<4 x !cir.float>
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.double, !cir.double)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "minmax_num"}> ({
# | ^bb0(%arg8: !cir.double, %arg9: !cir.double):
# | %23 = "cir.fmaxnum"(%arg8, %arg9) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %24 = "cir.fminnum"(%arg8, %arg9) <{fenv = #cir.fenv<strict_except = true>}> : (!cir.double, !cir.double) -> !cir.double
# | %25 = "cir.fmaxnum"(%arg8, %arg9) : (!cir.double, !cir.double) -> !cir.double
# | %26 = "cir.fminnum"(%arg8, %arg9) : (!cir.double, !cir.double) -> !cir.double
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}, {}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.float, !cir.double, !cir.int<s, 32>)>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "fp_casts"}> ({
# | ^bb0(%arg5: !cir.float, %arg6: !cir.double, %arg7: !cir.int<s, 32>):
# | %17 = "cir.cast"(%arg6) <{fenv = #cir.fenv<strict_except = true>, kind = #cir.cast<floating>}> : (!cir.double) -> !cir.float
# | %18 = "cir.cast"(%arg5) <{fenv = #cir.fenv<strict_except = true>, kind = #cir.cast<floating>}> : (!cir.float) -> !cir.double
# | %19 = "cir.cast"(%arg7) <{fenv = #cir.fenv<strict_except = true>, kind = #cir.cast<int_to_float>}> : (!cir.int<s, 32>) -> !cir.float
# | %20 = "cir.cast"(%arg5) <{fenv = #cir.fenv<strict_except = true>, kind = #cir.cast<float_to_int>}> : (!cir.float) -> !cir.int<s, 32>
# | %21 = "cir.cast"(%arg6) <{kind = #cir.cast<floating>}> : (!cir.double) -> !cir.float
# | %22 = "cir.cast"(%arg5) <{kind = #cir.cast<floating>}> : (!cir.float) -> !cir.double
# | "cir.return"() : () -> ()
# | }) : () -> ()
# | "cir.func"() <{arg_attrs = [{}, {}], calling_conv = #cir.calling_conv<c>, function_type
# | ...
# `---data was truncated (10240/13397) (change limit with -D output_limit=N)
# 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/fenv.cir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/fenv.cir:155:12: error: CHECK: expected string not found in input
# | // CHECK: llvm.intr.maxnum(%{{.*}}, %{{.*}}) {fastmathFlags = #llvm.fastmath<nsz>} : (f64, f64) -> f64
# | ^
# | <stdin>:128:157: note: scanning from here
# | %3 = llvm.call_intrinsic "llvm.experimental.constrained.minnum"(%arg0, %arg1, %2) {fastmathFlags = #llvm.fastmath<nsz>} : (f64, f64, !llvm.metadata) -> f64
# | ^
# | <stdin>:129:7: note: possible intended match here
# | %4 = llvm.intr.maxnum(%arg0, %arg1) fastmath<nsz> : (f64, f64) -> f64
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/fenv.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 123: }
# | 124: llvm.func @minmax_num(%arg0: f64, %arg1: f64) {
# | 125: %0 = llvm.mlir.metadata_as_value #llvm.md_string<"fpexcept.strict">
# | 126: %1 = llvm.call_intrinsic "llvm.experimental.constrained.maxnum"(%arg0, %arg1, %0) {fastmathFlags = #llvm.fastmath<nsz>} : (f64, f64, !llvm.metadata) -> f64
# | 127: %2 = llvm.mlir.metadata_as_value #llvm.md_string<"fpexcept.strict">
# | 128: %3 = llvm.call_intrinsic "llvm.experimental.constrained.minnum"(%arg0, %arg1, %2) {fastmathFlags = #llvm.fastmath<nsz>} : (f64, f64, !llvm.metadata) -> f64
# | check:155'0 { search range start (exclusive)
# | check:155'1 error: no match found in search range
# | 129: %4 = llvm.intr.maxnum(%arg0, %arg1) fastmath<nsz> : (f64, f64) -> f64
# | check:155'2 ? possible intended match
# | 130: %5 = llvm.intr.minnum(%arg0, %arg1) fastmath<nsz> : (f64, f64) -> f64
# | 131: llvm.return
# | 132: }
# | 133: llvm.func @fp_casts(%arg0: f32, %arg1: f64, %arg2: i32) {
# | check:155'3 } search range end (exclusive)
# | 134: %0 = llvm.mlir.metadata_as_value #llvm.md_string<"round.tonearest">
# | 135: %1 = llvm.mlir.metadata_as_value #llvm.md_string<"fpexcept.strict">
# | 136: %2 = llvm.call_intrinsic "llvm.experimental.constrained.fptrunc"(%arg1, %0, %1) : (f64, !llvm.metadata, !llvm.metadata) -> f32
# | 137: %3 = llvm.mlir.metadata_as_value #llvm.md_string<"fpexcept.strict">
# | 138: %4 = llvm.call_intrinsic "llvm.experimental.constrained.fpext"(%arg0, %3) : (f32, !llvm.metadata) -> f64
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Lowering/goto.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/goto.cir --pass-pipeline='builtin.module(cir-to-llvm,canonicalize{region-simplify=disabled})' -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/goto.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/goto.cir '--pass-pipeline=builtin.module(cir-to-llvm,canonicalize{region-simplify=disabled})' -o -
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/goto.cir:5:1: error: Module has no target triple
# | module {
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/goto.cir:5:1: note: see current operation:
# | "builtin.module"() ({
# | "cir.func"() <{arg_attrs = [{}], calling_conv = #cir.calling_conv<c>, function_type = !cir.func<(!cir.int<s, 32>) -> !cir.int<s, 32>>, global_visibility = 0 : i32, linkage = #cir.linkage<external>, sym_name = "gotoFromIf"}> ({
# | ^bb0(%arg0: !cir.int<s, 32>):
# | %0 = "cir.alloca"() <{alignment = 4 : i64, init, name = "x"}> : () -> !cir.ptr<!cir.int<s, 32>>
# | %1 = "cir.alloca"() <{alignment = 4 : i64, name = "__retval"}> : () -> !cir.ptr<!cir.int<s, 32>>
# | "cir.store"(%arg0, %0) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>) -> ()
# | "cir.br"()[^bb1] : () -> ()
# | ^bb1: // pred: ^bb0
# | %2 = "cir.load"(%0) : (!cir.ptr<!cir.int<s, 32>>) -> !cir.int<s, 32>
# | %3 = "cir.const"() <{value = #cir.int<5> : !cir.int<s, 32>}> : () -> !cir.int<s, 32>
# | %4 = "cir.cmp"(%2, %3) <{kind = #cir.cmp<gt>}> : (!cir.int<s, 32>, !cir.int<s, 32>) -> !cir.bool
# | "cir.brcond"(%4)[^bb2, ^bb3] <{operandSegmentSizes = array<i32: 1, 0, 0>}> : (!cir.bool) -> ()
# | ^bb2: // pred: ^bb1
# | "cir.goto"() <{label = "err"}> : () -> ()
# | ^bb3: // pred: ^bb1
# | "cir.br"()[^bb4] : () -> ()
# | ^bb4: // pred: ^bb3
# | %5 = "cir.const"() <{value = #cir.int<0> : !cir.int<s, 32>}> : () -> !cir.int<s, 32>
# | "cir.store"(%5, %1) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>) -> ()
# | "cir.br"()[^bb5] : () -> ()
# | ^bb5: // 2 preds: ^bb4, ^bb6
# | %6 = "cir.load"(%1) : (!cir.ptr<!cir.int<s, 32>>) -> !cir.int<s, 32>
# | "cir.return"(%6) : (!cir.int<s, 32>) -> ()
# | ^bb6: // no predecessors
# | "cir.label"() <{label = "err"}> : () -> ()
# | %7 = "cir.const"() <{value = #cir.int<-1> : !cir.int<s, 32>}> : () -> !cir.int<s, 32>
# | "cir.store"(%7, %1) : (!cir.int<s, 32>, !cir.ptr<!cir.int<s, 32>>) -> ()
# | "cir.br"()[^bb5] : () -> ()
# | }) : () -> ()
# | }) : () -> ()
# `-----------------------------
# 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/goto.cir -check-prefix=MLIR
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/goto.cir:44:10: error: MLIR: expected string not found in input
# | // MLIR: %[[#Ret_val:]] = llvm.load %[[#Ret_val_addr]] {alignment = 4 : i64} : !llvm.ptr -> i32
# | ^
# | <stdin>:22:7: note: scanning from here
# | ^bb5: // 2 preds: ^bb4, ^bb6
# | ^
# | <stdin>:22:7: note: with "Ret_val_addr" equal to "5"
# | ^bb5: // 2 preds: ^bb4, ^bb6
# | ^
# | <stdin>:22:7: note: pattern attempts to capture variables: "Ret_val"
# | ^bb5: // 2 preds: ^bb4, ^bb6
# | ^
# | <stdin>:23:2: note: possible intended match here
# | %8 = llvm.load %5 <alignment = 4> : !llvm.ptr -> i32
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Lowering/goto.cir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 17: ^bb3: // pred: ^bb1
# | 18: llvm.br ^bb4
# | 19: ^bb4: // pred: ^bb3
# | 20: llvm.store %1, %5 <alignment = 4> : i32, !llvm.ptr
# | 21: llvm.br ^bb5
# | 22: ^bb5: // 2 preds: ^bb4, ^bb6
# | check:44'0 { search range start (exclusive)
# | check:44'1 error: no match found in search range
# | check:44'2 with "Ret_val_addr" equal to "5"
# | check:44'3 pattern attempts to capture variables: "Ret_val"
# | 23: %8 = llvm.load %5 <alignment = 4> : !llvm.ptr -> i32
# | check:44'4 ? possible intended match
# | 24: llvm.return %8 : i32
# | 25: ^bb6: // pred: ^bb2
# | 26: llvm.store %0, %5 <alignment = 4> : i32, !llvm.ptr
# | 27: llvm.br ^bb5
# | 28: }
# | 29: }
# | 30:
# | check:44'5 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CIR/Transforms/abi-lowering/x86_64-struct-direct-offset.cir</summary>
```
Exit Code: 127
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/abi-lowering/x86_64-struct-direct-offset.cir -cir-call-conv-lowering=target=x86_64 | /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/abi-lowering/x86_64-struct-direct-offset.cir --check-prefix=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/abi-lowering/x86_64-struct-direct-offset.cir -cir-call-conv-lowering=target=x86_64
# 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/abi-lowering/x86_64-struct-direct-offset.cir --check-prefix=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/cir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CIR/Transforms/abi-lowering/x86_64-struct-direct-offset.cir -cir-call-conv-lowering=target=x86_64 -cir-to-llvm -o - 2>/dev/null | mlir-translate -mlir-to-llvmir --allow-unregistered-dialect | /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/abi-lowering/x86_64-struct-direct-offset.cir --check-prefix=LLVM
# executed command: mlir-translate -mlir-to-llvmir --allow-unregistered-dialect
# .---command stderr------------
# | 'mlir-translate': command not found
# `-----------------------------
# error: command failed with exit status: 127
--
```
</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/222628
More information about the cfe-commits
mailing list