Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/pr112476-1.c

raw
1 /* PR target/112476: ICE with -mlsx */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -march=loongarch64 -mfpu=64 -mabi=lp64d -mlsx" } */
4
5 int foo, bar;
6 float baz, res, a;
7
8 void
9 apply_adjacent_ternary (float *dst, float *src0)
10 {
11 do
12 {
13 __builtin_memcpy (&res, &src0, sizeof (res));
14 *dst = foo ? baz : res;
15 dst++;
16 }
17 while (dst != src0);
18 }
19
20 void
21 xx (void)
22 {
23 apply_adjacent_ternary (&a, &a);
24 }