| // Test the CIR operations can parse and print correctly (roundtrip) | |
| // RUN: cir-opt %s | cir-opt | FileCheck %s | |
| !u8i = !cir.int<u, 8> | |
| module { | |
| cir.func @stack_save_restore() { | |
| %0 = cir.stacksave : !cir.ptr<!u8i> | |
| cir.stackrestore %0 : !cir.ptr<!u8i> | |
| cir.return | |
| } | |
| } | |
| //CHECK: module { | |
| //CHECK-NEXT: cir.func @stack_save_restore() { | |
| //CHECK-NEXT: %0 = cir.stacksave : !cir.ptr<!u8i> | |
| //CHECK-NEXT: cir.stackrestore %0 : !cir.ptr<!u8i> | |
| //CHECK-NEXT: cir.return | |
| //CHECK-NEXT: } | |
| //CHECK-NEXT: } |