brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.5 KiB · 8922db9 Raw
40 lines · c
1// Check that -march works for all supported targets.2 3// RUN: not %clang -target s390x -S -emit-llvm -march=z9 %s -o - 2>&1 | FileCheck --check-prefix=CHECK-Z9 %s4// RUN: %clang -target s390x -### -S -emit-llvm -march=z10 %s 2>&1 | FileCheck --check-prefix=CHECK-Z10 %s5// RUN: %clang -target s390x -### -S -emit-llvm -march=arch8 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH8 %s6// RUN: %clang -target s390x -### -S -emit-llvm -march=z196 %s 2>&1 | FileCheck --check-prefix=CHECK-Z196 %s7// RUN: %clang -target s390x -### -S -emit-llvm -march=arch9 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH9 %s8// RUN: %clang -target s390x -### -S -emit-llvm -march=zEC12 %s 2>&1 | FileCheck --check-prefix=CHECK-ZEC12 %s9// RUN: %clang -target s390x -### -S -emit-llvm -march=arch10 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH10 %s10// RUN: %clang -target s390x -### -S -emit-llvm -march=z13 %s 2>&1 | FileCheck --check-prefix=CHECK-Z13 %s11// RUN: %clang -target s390x -### -S -emit-llvm -march=arch11 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH11 %s12// RUN: %clang -target s390x -### -S -emit-llvm -march=z14 %s 2>&1 | FileCheck --check-prefix=CHECK-Z14 %s13// RUN: %clang -target s390x -### -S -emit-llvm -march=arch12 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH12 %s14// RUN: %clang -target s390x -### -S -emit-llvm -march=z15 %s 2>&1 | FileCheck --check-prefix=CHECK-Z15 %s15// RUN: %clang -target s390x -### -S -emit-llvm -march=arch13 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH13 %s16// RUN: %clang -target s390x -### -S -emit-llvm -march=z16 %s 2>&1 | FileCheck --check-prefix=CHECK-Z16 %s17// RUN: %clang -target s390x -### -S -emit-llvm -march=arch14 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH14 %s18// RUN: %clang -target s390x -### -S -emit-llvm -march=z17 %s 2>&1 | FileCheck --check-prefix=CHECK-Z17 %s19// RUN: %clang -target s390x -### -S -emit-llvm -march=arch15 %s 2>&1 | FileCheck --check-prefix=CHECK-ARCH15 %s20 21// CHECK-Z9: error: unknown target CPU 'z9'22// CHECK-Z10: "-target-cpu" "z10"23// CHECK-ARCH8: "-target-cpu" "arch8"24// CHECK-Z196: "-target-cpu" "z196"25// CHECK-ARCH9: "-target-cpu" "arch9"26// CHECK-ZEC12: "-target-cpu" "zEC12"27// CHECK-ARCH10: "-target-cpu" "arch10"28// CHECK-Z13: "-target-cpu" "z13"29// CHECK-ARCH11: "-target-cpu" "arch11"30// CHECK-Z14: "-target-cpu" "z14"31// CHECK-ARCH12: "-target-cpu" "arch12"32// CHECK-Z15: "-target-cpu" "z15"33// CHECK-ARCH13: "-target-cpu" "arch13"34// CHECK-Z16: "-target-cpu" "z16"35// CHECK-ARCH14: "-target-cpu" "arch14"36// CHECK-Z17: "-target-cpu" "z17"37// CHECK-ARCH15: "-target-cpu" "arch15"38 39int x;40