Files
Lauri Vasama be8351a17d Split up Clift PrimitiveType
* PrimitiveType is now an interface.
* VoidKind is now VoidType.
* FloatKind is now FloatType.
* The integer kinds are now IntegerType with IntegerKind.
2026-04-08 12:18:10 +03:00

42 lines
975 B
MLIR

//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
// RUN: %revngcliftopt %s
!int32_t = !clift.int<signed 4>
%1 = clift.local : !int32_t
clift.neg %1 : !int32_t
clift.add %1, %1 : !int32_t
clift.sub %1, %1 : !int32_t
clift.mul %1, %1 : !int32_t
clift.div %1, %1 : !int32_t
clift.rem %1, %1 : !int32_t
clift.not %1 : !int32_t -> !int32_t
clift.and %1, %1 : !int32_t -> !int32_t
clift.or %1, %1 : !int32_t -> !int32_t
clift.bitnot %1 : !int32_t
clift.bitand %1, %1 : !int32_t
clift.bitor %1, %1 : !int32_t
clift.bitxor %1, %1 : !int32_t
clift.shl %1, %1 : !int32_t
clift.shr %1, %1 : !int32_t
clift.eq %1, %1 : !int32_t -> !int32_t
clift.ne %1, %1 : !int32_t -> !int32_t
clift.lt %1, %1 : !int32_t -> !int32_t
clift.gt %1, %1 : !int32_t -> !int32_t
clift.le %1, %1 : !int32_t -> !int32_t
clift.ge %1, %1 : !int32_t -> !int32_t
clift.inc %1 : !int32_t
clift.dec %1 : !int32_t
clift.post_inc %1 : !int32_t
clift.post_dec %1 : !int32_t