brintos

brintos / llvm-project-archived public Read only

0
0
Text · 527 B · 476f212 Raw
24 lines · plain
1// Test the CIR operations can parse and print correctly (roundtrip)2 3// RUN: cir-opt %s --verify-roundtrip | FileCheck %s4 5!u8i = !cir.int<u, 8>6 7module  {8  cir.func @stack_save_restore() {9    %0 = cir.stacksave : !cir.ptr<!u8i>10    cir.stackrestore %0 : !cir.ptr<!u8i>11    cir.return12  }13}14 15//CHECK: module  {16 17//CHECK-NEXT: cir.func @stack_save_restore() {18//CHECK-NEXT:   %0 = cir.stacksave : !cir.ptr<!u8i>19//CHECK-NEXT:   cir.stackrestore %0 : !cir.ptr<!u8i>20//CHECK-NEXT:   cir.return21//CHECK-NEXT: }22 23//CHECK-NEXT: }24