diff options
| author | Troy A. Johnson <troyj@cray.com> | 2019-08-16 21:00:22 +0000 |
|---|---|---|
| committer | Troy A. Johnson <troyj@cray.com> | 2019-08-16 21:00:22 +0000 |
| commit | 250aafa2c4a1bc2395edfe8d4365545bbe56fffe (patch) | |
| tree | 00bd13298b2a37f327629b712e7964a4b553b54b /clang/test/Driver | |
| parent | a17d1d2250448a8dcffc3c7be3a70eb24309537e (diff) | |
| download | bcm5719-llvm-250aafa2c4a1bc2395edfe8d4365545bbe56fffe.tar.gz bcm5719-llvm-250aafa2c4a1bc2395edfe8d4365545bbe56fffe.zip | |
[X86] Support -mlong-double-80
Add an option group for all of the -mlong-double-* options and make
-mlong-double-80 restore the default long double behavior for X86. The
motivations are that GNU accepts the -mlong-double-80 option and that complex
Makefiles often need a way of undoing earlier options. Prior to this commit, if
one chooses 64-bit or 128-bit long double for X86, there is no way to undo that
choice and restore the 80-bit behavior.
Differential Revision: https://reviews.llvm.org/D66055
llvm-svn: 369152
Diffstat (limited to 'clang/test/Driver')
| -rw-r--r-- | clang/test/Driver/mlong-double-128.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/Driver/mlong-double-128.c b/clang/test/Driver/mlong-double-128.c index ae76265a3b3..d4c12dbe26e 100644 --- a/clang/test/Driver/mlong-double-128.c +++ b/clang/test/Driver/mlong-double-128.c @@ -2,10 +2,14 @@ // RUN: %clang -target powerpc64-pc-freebsd12 -c -### %s -mlong-double-128 2>&1 | FileCheck %s // RUN: %clang -target powerpc64le-linux-musl -c -### %s -mlong-double-128 2>&1 | FileCheck %s // RUN: %clang -target i686-linux-gnu -c -### %s -mlong-double-128 2>&1 | FileCheck %s -// RUN: %clang -target x86_64-linux-musl -c -### %s -mlong-double-128 2>&1 | FileCheck %s + +// RUN: %clang -target x86_64-linux-musl -c -### %s -mlong-double-128 -mlong-double-80 2>&1 | FileCheck --implicit-check-not=-mlong-double- /dev/null +// RUN: %clang -target x86_64-linux-musl -c -### %s -mlong-double-80 -mlong-double-128 2>&1 | FileCheck %s // CHECK: "-mlong-double-128" // RUN: %clang -target aarch64 -c -### %s -mlong-double-128 2>&1 | FileCheck --check-prefix=ERR %s +// RUN: %clang -target powerpc -c -### %s -mlong-double-80 2>&1 | FileCheck --check-prefix=ERR2 %s // ERR: error: unsupported option '-mlong-double-128' for target 'aarch64' +// ERR2: error: unsupported option '-mlong-double-80' for target 'powerpc-linux-musl' |

