File: pr93170.c

package info (click to toggle)
gcc-arm-none-eabi 15%3A14.2.rel1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,099,328 kB
  • sloc: cpp: 3,627,108; ansic: 2,571,498; ada: 834,230; f90: 235,082; makefile: 79,231; asm: 74,984; xml: 51,692; exp: 39,736; sh: 33,298; objc: 15,629; python: 15,069; fortran: 14,429; pascal: 7,003; awk: 5,070; perl: 3,106; ml: 285; lisp: 253; lex: 204; haskell: 135
file content (34 lines) | stat: -rw-r--r-- 1,087 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* { dg-do run } */
/* { dg-require-effective-target int128 } */
/* { dg-options "-Wno-psabi" } */
/* { dg-additional-options "-frename-registers -fno-tree-forwprop -fno-tree-fre -fira-algorithm=priority -mstringop-strategy=loop --param=hot-bb-frequency-fraction=0 -Wno-psabi" { target { x86_64-*-* i?86-*-* } } } */

typedef unsigned char v64u8 __attribute__ ((vector_size (64)));
typedef unsigned short v64u16 __attribute__ ((vector_size (64)));
typedef unsigned int v64u32 __attribute__ ((vector_size (64)));
typedef unsigned long long v64u64 __attribute__ ((vector_size (64)));
typedef unsigned __int128 u128;
typedef unsigned __int128 v64u128 __attribute__ ((vector_size (64)));

int a, b, d, e;
v64u64 c;

v64u128
foo (u128 g, v64u16 h, v64u32 i, v64u128 j)
{
  c[e] = 0;
  j &= (i[1] <<= b);
  j >>= ((v64u128) h <= j);
  d = __builtin_popcountll (-((v64u8) i)[0]);
  return a + g + j;
}

int
main (void)
{
  v64u128 x = foo (0, (v64u16) { 0, 0, 0, 0, 0, 0, 0, 0, 5 }, (v64u32) { 2 },
		   (v64u128) { });
  if (x[0] || x[1] || x[2] || x[3])
    __builtin_abort ();
  return 0;
}