Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr107322.c

raw
1 /* PR target/107322 */
2 /* { dg-do compile } */
3 /* { dg-options "-fexcess-precision=16 -O -msse2 -mfpmath=sse" } */
4
5 int i, j;
6 float k, l;
7 __bf16 f;
8
9 void
10 foo (void)
11 {
12 i *= 0 >= f;
13 }
14
15 void
16 bar (void)
17 {
18 i *= 0 <= f;
19 }
20
21 void
22 baz (int x, int y)
23 {
24 i = 0 >= f ? x : y;
25 j = 0 <= f ? x + 2 : y + 3;
26 }
27
28 void
29 qux (float x, float y)
30 {
31 k = 0 >= f ? x : y;
32 l = 0 <= f ? x + 2 : y + 3;
33 }