brintos

brintos / llvm-project-archived public Read only

0
0
Text · 286 B · 2470fbe Raw
10 lines · plain
1// RUN: mlir-translate -mlir-to-cpp %s | FileCheck %s2 3func.func @cond(%cond: i1, %arg0: i32, %arg1: i32) -> () {4  %0 = emitc.conditional %cond, %arg0, %arg1 : i325  return6}7 8// CHECK-LABEL: void cond9// CHECK-NEXT:  int32_t [[V3:[^ ]*]] = [[V0:[^ ]*]] ? [[V1:[^ ]*]] : [[V2:[^ ]*]];10