xref: /llvm-project/mlir/test/Dialect/Arith/vscale_constants.mlir (revision 0b7362c257ff7b656c31266b4f9b8485a7ba4033)
1// RUN: mlir-opt %s | FileCheck %s
2
3// Note: This test is checking value names (so deliberately is not using a regex match).
4
5func.func @test_vscale_constant_names() {
6  %vscale = vector.vscale
7  %c8 = arith.constant 8 : index
8  // CHECK: %c8_vscale = arith.muli
9  %0 = arith.muli %vscale, %c8 : index
10  %c10 = arith.constant 10 : index
11  // CHECK: %c10_vscale = arith.muli
12  %1 = arith.muli %c10, %vscale : index
13  return
14}
15