qemu-s390x
[Top][All Lists]
Advanced

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

Re: [PATCH v2] tests/tcg/s390x: Cleanup of mie3 tests.


From: Richard Henderson
Subject: Re: [PATCH v2] tests/tcg/s390x: Cleanup of mie3 tests.
Date: Tue, 1 Mar 2022 11:18:29 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 3/1/22 10:22, David Miller wrote:
However the constraint must be wrong there.
Sorry about split message.

On Tue, Mar 1, 2022 at 3:21 PM David Miller <dmiller423@gmail.com <mailto:dmiller423@gmail.com>> wrote:

    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; \
    }



The final stg is wrong and unnecessary.


r~



reply via email to

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