circt/test/Dialect/Moore/attrs-error.mlir

10 lines
370 B
MLIR

// RUN: circt-opt --verify-diagnostics --split-input-file %s
// expected-error @below {{integer literal requires at least 6 bits, but attribute specifies only 3}}
hw.constant false {foo = #moore.fvint<42 : 3>}
// -----
// expected-error @below {{integer literal requires at least 1 bits, but attribute specifies only 0}}
hw.constant false {foo = #moore.fvint<1 : 0>}