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__ ((__vector_size__ (16), __may_alias__));
__m128i a,b,c;
void t(void) {
__asm__ ("vadd.d %w0,%w1,%w2\n\t"
:"=f" (c)
:"f" (a),"f" (b)
:"cc");
}
t1.c: In function ‘t’:
t1.c:6:1: error: inconsistent operand constraints in an ‘asm’
6 | __asm__ ("vadd.d %w0,%w1,%w2\n\t"
Please recheck.
--
Xi Ruoyao <[email protected]>
School of Aerospace Science and Technology, Xidian University