brintos

brintos / llvm-project-archived public Read only

0
0
Text · 701 B · bddcb1e Raw
20 lines · plain
1// RUN: %not_todo_cmd fir-opt --fir-to-llvm-ir="target=x86_64-unknown-linux-gnu" %s 2>&1 | FileCheck %s2 3// Test `fir.select_case` conversion to llvm with character type.4// Not implemented yet.5 6func.func @select_case_charachter(%arg0: !fir.char<2, 10>, %arg1: !fir.char<2, 10>, %arg2: !fir.char<2, 10>) {7// CHECK: not yet implemented: fir.select_case codegen with character type8  fir.select_case %arg0 : !fir.char<2, 10> [#fir.point, %arg1, ^bb1,9                                            #fir.point, %arg2, ^bb2,10                                            unit, ^bb3]11^bb1:12  %c1_i32 = arith.constant 1 : i3213  cf.br ^bb314^bb2:15  %c2_i32 = arith.constant 2 : i3216  cf.br ^bb317^bb3:18  return19}20