Files
revng-revng/tests/filecheck/clift/expressions/pointer-add-with-non-integer.mlir
2026-06-03 13:59:53 +02:00

16 lines
402 B
MLIR

//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
// RUN: not %root/bin/revng clift-opt %s 2>&1 | FileCheck %s
!int32_t = !clift.int<signed 4>
!int32_t$ptr = !clift.ptr<8 to !int32_t>
!float32_t = !clift.float<4>
%p = clift.undef : !int32_t$ptr
%i = clift.undef : !float32_t
// CHECK: requires an integer operand
clift.ptr_add %p, %i : (!int32_t$ptr, !float32_t)