]> granicus.if.org Git - clang/commitdiff
This adds a separate file for the fp denormal regression tests. NFC.
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Mon, 3 Oct 2016 13:13:50 +0000 (13:13 +0000)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Mon, 3 Oct 2016 13:13:50 +0000 (13:13 +0000)
I forgot to svn add the new file in my previous commit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283110 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/denormal-fp-math.c [new file with mode: 0644]

diff --git a/test/Driver/denormal-fp-math.c b/test/Driver/denormal-fp-math.c
new file mode 100644 (file)
index 0000000..58f6e3c
--- /dev/null
@@ -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'