Files
revng-revng/tests/unit/mlir_lit_tests/operations/switch-with-pointer-condition.mlir
Lauri Vasama 64fc21e9dd Overhaul clift.pointer assembly syntax
Old syntax:
```
!clift.pointer<pointer_size = 8, pointee_type = !t>
!clift.pointer<is_const = true, pointer_size = 8, pointee_type = !t>
```

New syntax:
```
!clift.ptr<8 to !t>
!clift.ptr<const 8 to !t>
```
2025-03-24 09:26:43 +02:00

14 lines
312 B
MLIR

//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
// RUN: not %revngcliftopt %s 2>&1 | FileCheck %s
!pointer = !clift.ptr<8 to !clift.primitive<float 4>>
// CHECK: condition requires an integer type
clift.switch {
%0 = clift.undef : !pointer
clift.yield %0 : !pointer
}