xref: /llvm-project/clang/test/Driver/csky-cpus-error.c (revision 97e496054a378131227262109c856f89b288c309)
1 // Check failed cases
2 
3 // RUN: not %clang -target csky -c %s 2>&1 -mcpu=generic1 | FileCheck -check-prefix=FAIL-MCPU-NAME %s
4 // FAIL-MCPU-NAME: error: the clang compiler does not support '-mcpu=generic1'
5 
6 // RUN: not %clang -target csky -c %s 2>&1 -mcpu=generic -march=ck860 | FileCheck -check-prefix=MISMATCH-ARCH %s
7 // MISMATCH-ARCH: error: the clang compiler does not support '-mcpu=generic'
8