circt/test/Dialect/FIRRTL/Reduction/node-symbol-remover.mlir

14 lines
541 B
MLIR

// UNSUPPORTED: system-windows
// See https://github.com/llvm/circt/issues/4129
// RUN: circt-reduce %s --test /usr/bin/env --test-arg grep --test-arg -q --test-arg "%anotherWire = firrtl.node" --keep-best=0 --include node-symbol-remover | FileCheck %s
firrtl.circuit "Foo" {
// CHECK: firrtl.module @Foo
// CHECK: %oneWire = firrtl.wire
// CHECK-NEXT: %anotherWire = firrtl.node %oneWire
firrtl.module @Foo() {
%oneWire = firrtl.wire : !firrtl.uint<1>
%anotherWire = firrtl.node sym @SYM %oneWire : !firrtl.uint<1>
}
}