aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/firrtlTests/NegSpec.scala
AgeCommit message (Collapse)Author
2021-03-19Legalize neg: -x becomes 0 - x (#2128)Jack Koenig
This fixes an error with negating a negative SInt literal and a [debatable] lint warning in Verilator when negating any value. This behavior matches that of Chisel (which directly emits the 0 - x already).