Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/memcpy-5.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-options "-O -fdump-tree-optimized" } */ /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ extern void *memcpy (void *, const void *, __SIZE_TYPE__); #define TEST(NAME, TYPE) \ TYPE NAME##x; \ char NAME##y[sizeof (NAME##x)] __attribute__((aligned (__alignof__ (NAME##x)))); \ void NAME (void) { memcpy (&NAME##x, &NAME##y, sizeof (NAME##x)); } TEST (f, float); TEST (d, double); TEST (ld, long double); TEST (cf, _Complex float); TEST (cd, _Complex double); TEST (cld, _Complex long double); TEST (d8f, float __attribute__((vector_size (8)))); TEST (d16f, float __attribute__((vector_size (16)))); TEST (d32f, float __attribute__((vector_size (32)))); TEST (d64f, float __attribute__((vector_size (64)))); TEST (d128f, float __attribute__((vector_size (128)))); TEST (d16d, double __attribute__((vector_size (16)))); TEST (d32d, double __attribute__((vector_size (32)))); TEST (d64d, double __attribute__((vector_size (64)))); TEST (d128d, double __attribute__((vector_size (128)))); /* { dg-final { scan-tree-dump-not "memcpy" "optimized" { target i?86-*-* x86_64-*-* } } } */