Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/lasx-pragma-attr-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mlasx" } */
3
4 typedef int v8i32 __attribute__ ((vector_size(32), aligned(32)));
5 extern v8i32 a, b, c;
6
7 #pragma GCC target ("no-lasx")
8 void
9 test (void)
10 {
11 a = __builtin_lasx_xvadd_w (b, c); /* { dg-error "built-in function '__builtin_lasx_xvadd_w' is not enabled" } */
12 }