Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/vector-func-attr-1.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 #ifndef TEST_TARGET_PRAGMA
8 __attribute__ ((target ("no-lasx")))
9 #else
10 #pragma GCC target ("no-lasx")
11 #endif
12 void
13 test (void)
14 {
15 a = b + c;
16 }
17
18
19 /* { dg-final { scan-assembler "vadd.w" } } */