qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <dmiller423@gmail.com>
To: Richard Henderson <richard.henderson@linaro.org>
Cc: Thomas Huth <thuth@redhat.com>,
	David Hildenbrand <david@redhat.com>,
	farman@linux.ibm.com, cohuck@redhat.com, qemu-devel@nongnu.org,
	pasic@linux.ibm.com, qemu-s390x@nongnu.org,
	Christian Borntraeger <borntraeger@linux.ibm.com>
Subject: Re: [PATCH v2] tests/tcg/s390x: Cleanup of mie3 tests.
Date: Tue, 1 Mar 2022 15:21:26 -0500	[thread overview]
Message-ID: <CAEgyohUvQVfNGYfhmiOONGxstZ+MEy7Wx=e5uC2ee_reQaNakA@mail.gmail.com> (raw)
In-Reply-To: <234dc90d-7e7a-8281-d0db-14c8c4c6efea@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 392 bytes --]

I used


#define Fi3(S, ASM) uint64_t S(uint64_t a, uint64_t b, uint64_t c) \
{                       \
    uint64_t res = 0;   \
asm volatile (          \
    "ltgr %[c], %[c]\n" \
    ASM                 \
    "stg %[c], %[res] " \
    : [res] "=&r" (res) \
    : [a] "r" (a),      \
      [b] "r" (b),      \
      [c] "r" (c)       \
);                      \
    return res;         \
}

[-- Attachment #2: Type: text/html, Size: 1978 bytes --]

  reply	other threads:[~2022-03-01 20:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-01 19:59 [PATCH v2] tests/tcg/s390x: Cleanup of mie3 tests David Miller
2022-03-01 20:15 ` Richard Henderson
2022-03-01 20:21   ` David Miller [this message]
2022-03-01 20:22     ` David Miller
2022-03-01 21:18       ` Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEgyohUvQVfNGYfhmiOONGxstZ+MEy7Wx=e5uC2ee_reQaNakA@mail.gmail.com' \
    --to=dmiller423@gmail.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=david@redhat.com \
    --cc=farman@linux.ibm.com \
    --cc=pasic@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).