i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / bb-slp-layout-21.c
blobc851d58c97a98e83e542704e1079c5f86364b8a2
1 /* { dg-do compile } */
2 /* { dg-additional-options "-march=bdver2" { target x86_64-*-* i?86-*-* } } */
4 int rl2GeomExport64_little_endian, rl2GeomExport64_little_endian_arch;
5 void rl2GeomExport64(unsigned char *p, double value) {
6 union {
7 unsigned char byte[8];
8 double double_value;
9 } convert;
10 convert.double_value = value;
11 if (rl2GeomExport64_little_endian_arch)
12 if (rl2GeomExport64_little_endian) {
13 *(p + 7) = convert.byte[0];
14 *(p + 6) = convert.byte[1];
15 *(p + 5) = convert.byte[2];
16 *(p + 4) = convert.byte[3];
17 *(p + 3) = convert.byte[4];
18 *(p + 2) = convert.byte[5];
19 *(p + 1) = convert.byte[6];
20 *p = convert.byte[7];
21 } else
22 *p = convert.byte[7];