xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/systemz-march.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // Check that -march works for all supported targets.
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc // RUN: not %clang -target s390x -S -emit-llvm -march=z9 %s -o - 2>&1 | FileCheck --check-prefix=CHECK-Z9 %s
4*f4a2713aSLionel Sambuc // RUN: %clang -target s390x -### -S -emit-llvm -march=z10 %s 2>&1 | FileCheck --check-prefix=CHECK-Z10 %s
5*f4a2713aSLionel Sambuc // RUN: %clang -target s390x -### -S -emit-llvm -march=z196 %s 2>&1 | FileCheck --check-prefix=CHECK-Z196 %s
6*f4a2713aSLionel Sambuc // RUN: %clang -target s390x -### -S -emit-llvm -march=zEC12 %s 2>&1 | FileCheck --check-prefix=CHECK-ZEC12 %s
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc // CHECK-Z9: error: unknown target CPU 'z9'
9*f4a2713aSLionel Sambuc // CHECK-Z10: "-target-cpu" "z10"
10*f4a2713aSLionel Sambuc // CHECK-Z196: "-target-cpu" "z196"
11*f4a2713aSLionel Sambuc // CHECK-ZEC12: "-target-cpu" "zEC12"
12*f4a2713aSLionel Sambuc 
13*f4a2713aSLionel Sambuc int x;
14