diff options
| author | Gabor Ballabas <gaborb@inf.u-szeged.hu> | 2015-06-18 14:23:12 +0000 |
|---|---|---|
| committer | Gabor Ballabas <gaborb@inf.u-szeged.hu> | 2015-06-18 14:23:12 +0000 |
| commit | 3645149ea23ed708f08a333065327307dda1221e (patch) | |
| tree | fda57579e6db64e344c52d8ee1b6f73b8281db78 /clang/test/Preprocessor/aarch64-target-features.c | |
| parent | 7f210c6dabd89141e60d77124099a069054cfbe6 (diff) | |
| download | bcm5719-llvm-3645149ea23ed708f08a333065327307dda1221e.tar.gz bcm5719-llvm-3645149ea23ed708f08a333065327307dda1221e.zip | |
Allow case-insensitive values for -march for AArch64 target in line with GCC.
GCC allows case-insensitive values for -mcpu, -march and -mtune options.
This patch implements the same behaviour for the -march option for the AArch64 target.
llvm-svn: 240019
Diffstat (limited to 'clang/test/Preprocessor/aarch64-target-features.c')
| -rw-r--r-- | clang/test/Preprocessor/aarch64-target-features.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/aarch64-target-features.c b/clang/test/Preprocessor/aarch64-target-features.c index a55b1517058..eea72b3df35 100644 --- a/clang/test/Preprocessor/aarch64-target-features.c +++ b/clang/test/Preprocessor/aarch64-target-features.c @@ -119,6 +119,10 @@ // RUN: %clang -target aarch64 -march=armv8.1a+crypto -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V81A-FEATURE-1 %s // RUN: %clang -target aarch64 -march=armv8.1a+nocrypto -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V81A-FEATURE-2 %s // RUN: %clang -target aarch64 -march=armv8.1a+nosimd -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V81A-FEATURE-3 %s +// ================== Check whether -march accepts mixed-case features. +// RUN: %clang -target aarch64 -march=ARMV8.1A+CRYPTO -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V81A-FEATURE-1 %s +// RUN: %clang -target aarch64 -march=Armv8.1a+NOcrypto -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V81A-FEATURE-2 %s +// RUN: %clang -target aarch64 -march=armv8.1a+noSIMD -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V81A-FEATURE-3 %s // CHECK-V81A-FEATURE-1: "-cc1"{{.*}} "-triple" "aarch64{{.*}}" "-target-feature" "+neon" "-target-feature" "+v8.1a" "-target-feature" "+crypto" // CHECK-V81A-FEATURE-2: "-cc1"{{.*}} "-triple" "aarch64{{.*}}" "-target-feature" "+neon" "-target-feature" "+v8.1a" "-target-feature" "-crypto" // CHECK-V81A-FEATURE-3: "-cc1"{{.*}} "-triple" "aarch64{{.*}}" "-target-feature" "+v8.1a" "-target-feature" "-neon" |

