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 <dmiller...@gmail.com <mailto:dmiller...@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