2013-07-20 00:51:51 +08:00
|
|
|
// Check that -march works for all supported targets.
|
|
|
|
|
|
|
|
// RUN: not %clang -target s390x -S -emit-llvm -march=z9 %s -o - 2>&1 | FileCheck --check-prefix=CHECK-Z9 %s
|
2013-07-20 01:49:21 +08:00
|
|
|
// RUN: %clang -target s390x -### -S -emit-llvm -march=z10 %s 2>&1 | FileCheck --check-prefix=CHECK-Z10 %s
|
2016-10-31 22:38:05 +08:00
|
|
|
// RUN: %clang -target s390x -### -S -emit-llvm -march=arch8 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH8 %s
|
2013-07-20 01:49:21 +08:00
|
|
|
// RUN: %clang -target s390x -### -S -emit-llvm -march=z196 %s 2>&1 | FileCheck --check-prefix=CHECK-Z196 %s
|
2016-10-31 22:38:05 +08:00
|
|
|
// RUN: %clang -target s390x -### -S -emit-llvm -march=arch9 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH9 %s
|
2013-07-20 01:49:21 +08:00
|
|
|
// RUN: %clang -target s390x -### -S -emit-llvm -march=zEC12 %s 2>&1 | FileCheck --check-prefix=CHECK-ZEC12 %s
|
2016-10-31 22:38:05 +08:00
|
|
|
// 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
|
2017-07-18 01:45:57 +08:00
|
|
|
// RUN: %clang -target s390x -### -S -emit-llvm -march=z14 %s 2>&1 | FileCheck --check-prefix=CHECK-Z14 %s
|
|
|
|
// RUN: %clang -target s390x -### -S -emit-llvm -march=arch12 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH12 %s
|
2019-09-21 07:06:03 +08:00
|
|
|
// RUN: %clang -target s390x -### -S -emit-llvm -march=z15 %s 2>&1 | FileCheck --check-prefix=CHECK-Z15 %s
|
2019-07-13 02:14:51 +08:00
|
|
|
// RUN: %clang -target s390x -### -S -emit-llvm -march=arch13 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH13 %s
|
2013-07-20 00:51:51 +08:00
|
|
|
|
|
|
|
// CHECK-Z9: error: unknown target CPU 'z9'
|
|
|
|
// CHECK-Z10: "-target-cpu" "z10"
|
2016-10-31 22:38:05 +08:00
|
|
|
// CHECK-ARCH8: "-target-cpu" "arch8"
|
2013-07-20 00:51:51 +08:00
|
|
|
// CHECK-Z196: "-target-cpu" "z196"
|
2016-10-31 22:38:05 +08:00
|
|
|
// CHECK-ARCH9: "-target-cpu" "arch9"
|
2013-07-20 00:51:51 +08:00
|
|
|
// CHECK-ZEC12: "-target-cpu" "zEC12"
|
2016-10-31 22:38:05 +08:00
|
|
|
// CHECK-ARCH10: "-target-cpu" "arch10"
|
|
|
|
// CHECK-Z13: "-target-cpu" "z13"
|
|
|
|
// CHECK-ARCH11: "-target-cpu" "arch11"
|
2017-07-18 01:45:57 +08:00
|
|
|
// CHECK-Z14: "-target-cpu" "z14"
|
|
|
|
// CHECK-ARCH12: "-target-cpu" "arch12"
|
2019-09-21 07:06:03 +08:00
|
|
|
// CHECK-Z15: "-target-cpu" "z15"
|
2019-07-13 02:14:51 +08:00
|
|
|
// CHECK-ARCH13: "-target-cpu" "arch13"
|
2013-07-20 00:51:51 +08:00
|
|
|
|
|
|
|
int x;
|