tests/tcg/s390x: Fix EXRL tests
commitd944293d9ab0b8338fbc681e6e5d8ac7829a702f
authorDavid Hildenbrand <david@redhat.com>
Mon, 11 Jan 2021 16:38:44 +0000 (11 17:38 +0100)
committerCornelia Huck <cohuck@redhat.com>
Thu, 21 Jan 2021 10:19:45 +0000 (21 11:19 +0100)
tree023e7cdc2d13a4a3e947330a29293de1a3a1a9ee
parent401bf46779d7628438337007d82969da7b7e396f
tests/tcg/s390x: Fix EXRL tests

The current EXRL tests crash on real machines: we must not use r0 as a base
register for trt/trtr, otherwise the content gets ignored. Also, we must
not use r0 for exrl, otherwise it gets ignored.

Let's use the "a" constraint so we get a general purpose register != r0.
For op2, we can simply specify a memory operand directly via "Q" (Memory
reference without index register and with short displacement).

Fixes: ad8c851d2e77 ("target/s390x: add EX support for TRT and TRTR")
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210111163845.18148-5-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
tests/tcg/s390x/exrl-trt.c
tests/tcg/s390x/exrl-trtr.c