diff options
author | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2016-10-03 13:13:50 +0000 |
---|---|---|
committer | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2016-10-03 13:13:50 +0000 |
commit | d98493414bfff91b71a9ab5bbfc84b95e93ed123 (patch) | |
tree | be5a08fd9dc44b9d8f14eafe4a50a27f67e2d9bb | |
parent | a5d3fd47805dcbb0c23af14dcc124b0ad0c07716 (diff) | |
download | bcm5719-llvm-d98493414bfff91b71a9ab5bbfc84b95e93ed123.tar.gz bcm5719-llvm-d98493414bfff91b71a9ab5bbfc84b95e93ed123.zip |
This adds a separate file for the fp denormal regression tests. NFC.
I forgot to svn add the new file in my previous commit.
llvm-svn: 283110
-rw-r--r-- | clang/test/Driver/denormal-fp-math.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Driver/denormal-fp-math.c b/clang/test/Driver/denormal-fp-math.c new file mode 100644 index 00000000000..58f6e3c9156 --- /dev/null +++ b/clang/test/Driver/denormal-fp-math.c @@ -0,0 +1,9 @@ +// RUN: %clang -### -target arm-unknown-linux-gnu -c %s -fdenormal-fp-math=ieee -v 2>&1 | FileCheck -check-prefix=CHECK-IEEE %s +// RUN: %clang -### -target arm-unknown-linux-gnu -c %s -fdenormal-fp-math=preserve-sign -v 2>&1 | FileCheck -check-prefix=CHECK-PS %s +// RUN: %clang -### -target arm-unknown-linux-gnu -c %s -fdenormal-fp-math=positive-zero -v 2>&1 | FileCheck -check-prefix=CHECK-PZ %s +// RUN: not %clang -target arm-unknown-linux-gnu -c %s -fdenormal-fp-math=foo -v 2>&1 | FileCheck -check-prefix=CHECK-INVALID %s + +// CHECK-IEEE: "-fdenormal-fp-math=ieee" +// CHECK-PS: "-fdenormal-fp-math=preserve-sign" +// CHECK-PZ: "-fdenormal-fp-math=positive-zero" +// CHECK-INVALID: error: invalid value 'foo' in '-fdenormal-fp-math=foo' |