s390x/tcg: Hide IEEE underflows in some scenarios
commit6d6ad1d14e2fdbc693524dbd721ef33d0adb9473
authorDavid Hildenbrand <david@redhat.com>
Mon, 18 Feb 2019 12:27:00 +0000 (18 13:27 +0100)
committerCornelia Huck <cohuck@redhat.com>
Mon, 4 Mar 2019 10:49:31 +0000 (4 11:49 +0100)
tree19fe77e36fd72b1d06215816c06f0d07f13e2382
parentfcb9e9f2a1b229b834e4133f626c4f40b43f7b9d
s390x/tcg: Hide IEEE underflows in some scenarios

IEEE underflows are not reported when the mask bit is off and we don't
also have an inexact exception.

z14 PoP, 9-20, "IEEE Underflow":
    An IEEE-underflow exception is recognized for an
    IEEE target when the tininess condition exists and
    either: (1) the IEEE-underflow mask bit in the FPC
    register is zero and the result value is inexact, or (2)
    the IEEE-underflow mask bit in the FPC register is
    one.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20190218122710.23639-6-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/fpu_helper.c