PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / 20020531-1.c
blobcd7cac34724efc993099d7f0808f30f02c084ef4
1 /* PR optimization/6842
2 This testcase caused ICE when trying to optimize V8QI subreg of VOIDmode
3 CONST_DOUBLE. */
4 /* { dg-do compile } */
5 /* { dg-options "-O2 -mmmx" } */
7 typedef char __v8qi __attribute__ ((vector_size (8)));
8 extern void abort (void);
9 extern void exit (int);
11 void foo (void)
13 unsigned long long a = 0x0102030405060708LL;
14 unsigned long long b = 0x1020304050607080LL;
15 unsigned long long c;
17 c = (unsigned long long) __builtin_ia32_paddusb ((__v8qi) a, (__v8qi) b);
18 __builtin_ia32_emms ();
19 if (c != 0x1122334455667788LL)
20 abort ();