]> git.proxmox.com Git - mirror_qemu.git/commit - target/s390x/tcg/fpu_helper.c
s390x/tcg: Prepare for IEEE-inexact-exception control (XxC)
authorDavid Hildenbrand <david@redhat.com>
Mon, 18 Feb 2019 12:27:06 +0000 (13:27 +0100)
committerCornelia Huck <cohuck@redhat.com>
Mon, 4 Mar 2019 10:49:31 +0000 (11:49 +0100)
commitcf97f9ff94662433f997c40d023b90e2506655de
tree0c3f3dfa2f2805702d5055ea63f61cc0a923e45b
parentc0ee7015fdd8b8a4134a468a7ab9d825ca114a76
s390x/tcg: Prepare for IEEE-inexact-exception control (XxC)

Some instructions allow to suppress IEEE inexact exceptions.

z14 PoP, 9-23, "Suppression of Certain IEEE Exceptions"
    IEEE-inexact-exception control (XxC): Bit 1 of
    the M4 field is the XxC bit. If XxC is zero, recogni-
    tion of IEEE-inexact exception is not suppressed;
    if XxC is one, recognition of IEEE-inexact excep-
    tion is suppressed.

Especially, handling for overflow/unerflow remains as is, inexact is
reported along

z14 PoP, 9-23, "Suppression of Certain IEEE Exceptions"
    For example, the IEEE-inexact-exception control (XxC)
    has no effect on the DXC; that is, the DXC for IEEE-
    overflow or IEEE-underflow exceptions along with the
    detail for exact, inexact and truncated, or inexact and
    incremented, is reported according to the actual con-
    dition.

Follow up patches will wire it correctly up for the applicable
instructions.

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