gcc/testsuite/gcc.dg/pr104511.c
raw| 1 | /* { dg-do compile { target dfp } } */ |
| 2 | /* { dg-options "-O -Wno-psabi" } */ |
| 3 | |
| 4 | typedef _Float64 __attribute__((__vector_size__ (32))) F; |
| 5 | typedef _Decimal32 __attribute__((__vector_size__ (16))) D; |
| 6 | |
| 7 | extern void bar (void); |
| 8 | |
| 9 | D g; |
| 10 | void |
| 11 | foo (F f) |
| 12 | { |
| 13 | D d = __builtin_convertvector (f, D); |
| 14 | bar (); |
| 15 | g = d; |
| 16 | } |