mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

As Discussed here: http://lists.llvm.org/pipermail/llvm-dev/2019-January/129543.html There are problems exposing the _Float16 type on architectures that haven't defined the ABI/ISel for the type yet, so we're temporarily disabling the type and making it opt-in. Differential Revision: https://reviews.llvm.org/D57188 Change-Id: I5db7366dedf1deb9485adb8948b1deb7e612a736 llvm-svn: 352221
12 lines
439 B
C
12 lines
439 B
C
// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-linux-pc %s
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -triple spir-unknown-unknown %s -DHAVE
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -triple armv7a-linux-gnu %s -DHAVE
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -triple aarch64-linux-gnu %s -DHAVE
|
|
|
|
#ifdef HAVE
|
|
// expected-no-diagnostics
|
|
#else
|
|
// expected-error@+2{{_Float16 is not supported on this target}}
|
|
#endif // HAVE
|
|
_Float16 f;
|