Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 15 Jan 2020 14:18:56 +0000
From: Luís Marques <>
To: Florian Weimer <>
Subject: Re: [PATCH] Fix RISC-V a_cas inline asm operand sign extension

On Wed, Jan 15, 2020 at 1:50 PM Florian Weimer <> wrote:
> Are casts in this place really casts, and not merely type assertions?
> I think you have to use a temporarily variable or maybe a redundant +,
> to change the syntax.

AFAIK the expression inside the parenthesis is just a regular C
expression, which in this case is a cast expression of a variable.
Here's what the GCC documentation says for the input operands (section
" Input Operands"):

"Each operand has this format: [ [asmSymbolicName] ] constraint (cexpression)
This is the C variable or expression being passed to the asm statement
as input."

Is there a particular reason why you believe this might be a type
assertion instead?


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.