aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr112740.c
blob: 8250cafd2ffe27cd3555cd22520220de86d247f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do run { target { int128 } } } */
/* { dg-options "" } */

typedef unsigned __int128 __attribute__((__vector_size__ (16))) V;

V
foo (unsigned c, V v)
{
  return (V) (c <= v) == 0;
}

int
main (void)
{
  V x = foo (0, (V) { });
  if (x[0])
    __builtin_abort ();
  return 0;
}