| 1 |
/* PR tree-optimization/114278 */ |
| 2 |
/* { dg-do compile { target bitint } } */ |
| 3 |
/* { dg-options "-O2 -fno-tree-dce -fno-tree-dse -fno-tree-ccp" } */ |
| 4 |
/* { dg-additional-options "-mavx2" { target i?86-*-* x86_64-*-* } } */ |
| 5 |
|
| 6 |
void |
| 7 |
foo (void *p) |
| 8 |
{ |
| 9 |
_BitInt(64) b = *(_BitInt(64) *) __builtin_memmove (&b, p, sizeof (_BitInt(64))); |
| 10 |
} |
| 11 |
|
| 12 |
#if __BITINT_MAXWIDTH__ >= 128 |
| 13 |
void |
| 14 |
bar (void *p) |
| 15 |
{ |
| 16 |
_BitInt(128) b = *(_BitInt(128) *) __builtin_memmove (&b, p, sizeof (_BitInt(128))); |
| 17 |
} |
| 18 |
#endif |
| 19 |
|
| 20 |
#if __BITINT_MAXWIDTH__ >= 256 |
| 21 |
void |
| 22 |
baz (void *p) |
| 23 |
{ |
| 24 |
_BitInt(256) b = *(_BitInt(256) *) __builtin_memmove (&b, p, sizeof (_BitInt(256))); |
| 25 |
} |
| 26 |
#endif |