| 1 |
// RUN: %clang_cc1 -fsyntax-only -verify -triple i686-linux-pc %s |
| 2 |
// RUN: %clang_cc1 -fsyntax-only -verify -triple i686-linux-pc -target-feature +sse2 %s -DHAVE |
| 3 |
// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-linux-pc %s -DHAVE |
| 4 |
// RUN: %clang_cc1 -fsyntax-only -verify -triple spir-unknown-unknown %s -DHAVE |
| 5 |
// RUN: %clang_cc1 -fsyntax-only -verify -triple armv7a-linux-gnu %s -DHAVE |
| 6 |
// RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-linux-gnu %s -DHAVE |
| 7 |
// RUN: %clang_cc1 -fsyntax-only -verify -triple riscv32 %s -DHAVE |
| 8 |
// RUN: %clang_cc1 -fsyntax-only -verify -triple riscv64 %s -DHAVE |
| 9 |
// RUN: %clang_cc1 -fsyntax-only -verify -triple s390x-ibm-zos %s |
| 10 |
|
| 11 |
#ifndef HAVE |
| 12 |
// expected-error@+2{{_Float16 is not supported on this target}} |
| 13 |
#endif // HAVE |
| 14 |
_Float16 f; |
| 15 |
|
| 16 |
#ifdef HAVE |
| 17 |
// expected-no-diagnostics |
| 18 |
_Complex _Float16 a; |
| 19 |
void builtin_complex(void) { |
| 20 |
_Float16 a = 0; |
| 21 |
(void)__builtin_complex(a, a); |
| 22 |
} |
| 23 |
#endif |