gcc/testsuite/gcc.dg/pr105333.c
raw| 1 | /* PR rtl-optimization/105333 */ |
| 2 | /* { dg-do compile { target int128 } } */ |
| 3 | /* { dg-options "-Og -fno-tree-coalesce-vars -fno-tree-fre" } */ |
| 4 | |
| 5 | int g; |
| 6 | short s; |
| 7 | |
| 8 | static inline unsigned short |
| 9 | bar (short a, __int128 b) |
| 10 | { |
| 11 | b ^= (unsigned long) -a; |
| 12 | __builtin_strncpy ((void *) &s, (void *) &a, 1); |
| 13 | b *= 14; |
| 14 | return b; |
| 15 | } |
| 16 | |
| 17 | void |
| 18 | foo (void) |
| 19 | { |
| 20 | g *= (__int128) bar (1, 1); |
| 21 | } |