Handle T_HRESULT types in CodeView records
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr96264.c
blob906720fdcd113d5322b607a893c117add7ca9fe4
1 /* { dg-do run { target { powerpc64le-*-* } } } */
2 /* { dg-options "-Os -fno-forward-propagate -fschedule-insns -fno-tree-ter -Wno-psabi" } */
3 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
4 /* { dg-require-effective-target p8vector_hw } */
6 typedef unsigned char __attribute__ ((__vector_size__ (64))) v512u8;
7 typedef unsigned short u16;
8 typedef unsigned short __attribute__ ((__vector_size__ (64))) v512u16;
9 typedef unsigned __int128 __attribute__ ((__vector_size__ (64))) v512u128;
11 v512u16 d;
12 v512u128 f;
14 v512u8
15 foo (u16 e)
17 v512u128 g = f - -e;
18 d = (5 / (d + 1)) < e;
19 return (v512u8) g;
22 int
23 main (void)
25 v512u8 x = foo (2);
26 for (unsigned i = 0; i < sizeof (x); i++)
27 if (x[i] != (i % 16 ? 0 : 2))
28 __builtin_abort ();