Home | History | Annotate | Download | only in Driver
      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 %s
      4 // RUN: %clang -target s390x -### -S -emit-llvm -march=z10 %s 2>&1 | FileCheck --check-prefix=CHECK-Z10 %s
      5 // RUN: %clang -target s390x -### -S -emit-llvm -march=z196 %s 2>&1 | FileCheck --check-prefix=CHECK-Z196 %s
      6 // RUN: %clang -target s390x -### -S -emit-llvm -march=zEC12 %s 2>&1 | FileCheck --check-prefix=CHECK-ZEC12 %s
      7 
      8 // CHECK-Z9: error: unknown target CPU 'z9'
      9 // CHECK-Z10: "-target-cpu" "z10"
     10 // CHECK-Z196: "-target-cpu" "z196"
     11 // CHECK-ZEC12: "-target-cpu" "zEC12"
     12 
     13 int x;
     14