Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/pr121634.c

raw
1 /* PR target/121634: ICE in highway-1.3.0 testsuite */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -march=la464 -mabi=lp64d" } */
4
5 typedef short v8i16 __attribute__ ((vector_size (16)));
6 typedef int v4i32 __attribute__ ((vector_size (16)));
7 typedef long __m128i __attribute__ ((__vector_size__ (16)));
8 __m128i x, y;
9
10 __m128i
11 WidenMulPairwiseAdd (__m128i a, __m128i b)
12 {
13 y = (__m128i)__builtin_lsx_vmaddwod_w_h ((v4i32)x, (v8i16){}, (v8i16){});
14 return y;
15 }