| 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 s390x-ibm-zos %s |
| 8 |
#ifdef HAVE |
| 9 |
// expected-no-diagnostics |
| 10 |
#endif // HAVE |
| 11 |
|
| 12 |
#ifndef HAVE |
| 13 |
// expected-error@+2{{_Float16 is not supported on this target}} |
| 14 |
#endif // !HAVE |
| 15 |
_Float16 f; |
| 16 |
|
| 17 |
#ifndef HAVE |
| 18 |
// expected-error@+2{{invalid suffix 'F16' on floating constant}} |
| 19 |
#endif // !HAVE |
| 20 |
const auto g = 1.1F16; |