2013-04-04 14:29:47 +08:00
|
|
|
// RUN: %clang -### -S -fasm -fblocks -fbuiltin -fno-math-errno -fcommon -fpascal-strings -fno-blocks -fno-builtin -fmath-errno -fno-common -fno-pascal-strings -fblocks -fbuiltin -fmath-errno -fcommon -fpascal-strings -fsplit-stack %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS1 %s
|
2010-10-08 08:25:19 +08:00
|
|
|
// RUN: %clang -### -S -fasm -fblocks -fbuiltin -fno-math-errno -fcommon -fpascal-strings -fno-asm -fno-blocks -fno-builtin -fmath-errno -fno-common -fno-pascal-strings -fno-show-source-location -fshort-enums -fshort-wchar %s 2>&1 | FileCheck -check-prefix=CHECK-OPTIONS2 %s
|
2009-12-12 08:38:18 +08:00
|
|
|
|
2013-04-04 14:29:47 +08:00
|
|
|
// CHECK-OPTIONS1: -split-stacks
|
2010-05-22 10:21:53 +08:00
|
|
|
// CHECK-OPTIONS1: -fgnu-keywords
|
2009-12-12 08:42:52 +08:00
|
|
|
// CHECK-OPTIONS1: -fblocks
|
|
|
|
// CHECK-OPTIONS1: -fpascal-strings
|
|
|
|
|
2010-05-22 10:21:53 +08:00
|
|
|
// CHECK_OPTIONS2: -fno-gnu-keywords
|
2010-01-08 10:20:44 +08:00
|
|
|
// CHECK-OPTIONS2: -fmath-errno
|
2009-12-12 08:42:52 +08:00
|
|
|
// CHECK-OPTIONS2: -fno-builtin
|
2010-10-08 08:25:19 +08:00
|
|
|
// CHECK-OPTIONS2: -fshort-enums
|
2009-12-13 10:00:23 +08:00
|
|
|
// CHECK-OPTIONS2: -fshort-wchar
|
2009-12-12 08:42:52 +08:00
|
|
|
// CHECK-OPTIONS2: -fno-common
|
|
|
|
// CHECK-OPTIONS2: -fno-show-source-location
|
2011-04-23 14:30:43 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -S -Wwrite-strings %s 2>&1 | FileCheck -check-prefix=WRITE-STRINGS1 %s
|
|
|
|
// WRITE-STRINGS1: -fconst-strings
|
|
|
|
// RUN: %clang -### -S -Wwrite-strings -Wno-write-strings %s 2>&1 | FileCheck -check-prefix=WRITE-STRINGS2 %s
|
|
|
|
// WRITE-STRINGS2-NOT: -fconst-strings
|
|
|
|
// RUN: %clang -### -S -Wwrite-strings -w %s 2>&1 | FileCheck -check-prefix=WRITE-STRINGS3 %s
|
|
|
|
// WRITE-STRINGS3: -fconst-strings
|
2011-04-23 17:27:53 +08:00
|
|
|
|
2011-04-24 03:48:40 +08:00
|
|
|
// RUN: %clang -### -x c++ -c %s 2>&1 | FileCheck -check-prefix=DEPRECATED-ON-CHECK %s
|
|
|
|
// RUN: %clang -### -x c++ -c -Wdeprecated %s 2>&1 | FileCheck -check-prefix=DEPRECATED-ON-CHECK %s
|
|
|
|
// RUN: %clang -### -x c++ -c -Wno-deprecated %s 2>&1 | FileCheck -check-prefix=DEPRECATED-OFF-CHECK %s
|
|
|
|
// RUN: %clang -### -x c++ -c -Wno-deprecated -Wdeprecated %s 2>&1 | FileCheck -check-prefix=DEPRECATED-ON-CHECK %s
|
|
|
|
// RUN: %clang -### -x c++ -c -w %s 2>&1 | FileCheck -check-prefix=DEPRECATED-ON-CHECK %s
|
|
|
|
// RUN: %clang -### -c %s 2>&1 | FileCheck -check-prefix=DEPRECATED-OFF-CHECK %s
|
|
|
|
// RUN: %clang -### -c -Wdeprecated %s 2>&1 | FileCheck -check-prefix=DEPRECATED-OFF-CHECK %s
|
|
|
|
// DEPRECATED-ON-CHECK: -fdeprecated-macro
|
|
|
|
// DEPRECATED-OFF-CHECK-NOT: -fdeprecated-macro
|
2012-07-06 08:59:19 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -S -ffp-contract=fast %s 2>&1 | FileCheck -check-prefix=FP-CONTRACT-FAST-CHECK %s
|
|
|
|
// RUN: %clang -### -S -ffast-math %s 2>&1 | FileCheck -check-prefix=FP-CONTRACT-FAST-CHECK %s
|
|
|
|
// RUN: %clang -### -S -ffp-contract=off %s 2>&1 | FileCheck -check-prefix=FP-CONTRACT-OFF-CHECK %s
|
|
|
|
// FP-CONTRACT-FAST-CHECK: -ffp-contract=fast
|
|
|
|
// FP-CONTRACT-OFF-CHECK: -ffp-contract=off
|
2012-07-21 05:20:33 +08:00
|
|
|
|
2013-08-08 16:34:35 +08:00
|
|
|
// RUN: %clang -### -S -funroll-loops %s 2>&1 | FileCheck -check-prefix=CHECK-UNROLL-LOOPS %s
|
|
|
|
// RUN: %clang -### -S -fno-unroll-loops %s 2>&1 | FileCheck -check-prefix=CHECK-NO-UNROLL-LOOPS %s
|
|
|
|
// RUN: %clang -### -S -fno-unroll-loops -funroll-loops %s 2>&1 | FileCheck -check-prefix=CHECK-UNROLL-LOOPS %s
|
|
|
|
// RUN: %clang -### -S -funroll-loops -fno-unroll-loops %s 2>&1 | FileCheck -check-prefix=CHECK-NO-UNROLL-LOOPS %s
|
|
|
|
// CHECK-UNROLL-LOOPS: "-funroll-loops"
|
|
|
|
// CHECK-NO-UNROLL-LOOPS: "-fno-unroll-loops"
|
|
|
|
|
2012-12-12 01:12:28 +08:00
|
|
|
// RUN: %clang -### -S -fvectorize %s 2>&1 | FileCheck -check-prefix=CHECK-VECTORIZE %s
|
|
|
|
// RUN: %clang -### -S -fno-vectorize -fvectorize %s 2>&1 | FileCheck -check-prefix=CHECK-VECTORIZE %s
|
|
|
|
// RUN: %clang -### -S -fno-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-NO-VECTORIZE %s
|
|
|
|
// RUN: %clang -### -S -fvectorize -fno-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-NO-VECTORIZE %s
|
2012-12-12 01:46:33 +08:00
|
|
|
// RUN: %clang -### -S -ftree-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-VECTORIZE %s
|
2012-12-19 07:08:58 +08:00
|
|
|
// RUN: %clang -### -S -fno-tree-vectorize -fvectorize %s 2>&1 | FileCheck -check-prefix=CHECK-VECTORIZE %s
|
|
|
|
// RUN: %clang -### -S -fno-tree-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-NO-VECTORIZE %s
|
2012-12-12 01:46:33 +08:00
|
|
|
// RUN: %clang -### -S -ftree-vectorize -fno-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-NO-VECTORIZE %s
|
2012-12-12 01:12:28 +08:00
|
|
|
// CHECK-VECTORIZE: "-vectorize-loops"
|
|
|
|
// CHECK-NO-VECTORIZE-NOT: "-vectorize-loops"
|
2012-12-12 03:59:32 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -S -fslp-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-SLP-VECTORIZE %s
|
|
|
|
// RUN: %clang -### -S -fno-slp-vectorize -fslp-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-SLP-VECTORIZE %s
|
|
|
|
// RUN: %clang -### -S -fno-slp-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-NO-SLP-VECTORIZE %s
|
|
|
|
// RUN: %clang -### -S -fslp-vectorize -fno-slp-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-NO-SLP-VECTORIZE %s
|
|
|
|
// RUN: %clang -### -S -ftree-slp-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-SLP-VECTORIZE %s
|
2012-12-19 07:08:58 +08:00
|
|
|
// RUN: %clang -### -S -fno-tree-slp-vectorize -fslp-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-SLP-VECTORIZE %s
|
|
|
|
// RUN: %clang -### -S -fno-tree-slp-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-NO-SLP-VECTORIZE %s
|
2012-12-12 03:59:32 +08:00
|
|
|
// RUN: %clang -### -S -ftree-slp-vectorize -fno-slp-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-NO-SLP-VECTORIZE %s
|
2013-04-15 12:57:18 +08:00
|
|
|
// CHECK-SLP-VECTORIZE: "-vectorize-slp"
|
|
|
|
// CHECK-NO-SLP-VECTORIZE-NOT: "-vectorize-slp"
|
2013-02-07 02:15:40 +08:00
|
|
|
|
2013-04-15 13:38:41 +08:00
|
|
|
// RUN: %clang -### -S -fslp-vectorize-aggressive %s 2>&1 | FileCheck -check-prefix=CHECK-SLP-VECTORIZE-AGG %s
|
|
|
|
// RUN: %clang -### -S -fno-slp-vectorize-aggressive -fslp-vectorize-aggressive %s 2>&1 | FileCheck -check-prefix=CHECK-SLP-VECTORIZE-AGG %s
|
|
|
|
// RUN: %clang -### -S -fno-slp-vectorize-aggressive %s 2>&1 | FileCheck -check-prefix=CHECK-NO-SLP-VECTORIZE-AGG %s
|
|
|
|
// RUN: %clang -### -S -fslp-vectorize-aggressive -fno-slp-vectorize-aggressive %s 2>&1 | FileCheck -check-prefix=CHECK-NO-SLP-VECTORIZE-AGG %s
|
|
|
|
// CHECK-SLP-VECTORIZE-AGG: "-vectorize-slp-aggressive"
|
|
|
|
// CHECK-NO-SLP-VECTORIZE-AGG-NOT: "-vectorize-slp-aggressive"
|
|
|
|
|
2013-02-07 02:15:40 +08:00
|
|
|
// RUN: %clang -### -S -fextended-identifiers %s 2>&1 | FileCheck -check-prefix=CHECK-EXTENDED-IDENTIFIERS %s
|
|
|
|
// RUN: %clang -### -S -fno-extended-identifiers %s 2>&1 | FileCheck -check-prefix=CHECK-NO-EXTENDED-IDENTIFIERS %s
|
|
|
|
// CHECK-EXTENDED-IDENTIFIERS: "-cc1"
|
|
|
|
// CHECK-EXTENDED-IDENTIFIERS-NOT: "-fextended-identifiers"
|
|
|
|
// CHECK-NO-EXTENDED-IDENTIFIERS: error: unsupported option '-fno-extended-identifiers'
|
2013-08-01 07:39:13 +08:00
|
|
|
|
|
|
|
// RUN: %clang -### -S -fno-pascal-strings -mpascal-strings %s 2>&1 | FileCheck -check-prefix=CHECK-M-PASCAL-STRINGS %s
|
|
|
|
// CHECK-M-PASCAL-STRINGS: "-fpascal-strings"
|
|
|
|
|
|
|
|
// RUN: %clang -### -S -fpascal-strings -mno-pascal-strings %s 2>&1 | FileCheck -check-prefix=CHECK-NO-M-PASCAL-STRINGS %s
|
|
|
|
// CHECK-NO-M-PASCAL-STRINGS-NOT: "-fpascal-strings"
|