Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr112672.c

raw
1 /* PR target/112672 */
2 /* { dg-do run } */
3 /* { dg-options "-O2" } */
4
5 typedef unsigned short u16;
6
7 u16 g = 254;
8
9 static inline u16
10 foo (u16 u)
11 {
12 u *= g;
13 return u + __builtin_parityl (u);
14 }
15
16 int
17 main (void)
18 {
19 u16 x = foo (4);
20 if (x != 4 * 254 + 1)
21 __builtin_abort ();
22 return 0;
23 }