1
0

Fix FMUL sign, again (#789)

This commit is contained in:
Andrew Waterman 2017-06-08 01:50:00 -07:00 committed by GitHub
parent 60c896b48c
commit 8cb250cfe6

View File

@ -552,7 +552,7 @@ class FPUFMAPipe(val latency: Int, val t: FType)(implicit p: Parameters) extends
val in = Reg(new FPInput) val in = Reg(new FPInput)
when (io.in.valid) { when (io.in.valid) {
val one = UInt(1) << (t.sig + t.exp - 1) val one = UInt(1) << (t.sig + t.exp - 1)
val zero = UInt(1) << (t.sig + t.exp) val zero = (io.in.bits.in1 ^ io.in.bits.in2) & (UInt(1) << (t.sig + t.exp))
val cmd_fma = io.in.bits.ren3 val cmd_fma = io.in.bits.ren3
val cmd_addsub = io.in.bits.swap23 val cmd_addsub = io.in.bits.swap23
in := io.in.bits in := io.in.bits