diff options
| author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2016-10-31 14:38:05 +0000 |
|---|---|---|
| committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2016-10-31 14:38:05 +0000 |
| commit | 30354ebb003375b1f112bd491bb61d54d5f37f22 (patch) | |
| tree | f477c1be658005381fa21984f9962b4b1e0cbcf4 /clang/test/Driver | |
| parent | 2e5e51b3f327b977f8c0f074654168d502f2ec8a (diff) | |
| download | bcm5719-llvm-30354ebb003375b1f112bd491bb61d54d5f37f22.tar.gz bcm5719-llvm-30354ebb003375b1f112bd491bb61d54d5f37f22.zip | |
[SystemZ] Add -march=archX aliases
For compatibility with other compilers on the platform, allow specifying
levels of the z/Architecture instead of model names with -march. In
particular, the following aliases are now supported:
-march=arch8 equals -march=z10
-march=arch9 equals -march=z196
-march=arch10 equals -march=zEC12
-march=arch11 equals -march=z13
This parallels the equivalent (and prerequisite) LLVM change in r285577.
llvm-svn: 285578
Diffstat (limited to 'clang/test/Driver')
| -rw-r--r-- | clang/test/Driver/systemz-march.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Driver/systemz-march.c b/clang/test/Driver/systemz-march.c index ffc126f14fe..a5df1f482d1 100644 --- a/clang/test/Driver/systemz-march.c +++ b/clang/test/Driver/systemz-march.c @@ -2,12 +2,22 @@ // RUN: not %clang -target s390x -S -emit-llvm -march=z9 %s -o - 2>&1 | FileCheck --check-prefix=CHECK-Z9 %s // RUN: %clang -target s390x -### -S -emit-llvm -march=z10 %s 2>&1 | FileCheck --check-prefix=CHECK-Z10 %s +// RUN: %clang -target s390x -### -S -emit-llvm -march=arch8 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH8 %s // RUN: %clang -target s390x -### -S -emit-llvm -march=z196 %s 2>&1 | FileCheck --check-prefix=CHECK-Z196 %s +// RUN: %clang -target s390x -### -S -emit-llvm -march=arch9 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH9 %s // RUN: %clang -target s390x -### -S -emit-llvm -march=zEC12 %s 2>&1 | FileCheck --check-prefix=CHECK-ZEC12 %s +// RUN: %clang -target s390x -### -S -emit-llvm -march=arch10 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH10 %s +// RUN: %clang -target s390x -### -S -emit-llvm -march=z13 %s 2>&1 | FileCheck --check-prefix=CHECK-Z13 %s +// RUN: %clang -target s390x -### -S -emit-llvm -march=arch11 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH11 %s // CHECK-Z9: error: unknown target CPU 'z9' // CHECK-Z10: "-target-cpu" "z10" +// CHECK-ARCH8: "-target-cpu" "arch8" // CHECK-Z196: "-target-cpu" "z196" +// CHECK-ARCH9: "-target-cpu" "arch9" // CHECK-ZEC12: "-target-cpu" "zEC12" +// CHECK-ARCH10: "-target-cpu" "arch10" +// CHECK-Z13: "-target-cpu" "z13" +// CHECK-ARCH11: "-target-cpu" "arch11" int x; |

