Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/lsx-func-attr-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mlsx" } */
3
4 typedef int v4i32 __attribute__ ((vector_size(16), aligned(16)));
5 extern v4i32 a, b, c;
6
7 __attribute__ ((target ("no-lsx")))
8 void
9 test (void)
10 {
11 a = __builtin_lsx_vadd_w (b, c); /* { dg-error "built-in function '__builtin_lsx_vadd_w' is not enabled" } */
12 }