Author: sjoerdmeijer Date: Mon Oct 3 08:13:50 2016 New Revision: 283110 URL: http://llvm.org/viewvc/llvm-project?rev=283110&view=rev Log: This adds a separate file for the fp denormal regression tests. NFC. I forgot to svn add the new file in my previous commit.
Added: cfe/trunk/test/Driver/denormal-fp-math.c Added: cfe/trunk/test/Driver/denormal-fp-math.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/denormal-fp-math.c?rev=283110&view=auto ============================================================================== --- cfe/trunk/test/Driver/denormal-fp-math.c (added) +++ cfe/trunk/test/Driver/denormal-fp-math.c Mon Oct 3 08:13:50 2016 @@ -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' _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits