summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr68134.c
blob: 522b4c62f9b02880ae24aeeaadd252efdfb106b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-std=c99" } */

#include <stdint.h>

typedef double float64x1_t __attribute__ ((vector_size (8)));
typedef uint64_t uint64x1_t;

void
foo (void)
{
  float64x1_t arg1 = (float64x1_t) 0x3fedf9d4343c7c80;
  float64x1_t arg2 = (float64x1_t) 0x3fcdc53742ea9c40;
  uint64x1_t result = (uint64x1_t) (arg1 == arg2);
  uint64_t got = result;
  uint64_t exp = 0;
  if (got != 0)
    __builtin_abort ();
}