From 350b741d47e0a64ace2cc93352af9e2f4b699d5e Mon Sep 17 00:00:00 2001 From: Sjoerd Meijer Date: Mon, 3 Oct 2016 13:13:50 +0000 Subject: [PATCH] This adds a separate file for the fp denormal regression tests. NFC. 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 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Driver/denormal-fp-math.c diff --git a/test/Driver/denormal-fp-math.c b/test/Driver/denormal-fp-math.c new file mode 100644 index 0000000000..58f6e3c915 --- /dev/null +++ b/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' -- 2.40.0