Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/short-circuit.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ffast-math -fdump-tree-gimple" } */
3
4 int
5 short_circuit (float *a)
6 {
7 float t1x = a[0];
8 float t2x = a[1];
9 float t1y = a[2];
10 float t2y = a[3];
11 float t1z = a[4];
12 float t2z = a[5];
13
14 if (t1x > t2y || t2x < t1y || t1x > t2z || t2x < t1z || t1y > t2z || t2y < t1z)
15 return 0;
16
17 return 1;
18 }
19 /* { dg-final { scan-tree-dump-times "if" 6 "gimple" } } */