[Bug jit/87291] Add support for inline asm to libgccjit
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 3 22:44:35 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87291
--- Comment #7 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #5)
> (In reply to bouanto from comment #4)
> > So, an example like this:
> >
> > ```c
> > bool old;
> > __asm__ ("btsl %2,%1\n\t" // Turn on zero-based bit #Offset in Base.
> > "sbb %0,%0" // Use the CF to calculate old.
> > : "=r" (old), "+rm" (*Base)
> > : "Ir" (Offset)
> > : "cc");
>
> Could we instead try to get this produced from normal gimple/C code?
Note that this is the example from "6.47.2.3 Output Operands" on
https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html
I believe bouanto is merely citing it as an example.
More information about the Gcc-bugs
mailing list