gcc/testsuite/gcc.dg/dfp/pr104557.c
raw| 1 | /* PR debug/104557 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O -g -Wno-psabi" } */ |
| 4 | |
| 5 | typedef int __attribute__((__vector_size__ (32))) U; |
| 6 | typedef double __attribute__((__vector_size__ (32))) F; |
| 7 | typedef _Decimal64 __attribute__((__vector_size__ (32))) D; |
| 8 | |
| 9 | F |
| 10 | bar (void) |
| 11 | { |
| 12 | F f = __builtin_convertvector ((D) (-10.d < (D) ((D) (U) { 0, 0, 0, 0, 0, 0, 0, -0xe0 } |
| 13 | >= (D) { 80000000 })), F); |
| 14 | return f; |
| 15 | } |
| 16 | |
| 17 | F |
| 18 | foo () |
| 19 | { |
| 20 | F x = bar (); |
| 21 | return x; |
| 22 | } |