Date: Wed, 15 Jan 2020 14:18:56 +0000 From: Luís Marques <luismarques@...risc.org> To: Florian Weimer <fweimer@...hat.com> Cc: musl@...ts.openwall.com Subject: Re: [PATCH] Fix RISC-V a_cas inline asm operand sign extension On Wed, Jan 15, 2020 at 1:50 PM Florian Weimer <fweimer@...hat.com> 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 "184.108.40.206 Input Operands"): "Each operand has this format: [ [asmSymbolicName] ] constraint (cexpression) (...) 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? Thanks, Luís
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.