mirror of https://github.com/llvm/circt.git
17 lines
545 B
MLIR
17 lines
545 B
MLIR
// RUN: circt-opt %s --convert-llhd-to-llvm --verify-diagnostics --split-input-file
|
|
|
|
llhd.entity @root() -> () {
|
|
// expected-error @+1 {{failed to legalize operation 'llhd.inst'}}
|
|
llhd.inst "inst" @initUsesProbedValue () -> () : () -> ()
|
|
}
|
|
|
|
llhd.entity @initUsesProbedValue () -> () {
|
|
%0 = hw.constant 0 : i1
|
|
%1 = llhd.sig "sig" %0 : i1
|
|
%2 = llhd.prb %1 : !llhd.sig<i1>
|
|
%3 = hw.array_create %2, %2 : i1
|
|
%4 = llhd.sig "sig1" %3 : !hw.array<2xi1>
|
|
}
|
|
|
|
// TODO: add testcase where the init value of llhd.sig comes from a block argument
|