xref: /llvm-project/mlir/test/Examples/mlir-opt/ctlz.mlir (revision 7f1968625a607fb49a2b9a67f3c8fb2892cf4839)
1// RUN: mlir-opt --pass-pipeline="builtin.module(convert-to-llvm)" %s | FileCheck %s
2
3// CHECK-LABEL: @main
4// CHECK: llvm.intr.ctlz
5module {
6  func.func @main(%arg0: i32) -> i32 {
7    %0 = math.ctlz %arg0 : i32
8    func.return %0 : i32
9  }
10}
11