* gcc.dg/const-elim-1.c: xfail for xtensa.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20020531-1.c
blobc18033f3d08579eee83684bef908842cb3c34926
1 /* PR optimization/6842
2 This testcase caused ICE when trying to optimize V8QI subreg of VOIDmode
3 CONST_DOUBLE. */
4 /* { dg-do compile { target i?86-*-* } } */
5 /* { dg-options "-O2 -mmmx" } */
7 typedef int __v8qi __attribute__ ((__mode__ (__V8QI__)));
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 ();