[Bug jit/87291] Add support for inline asm to libgccjit

bouanto at zoho dot com gcc-bugzilla@gcc.gnu.org
Wed Jun 3 22:09:11 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87291

--- Comment #6 from bouanto at zoho dot com ---
(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?

I'm not sure I understand what you mean here? Does what you suggest change the
API in any way?


More information about the Gcc-bugs mailing list