brintos

brintos / llvm-project-archived public Read only

0
0
Text · 325 B · 8a89437 Raw
13 lines · plain
1// RUN: mlir-translate -mlir-to-cpp %s | FileCheck %s2 3func.func @unary(%arg0: i32) -> () {4  %0 = emitc.unary_minus %arg0 : (i32) -> i325  %1 = emitc.unary_plus %arg0 : (i32) -> i326 7  return8}9 10// CHECK-LABEL: void unary11// CHECK-NEXT:  int32_t [[V1:[^ ]*]] = -[[V0:[^ ]*]];12// CHECK-NEXT:  int32_t [[V2:[^ ]*]] = +[[V0]];13