From 2056bd8750fc7d7b78334a75e6449a711a872972 Mon Sep 17 00:00:00 2001 From: Schuyler Eldridge Date: Wed, 31 Jul 2019 15:46:26 -0400 Subject: Add SInt deprecated compatibility tests Signed-off-by: Schuyler Eldridge --- src/test/scala/chiselTests/CompatibilitySpec.scala | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/test/scala/chiselTests/CompatibilitySpec.scala b/src/test/scala/chiselTests/CompatibilitySpec.scala index 97eb58d0..c602efa3 100644 --- a/src/test/scala/chiselTests/CompatibilitySpec.scala +++ b/src/test/scala/chiselTests/CompatibilitySpec.scala @@ -567,4 +567,17 @@ class CompatibiltySpec extends ChiselFlatSpec with GeneratorDrivenPropertyChecks elaborate(new Foo) } + behavior of "SInt" + + it should "support legacy methods" in { + class Foo extends Module { + val io = new Bundle{} + + info("!= works") + (SInt(-1) != SInt(-1)) shouldBe a [Bool] + } + + elaborate(new Foo) + } + } -- cgit v1.2.3