Displaying 2 results from an estimated 2 matches for "intrinstest".
2018 Apr 24
0
Help: How to define vector element type bool (v8i1) in C builtin function
...ibute__ ((vector_size(16)));
typedef bool v8i1 __attribute__ ((vector_size(1)));
void foo() {
v4i32 v4i32_r1,v4i32_r2,v4i32_r3;
v8i1 vm_1;
v4i32_r1 = __builtin_dongxin_add_32(v4i32_r2,v4i32_r2,vm_1);
}
but when I compile : clang -cc1 -triple mipsel-unknown-linux-gnu -emit-llvm intrinstest.c -o test.ll
I got the error:
intrinstest.c:4:9: error: unknown type name 'bool'
typedef bool v8i1 __attribute__ ((vector_size(1)));
^
intrinstest.c:4:36: error: vector size not an integral multiple of component size
typedef bool v8i1 __attribute__ ((vector_size(1)));...
2018 Apr 22
0
Subject: How to define vector element type bool in builtin function
...ibute__ ((vector_size(16)));
typedef bool v8i1 __attribute__ ((vector_size(1)));
void foo() {
v4i32 v4i32_r1,v4i32_r2,v4i32_r3;
v8i1 vm_1;
v4i32_r1 = __builtin_dongxin_add_32(v4i32_r2,v4i32_r2,vm_1);
}
but when I compile : clang -cc1 -triple mipsel-unknown-linux-gnu -emit-llvm intrinstest.c -o test.ll
I got the error:
intrinstest.c:4:9: error: unknown type name 'bool'
typedef bool v8i1 __attribute__ ((vector_size(1)));
^
intrinstest.c:4:36: error: vector size not an integral multiple of component size
typedef bool v8i1 __attribute__ ((vector_size(1)));...