2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / float128-1.c
blob76f5dba5032b8c38e41fc660690935b18cd398b5
1 /* { dg-do run } */
2 /* { dg-options "-O2 -msse2" } */
3 /* { dg-require-effective-target sse2 } */
5 #include "sse2-check.h"
7 extern void abort (void);
9 typedef _Complex float __attribute__((mode(TC))) _Complex128;
11 _Complex128 __attribute__ ((noinline))
12 foo (_Complex128 x, _Complex128 y)
14 return x * y;
17 static void
18 sse2_test (void)
20 _Complex128 a = 1.3q + 3.4qi, b = 5.6q + 7.8qi, c;
22 c = foo (a, b);
23 if (__real__(c) == 0.0q || __imag__ (c) == 0.0q)
24 abort ();