qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests/tcg/s390x: Fix mvc, mvo and pack tests with Clang


From: Richard Henderson
Subject: Re: [PATCH] tests/tcg/s390x: Fix mvc, mvo and pack tests with Clang
Date: Tue, 1 Mar 2022 08:14:52 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 2/28/22 23:39, Thomas Huth wrote:
These instructions use addressing with a "base address", meaning
that if register r0 is used, it is always treated as zero, no matter
what value is stored in the register. So we have to make sure not
to use register r0 for these instructions in our tests. There was
no problem with GCC so far since it seems to always pick other
registers by default, but Clang likes to chose register r0, too,
so we have to use the "a" constraint to make sure that it does
not pick r0 here.

Signed-off-by: Thomas Huth<thuth@redhat.com>
---
  tests/tcg/s390x/mvc.c  | 4 ++--
  tests/tcg/s390x/mvo.c  | 4 ++--
  tests/tcg/s390x/pack.c | 2 +-
  3 files changed, 5 insertions(+), 5 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]