Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/lasx-func-attr-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mno-lsx" } */
3
4 typedef int v8i32 __attribute__ ((vector_size(32), aligned(32)));
5 extern v8i32 a, b, c;
6
7 #ifndef TEST_TARGET_PRAGMA
8 __attribute__ ((target ("lasx")))
9 #else
10 #pragma GCC target ("lasx")
11 #endif
12 void
13 test (void)
14 {
15 a = b + c;
16 }
17
18
19 /* { dg-final { scan-assembler "xvadd.w" } } */