mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
29 lines
576 B
MLIR
29 lines
576 B
MLIR
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
// RUN: %revngcliftopt %s
|
|
|
|
!void = !clift.primitive<void 0>
|
|
!int32_t = !clift.primitive<signed 4>
|
|
|
|
!f = !clift.defined<#clift.func<
|
|
"/type-definition/1000-CABIFunctionDefinition" as "f" : !void()
|
|
>>
|
|
|
|
clift.module {
|
|
clift.func @f<!f>() {
|
|
clift.while {
|
|
%0 = clift.undef : !int32_t
|
|
clift.yield %0 : !int32_t
|
|
} {
|
|
clift.switch {
|
|
%0 = clift.undef : !int32_t
|
|
clift.yield %0 : !int32_t
|
|
} default {
|
|
clift.loop_continue
|
|
}
|
|
}
|
|
}
|
|
}
|