gcc/testsuite/gcc.dg/torture/pr123822-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-ffast-math" } */ |
| 3 | /* { dg-require-effective-target dfp } */ |
| 4 | |
| 5 | /* PR rtl-optimization/123822 */ |
| 6 | |
| 7 | typedef __attribute__((__vector_size__(16))) _Decimal64 D; |
| 8 | |
| 9 | int i; |
| 10 | D d; |
| 11 | |
| 12 | void |
| 13 | foo() |
| 14 | { |
| 15 | d /= (D)(d >= *(D *)__builtin_memset(&d, i, 3)); |
| 16 | } |