]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/bitint-99.c
asan: Fix ICE during instrumentation of returns_twice calls [PR112709]
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / bitint-99.c
CommitLineData
dbe5ccda
JJ
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
6void
7foo (void *p)
8{
9 _BitInt(64) b = *(_BitInt(64) *) __builtin_memmove (&b, p, sizeof (_BitInt(64)));
10}
11
12#if __BITINT_MAXWIDTH__ >= 128
13void
14bar (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
21void
22baz (void *p)
23{
24 _BitInt(256) b = *(_BitInt(256) *) __builtin_memmove (&b, p, sizeof (_BitInt(256)));
25}
26#endif