gcc/testsuite/gcc.target/i386/pr108044-4.c
raw| 1 | /* PR target/108044 */ |
| 2 | /* { dg-do compile { target ia32 } } */ |
| 3 | /* { dg-options "-O2 -fcf-protection=branch" } */ |
| 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 | unsigned long long |
| 12 | bar (unsigned int x) |
| 13 | { |
| 14 | return foo (x, 0xfa1e0ff3U); |
| 15 | } |
| 16 | |
| 17 | unsigned long long |
| 18 | baz (unsigned int x) |
| 19 | { |
| 20 | return foo (0xfa1e0ff3U, x); |
| 21 | } |