Re: [PATCH v1] LoongArch: Add modifiers for lsx and lasx.

2023-11-07 Thread Xi Ruoyao
On Tue, 2023-11-07 at 19:10 +0800, Xi Ruoyao wrote: > On Tue, 2023-11-07 at 12:06 +0800, chenxiaolong wrote: > > +__m128i  a,b,c; > > + > > +__asm__ ("vadd.d %w0,%w1,%w2\n\t" > > +   :"=f" (c) > > +   :"f" (a),"f" (b) > > +   :"cc"); > > This example does not work for me, with the definition of __

Re: [PATCH v1] LoongArch: Add modifiers for lsx and lasx.

2023-11-07 Thread Xi Ruoyao
On Tue, 2023-11-07 at 12:06 +0800, chenxiaolong wrote: > +__m128i  a,b,c; > + > +__asm__ ("vadd.d %w0,%w1,%w2\n\t" > +   :"=f" (c) > +   :"f" (a),"f" (b) > +   :"cc"); This example does not work for me, with the definition of __m128i in another patch: typedef long long __m128i __attribute__ ((__v