mirror of https://github.com/llvm/circt.git
12 lines
450 B
MLIR
12 lines
450 B
MLIR
// RUN: circt-opt %s --arc-lower-state --verify-diagnostics --split-input-file
|
|
|
|
hw.module @CombLoop(in %a: i42, out z: i42) {
|
|
// expected-error @below {{'comb.add' op is on a combinational loop}}
|
|
// expected-remark @below {{computing new phase here}}
|
|
%0 = comb.add %a, %1 : i42
|
|
// expected-remark @below {{computing new phase here}}
|
|
%1 = comb.mul %a, %0 : i42
|
|
// expected-remark @below {{computing new phase here}}
|
|
hw.output %0 : i42
|
|
}
|