Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr108044-2.c

raw
1 /* PR target/108044 */
2 /* { dg-do compile { target ia32 } } */
3 /* { dg-options "-O2" } */
4
5 static inline unsigned long long
6 foo (unsigned int x, unsigned int y)
7 {
8 return ((unsigned long long) x << 32) | y;
9 }
10
11 void
12 bar (unsigned long long *p, unsigned int x)
13 {
14 p[0] = foo (x, 0xcafebabeU);
15 }
16
17 void
18 baz (unsigned long long *p, unsigned int x)
19 {
20 p[0] = foo (0xcafebabeU, x);
21 }